Fixed wrong use if @T() helped.

This commit is contained in:
Martin Edenhofer 2015-04-12 19:16:16 +02:00
parent 4981b5af05
commit 936f2f3648
6 changed files with 11 additions and 9 deletions

View file

@ -135,7 +135,7 @@ class _i18nSingleton extends Spine.Module
translateContent: ( string, args... ) => translateContent: ( string, args... ) =>
translated = App.Utils.htmlEscape( @translate( string, args... ) ) translated = App.Utils.htmlEscape( @translate( string, args... ) )
# replace = '<span class="translation" contenteditable="true" data-text="' + App.Utils.htmlEscape(string) + '">' + translated + '<span class="icon-edit"></span>' # replace = '<span class="translation" contenteditable="true" data-text="' + App.Utils.htmlEscape(string) + '">' + translated + '<span class="icon-edit"></span>'
if App.Config.get( 'Translation' ) if App.Config.get( 'translation_inline' )
replace = '<span class="translation" contenteditable="true" data-text="' + App.Utils.htmlEscape(string) + '">' + translated + '' replace = '<span class="translation" contenteditable="true" data-text="' + App.Utils.htmlEscape(string) + '">' + translated + ''
# if !@_translated # if !@_translated
# replace += '<span class="missing">XX</span>' # replace += '<span class="missing">XX</span>'
@ -164,6 +164,8 @@ class _i18nSingleton extends Spine.Module
else else
@_translated = false @_translated = false
translated = string translated = string
if App.Config.get('developer_mode')
@log 'notice', "translation for '#{string}' in '#{@locale}' is missing"
# search %s # search %s
for arg in args for arg in args

View file

@ -9,7 +9,7 @@
<div class="attachmentUpload hide u-clickable"> <div class="attachmentUpload hide u-clickable">
<div class="horizontal"> <div class="horizontal">
<div class="u-highlight"> <div class="u-highlight">
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ... <%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
</div> </div>
<div class="attachmentUpload-cancel align-right js-cancel u-clickable"> <div class="attachmentUpload-cancel align-right js-cancel u-clickable">
<div class="delete icon"></div><%- @T('Cancel Upload') %> <div class="delete icon"></div><%- @T('Cancel Upload') %>

View file

@ -8,7 +8,7 @@
<div> <div>
<a class="js-today"><%- @T('today') %></a> <a class="js-today"><%- @T('today') %></a>
| |
<a class="js-minus-day"><%- @T('-1') %></a> <a class="js-plus-day"><%- @T('+1') %></a> <%- @T('day') %> <a class="js-minus-day">-1</a> <a class="js-plus-day">+1</a> <%- @T('day') %>
| |
<a class="js-minus-week"><%- @T('-7') %></a> <a class="js-plus-week"><%- @T('+7') %></a> <%- @T('days') %> <a class="js-minus-week">-7</a> <a class="js-plus-week">+7</a> <%- @T('days') %>
</div> </div>

View file

@ -11,9 +11,9 @@
<div> <div>
<a class="js-today"><%- @T('now') %></a> <a class="js-today"><%- @T('now') %></a>
| |
<a class="js-minus-hour"><%- @T('-1') %></a> <a class="js-plus-hour"><%- @T('+1') %></a> <%- @T('hour') %> <a class="js-minus-hour">-1</a> <a class="js-plus-hour">+1</a> <%- @T('hour') %>
| |
<a class="js-minus-day"><%- @T('-1') %></a> <a class="js-plus-day"><%- @T('+1') %></a> <%- @T('day') %> <a class="js-minus-day">-1</a> <a class="js-plus-day">+1</a> <%- @T('day') %>
| |
<a class="js-minus-week"><%- @T('-7') %></a> <a class="js-plus-week"><%- @T('+7') %></a> <%- @T('days') %> <a class="js-minus-week">-7</a> <a class="js-plus-week">+7</a> <%- @T('days') %>
</div> </div>

View file

@ -42,7 +42,7 @@
<div class="attachmentUpload hide u-clickable"> <div class="attachmentUpload hide u-clickable">
<div class="horizontal"> <div class="horizontal">
<div class="u-highlight"> <div class="u-highlight">
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ... <%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
</div> </div>
<div class="attachmentUpload-cancel align-right js-cancel u-clickable"> <div class="attachmentUpload-cancel align-right js-cancel u-clickable">
<div class="delete icon"></div><%- @T('Cancel Upload') %> <div class="delete icon"></div><%- @T('Cancel Upload') %>

View file

@ -65,7 +65,7 @@
<div class="attachmentUpload hide u-clickable"> <div class="attachmentUpload hide u-clickable">
<div class="horizontal"> <div class="horizontal">
<div class="u-highlight"> <div class="u-highlight">
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ... <%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
</div> </div>
<div class="attachmentUpload-cancel align-right js-cancel u-clickable"> <div class="attachmentUpload-cancel align-right js-cancel u-clickable">
<div class="delete icon"></div><%- @T('Cancel Upload') %> <div class="delete icon"></div><%- @T('Cancel Upload') %>