cleanup translations
This commit is contained in:
parent
04e1adf53e
commit
5ef6f9a524
2 changed files with 9 additions and 10 deletions
|
@ -227,12 +227,12 @@ pandora.ui.mainMenu = function() {
|
|||
? [{}] : [],
|
||||
{ id: 'titles', title: Ox._('Manage Titles...'), disabled: !pandora.hasCapability('canManageTitlesAndNames') },
|
||||
{ id: 'names', title: Ox._('Manage Names...'), disabled: !pandora.hasCapability('canManageTitlesAndNames') },
|
||||
{ id: 'translations', title: Ox._('Manage Translations...'), disabled: !pandora.hasCapability('canManageTranslations') },
|
||||
{},
|
||||
{ id: 'places', title: Ox._('Manage Places...'), disabled: !pandora.hasCapability('canManagePlacesAndEvents') },
|
||||
{ id: 'events', title: Ox._('Manage Events...'), disabled: !pandora.hasCapability('canManagePlacesAndEvents') },
|
||||
{},
|
||||
{ id: 'users', title: Ox._('Manage Users...'), disabled: !pandora.hasCapability('canManageUsers') },
|
||||
{ id: 'translations', title: Ox._('Manage Translations...'), disabled: !pandora.hasCapability('canManageTranslations') },
|
||||
{ id: 'statistics', title: Ox._('Statistics...'), disabled: !pandora.hasCapability('canManageUsers') },
|
||||
{},
|
||||
{ id: 'changelog', title: Ox._('Changelog...'), disabled: !pandora.hasCapability('canManageUsers') }
|
||||
|
|
|
@ -67,7 +67,7 @@ pandora.ui.translationsDialog = function() {
|
|||
return Ox.encodeHTMLEntities(data)
|
||||
},
|
||||
visible: true,
|
||||
width: 256
|
||||
width: 240
|
||||
},
|
||||
{
|
||||
editable: true,
|
||||
|
@ -79,18 +79,17 @@ pandora.ui.translationsDialog = function() {
|
|||
},
|
||||
tooltip: Ox._('Edit Translation'),
|
||||
visible: true,
|
||||
width: 256
|
||||
width: 240
|
||||
},
|
||||
{
|
||||
id: 'lang',
|
||||
align: 'right',
|
||||
operator: '-',
|
||||
title: Ox._('Language'),
|
||||
format: function(lang) {
|
||||
return Ox.LOCALE_NAMES[lang]
|
||||
},
|
||||
visible: true,
|
||||
width: 64
|
||||
width: 96
|
||||
},
|
||||
],
|
||||
columnsVisible: true,
|
||||
|
@ -166,10 +165,10 @@ pandora.ui.translationsDialog = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
resizeend: function(data) {
|
||||
var width = (data.width - 64 - Ox.UI.SCROLLBAR_SIZE) / 2;
|
||||
var width = (data.width - 96 - Ox.UI.SCROLLBAR_SIZE) / 2;
|
||||
[
|
||||
{id: 'name', width: Math.ceil(width)},
|
||||
{id: 'sortname', width: Math.floor(width)}
|
||||
{id: 'key', width: Math.ceil(width)},
|
||||
{id: 'value', width: Math.floor(width)},
|
||||
].forEach(function(column) {
|
||||
$list.resizeColumn(column.id, column.width);
|
||||
});
|
||||
|
@ -180,8 +179,8 @@ pandora.ui.translationsDialog = function() {
|
|||
.css({
|
||||
position: 'absolute',
|
||||
top: '4px',
|
||||
left: '128px',
|
||||
right: '32px',
|
||||
left: '40px',
|
||||
right: '40px',
|
||||
bottom: '4px',
|
||||
paddingTop: '2px',
|
||||
fontSize: '9px',
|
||||
|
|
Loading…
Reference in a new issue