Fixed wrong use if @T() helped.
This commit is contained in:
parent
4981b5af05
commit
936f2f3648
6 changed files with 11 additions and 9 deletions
|
@ -135,7 +135,7 @@ class _i18nSingleton extends Spine.Module
|
|||
translateContent: ( 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>'
|
||||
if App.Config.get( 'Translation' )
|
||||
if App.Config.get( 'translation_inline' )
|
||||
replace = '<span class="translation" contenteditable="true" data-text="' + App.Utils.htmlEscape(string) + '">' + translated + ''
|
||||
# if !@_translated
|
||||
# replace += '<span class="missing">XX</span>'
|
||||
|
@ -164,6 +164,8 @@ class _i18nSingleton extends Spine.Module
|
|||
else
|
||||
@_translated = false
|
||||
translated = string
|
||||
if App.Config.get('developer_mode')
|
||||
@log 'notice', "translation for '#{string}' in '#{@locale}' is missing"
|
||||
|
||||
# search %s
|
||||
for arg in args
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="attachmentUpload hide u-clickable">
|
||||
<div class="horizontal">
|
||||
<div class="u-highlight">
|
||||
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ...
|
||||
<%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
|
||||
</div>
|
||||
<div class="attachmentUpload-cancel align-right js-cancel u-clickable">
|
||||
<div class="delete icon"></div><%- @T('Cancel Upload') %>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div>
|
||||
<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>
|
|
@ -11,9 +11,9 @@
|
|||
<div>
|
||||
<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>
|
|
@ -42,7 +42,7 @@
|
|||
<div class="attachmentUpload hide u-clickable">
|
||||
<div class="horizontal">
|
||||
<div class="u-highlight">
|
||||
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ...
|
||||
<%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
|
||||
</div>
|
||||
<div class="attachmentUpload-cancel align-right js-cancel u-clickable">
|
||||
<div class="delete icon"></div><%- @T('Cancel Upload') %>
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<div class="attachmentUpload hide u-clickable">
|
||||
<div class="horizontal">
|
||||
<div class="u-highlight">
|
||||
<%- @T(' Uploading ') %> (<span class="js-percentage">0</span>%) ...
|
||||
<%- @T('Uploading') %> (<span class="js-percentage">0</span>%) ...
|
||||
</div>
|
||||
<div class="attachmentUpload-cancel align-right js-cancel u-clickable">
|
||||
<div class="delete icon"></div><%- @T('Cancel Upload') %>
|
||||
|
|
Loading…
Reference in a new issue