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: 'titles', title: Ox._('Manage Titles...'), disabled: !pandora.hasCapability('canManageTitlesAndNames') },
|
||||||
{ id: 'names', title: Ox._('Manage Names...'), 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: 'places', title: Ox._('Manage Places...'), disabled: !pandora.hasCapability('canManagePlacesAndEvents') },
|
||||||
{ id: 'events', title: Ox._('Manage Events...'), 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: '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: 'statistics', title: Ox._('Statistics...'), disabled: !pandora.hasCapability('canManageUsers') },
|
||||||
{},
|
{},
|
||||||
{ id: 'changelog', title: Ox._('Changelog...'), 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)
|
return Ox.encodeHTMLEntities(data)
|
||||||
},
|
},
|
||||||
visible: true,
|
visible: true,
|
||||||
width: 256
|
width: 240
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
editable: true,
|
editable: true,
|
||||||
|
@ -79,18 +79,17 @@ pandora.ui.translationsDialog = function() {
|
||||||
},
|
},
|
||||||
tooltip: Ox._('Edit Translation'),
|
tooltip: Ox._('Edit Translation'),
|
||||||
visible: true,
|
visible: true,
|
||||||
width: 256
|
width: 240
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'lang',
|
id: 'lang',
|
||||||
align: 'right',
|
|
||||||
operator: '-',
|
operator: '-',
|
||||||
title: Ox._('Language'),
|
title: Ox._('Language'),
|
||||||
format: function(lang) {
|
format: function(lang) {
|
||||||
return Ox.LOCALE_NAMES[lang]
|
return Ox.LOCALE_NAMES[lang]
|
||||||
},
|
},
|
||||||
visible: true,
|
visible: true,
|
||||||
width: 64
|
width: 96
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
columnsVisible: true,
|
columnsVisible: true,
|
||||||
|
@ -166,10 +165,10 @@ pandora.ui.translationsDialog = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
resizeend: function(data) {
|
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: 'key', width: Math.ceil(width)},
|
||||||
{id: 'sortname', width: Math.floor(width)}
|
{id: 'value', width: Math.floor(width)},
|
||||||
].forEach(function(column) {
|
].forEach(function(column) {
|
||||||
$list.resizeColumn(column.id, column.width);
|
$list.resizeColumn(column.id, column.width);
|
||||||
});
|
});
|
||||||
|
@ -180,8 +179,8 @@ pandora.ui.translationsDialog = function() {
|
||||||
.css({
|
.css({
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: '4px',
|
top: '4px',
|
||||||
left: '128px',
|
left: '40px',
|
||||||
right: '32px',
|
right: '40px',
|
||||||
bottom: '4px',
|
bottom: '4px',
|
||||||
paddingTop: '2px',
|
paddingTop: '2px',
|
||||||
fontSize: '9px',
|
fontSize: '9px',
|
||||||
|
|
Loading…
Reference in a new issue