Improved translation overview.
This commit is contained in:
parent
936f2f3648
commit
ef14bed4f6
4 changed files with 14 additions and 6 deletions
|
@ -79,8 +79,10 @@ class Index extends App.ControllerContent
|
|||
reset = field.closest('tr').find('.js-Reset')
|
||||
if current isnt initial
|
||||
reset.show()
|
||||
reset.closest('tr').addClass('warning')
|
||||
else
|
||||
reset.hide()
|
||||
reset.closest('tr').removeClass('warning')
|
||||
|
||||
|
||||
App.Config.set( 'Translation', { prio: 1800, parent: '#system', name: 'Translations', target: '#system/translation', controller: Index, role: ['Admin'] }, 'NavBarAdmin' )
|
||||
|
|
|
@ -164,7 +164,7 @@ class _i18nSingleton extends Spine.Module
|
|||
else
|
||||
@_translated = false
|
||||
translated = string
|
||||
if App.Config.get('developer_mode')
|
||||
if App.Config.get('developer_mode') is true
|
||||
@log 'notice', "translation for '#{string}' in '#{@locale}' is missing"
|
||||
|
||||
# search %s
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><%- @T('Datetime') %></td>
|
||||
<td><input class="translationOverview-item" value="<%= @timestampFormat %>"></td>
|
||||
<td class="translationOverview-itemContainer"><input class="translationOverview-item form-control" value="<%= @timestampFormat %>"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%- @T('Date') %></td>
|
||||
<td><input class="translationOverview-item" value="<%= @dateFormat %>"></td>
|
||||
<td class="translationOverview-itemContainer"><input class="translationOverview-item form-control" value="<%= @dateFormat %>"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
@ -41,9 +41,9 @@
|
|||
<% if @list: %>
|
||||
<% for item in @list: %>
|
||||
<tr>
|
||||
<td><%= item[1] %></td>
|
||||
<td><input class="js-Item translationOverview-item" value="<%= item[2] %>" data-initial="<%= item[3] %>" data-id="<%= item[0] %>"></td>
|
||||
<td><%= item[3]%></td>
|
||||
<td title="<%= item[1] %>"><%= item[1] %></td>
|
||||
<td class="translationOverview-itemContainer"><input class="js-Item translationOverview-item form-control" value="<%= item[2] %>" data-initial="<%= item[3] %>" data-id="<%= item[0] %>"></td>
|
||||
<td title="<%= item[3] %>"><%= item[3]%></td>
|
||||
<td><a href="#" class="js-Reset"><%- @T('Reset') %></a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
|
@ -5267,6 +5267,12 @@ label + .wizard-buttonList {
|
|||
|
||||
|
||||
.translationOverview {
|
||||
tbody > tr > td {
|
||||
padding: 20px 0 0 10px;
|
||||
}
|
||||
.translationOverview-itemContainer {
|
||||
padding: 10px 0 10px 10px;
|
||||
}
|
||||
.translationOverview-source {
|
||||
width: 25%;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue