Improved translation overview.

This commit is contained in:
Martin Edenhofer 2015-04-12 22:47:56 +02:00
parent 936f2f3648
commit ef14bed4f6
4 changed files with 14 additions and 6 deletions

View file

@ -79,8 +79,10 @@ class Index extends App.ControllerContent
reset = field.closest('tr').find('.js-Reset') reset = field.closest('tr').find('.js-Reset')
if current isnt initial if current isnt initial
reset.show() reset.show()
reset.closest('tr').addClass('warning')
else else
reset.hide() 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' ) App.Config.set( 'Translation', { prio: 1800, parent: '#system', name: 'Translations', target: '#system/translation', controller: Index, role: ['Admin'] }, 'NavBarAdmin' )

View file

@ -164,7 +164,7 @@ class _i18nSingleton extends Spine.Module
else else
@_translated = false @_translated = false
translated = string 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" @log 'notice', "translation for '#{string}' in '#{@locale}' is missing"
# search %s # search %s

View file

@ -14,13 +14,13 @@
<tbody> <tbody>
<tr> <tr>
<td><%- @T('Datetime') %></td> <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>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td><%- @T('Date') %></td> <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>
<td></td> <td></td>
</tr> </tr>
@ -41,9 +41,9 @@
<% if @list: %> <% if @list: %>
<% for item in @list: %> <% for item in @list: %>
<tr> <tr>
<td><%= item[1] %></td> <td title="<%= item[1] %>"><%= item[1] %></td>
<td><input class="js-Item translationOverview-item" value="<%= item[2] %>" data-initial="<%= item[3] %>" data-id="<%= item[0] %>"></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><%= item[3]%></td> <td title="<%= item[3] %>"><%= item[3]%></td>
<td><a href="#" class="js-Reset"><%- @T('Reset') %></a></td> <td><a href="#" class="js-Reset"><%- @T('Reset') %></a></td>
</tr> </tr>
<% end %> <% end %>

View file

@ -5267,6 +5267,12 @@ label + .wizard-buttonList {
.translationOverview { .translationOverview {
tbody > tr > td {
padding: 20px 0 0 10px;
}
.translationOverview-itemContainer {
padding: 10px 0 10px 10px;
}
.translationOverview-source { .translationOverview-source {
width: 25%; width: 25%;
} }