forked from 0x2620/pandora
wrap more strings
This commit is contained in:
parent
9bfee31fca
commit
cd0284a15c
10 changed files with 18 additions and 18 deletions
|
@ -557,7 +557,7 @@ pandora.ui.documentsPanel = function(options) {
|
||||||
+ value + '</div>';
|
+ value + '</div>';
|
||||||
},
|
},
|
||||||
height: width,
|
height: width,
|
||||||
placeholder: 'No description',
|
placeholder: Ox._('No description'),
|
||||||
tooltip: editable ? pandora.getEditTooltip('description') : '',
|
tooltip: editable ? pandora.getEditTooltip('description') : '',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
value: item.description || '',
|
value: item.description || '',
|
||||||
|
|
|
@ -13,7 +13,7 @@ pandora.ui.folderBrowserBar = function(id, section) {
|
||||||
pandora.$ui.findListsSelect[id] = Ox.Select({
|
pandora.$ui.findListsSelect[id] = Ox.Select({
|
||||||
items: [
|
items: [
|
||||||
{id: 'user', title: Ox._('Find: User')},
|
{id: 'user', title: Ox._('Find: User')},
|
||||||
{id: 'name', title: Ox._('Find: {0}', [folderItem])}
|
{id: 'name', title: Ox._('Find: {0}', [Ox._(folderItem)])}
|
||||||
],
|
],
|
||||||
overlap: 'right',
|
overlap: 'right',
|
||||||
type: 'image'
|
type: 'image'
|
||||||
|
|
|
@ -393,7 +393,7 @@ pandora.ui.infoView = function(data) {
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({marginBottom: '4px'})
|
.css({marginBottom: '4px'})
|
||||||
.append(
|
.append(
|
||||||
formatKey(key.slice(0, -9) + ' per minute', 'statistics')
|
formatKey(Ox.toTitleCase(key.slice(0, -9)) + ' per Minute', 'statistics')
|
||||||
)
|
)
|
||||||
.append(
|
.append(
|
||||||
Ox.Theme.formatColor(null, 'gradient')
|
Ox.Theme.formatColor(null, 'gradient')
|
||||||
|
@ -673,7 +673,7 @@ pandora.ui.infoView = function(data) {
|
||||||
return Ox.Theme.formatColorLevel(
|
return Ox.Theme.formatColorLevel(
|
||||||
rightsLevel,
|
rightsLevel,
|
||||||
pandora.site.rightsLevels.map(function(rightsLevel) {
|
pandora.site.rightsLevels.map(function(rightsLevel) {
|
||||||
return rightsLevel.name;
|
return Ox._(rightsLevel.name);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -726,11 +726,11 @@ pandora.ui.infoView = function(data) {
|
||||||
.appendTo($capabilities);
|
.appendTo($capabilities);
|
||||||
if (canEdit) {
|
if (canEdit) {
|
||||||
$element = Ox.Theme.formatColorLevel(i, userLevels.map(function(userLevel) {
|
$element = Ox.Theme.formatColorLevel(i, userLevels.map(function(userLevel) {
|
||||||
return Ox.toTitleCase(userLevel);
|
return Ox._(Ox.toTitleCase(userLevel));
|
||||||
}), [0, 240]);
|
}), [0, 240]);
|
||||||
Ox.Label({
|
Ox.Label({
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
title: Ox.toTitleCase(userLevel),
|
title: Ox._(Ox.toTitleCase(userLevel)),
|
||||||
width: 60
|
width: 60
|
||||||
})
|
})
|
||||||
.addClass('OxColor OxColorGradient')
|
.addClass('OxColor OxColorGradient')
|
||||||
|
@ -749,14 +749,14 @@ pandora.ui.infoView = function(data) {
|
||||||
var hasCapability = pandora.site.capabilities[capability.name][userLevel] >= rightsLevel,
|
var hasCapability = pandora.site.capabilities[capability.name][userLevel] >= rightsLevel,
|
||||||
$element = Ox.Theme.formatColorLevel(hasCapability, ['', '']);
|
$element = Ox.Theme.formatColorLevel(hasCapability, ['', '']);
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
tooltip: (canEdit ? Ox.toTitleCase(userLevel) : 'You') + ' '
|
tooltip: Ox._((canEdit ? Ox.toTitleCase(userLevel) : 'You') + ' '
|
||||||
+ (hasCapability ? 'can' : 'can\'t') + ' '
|
+ (hasCapability ? 'can' : 'can\'t') + ' '
|
||||||
+ Ox.toSlashes(capability.name)
|
+ Ox.toSlashes(capability.name)
|
||||||
.split('/').slice(1).join(' ')
|
.split('/').slice(1).join(' ')
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replace('see item', 'see the item')
|
.replace('see item', 'see the item')
|
||||||
.replace('play video', 'play the full video')
|
.replace('play video', 'play the full video')
|
||||||
.replace('download video', 'download the video'),
|
.replace('download video', 'download the video')),
|
||||||
title: capability.symbol,
|
title: capability.symbol,
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
|
@ -946,9 +946,9 @@ pandora.ui.infoView = function(data) {
|
||||||
items: pandora.site.rightsLevels.map(function(rightsLevel, i) {
|
items: pandora.site.rightsLevels.map(function(rightsLevel, i) {
|
||||||
return {
|
return {
|
||||||
id: i,
|
id: i,
|
||||||
title: rightsLevel.name,
|
title: Ox._(rightsLevel.name),
|
||||||
disabled: !isCopyrighted && rightsLevel.name == Ox._('Under Copyright')
|
disabled: !isCopyrighted && rightsLevel.name == 'Under Copyright'
|
||||||
|| isCopyrighted && rightsLevel.name == Ox._('Out of Copyright')
|
|| isCopyrighted && rightsLevel.name == 'Out of Copyright'
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
width: 128,
|
width: 128,
|
||||||
|
|
|
@ -55,7 +55,7 @@ pandora.ui.mainMenu = function() {
|
||||||
{ group: 'viewsection', min: 1, max: 1, items: Object.keys(pandora.site.sectionFolders).map(function(section) {
|
{ group: 'viewsection', min: 1, max: 1, items: Object.keys(pandora.site.sectionFolders).map(function(section) {
|
||||||
return {
|
return {
|
||||||
id: section,
|
id: section,
|
||||||
title: section == 'items' ? Ox._(pandora.site.itemName.plural) : Ox.toTitleCase(section),
|
title: section == 'items' ? Ox._(pandora.site.itemName.plural) : Ox._(Ox.toTitleCase(section)),
|
||||||
checked: ui.section == section,
|
checked: ui.section == section,
|
||||||
disabled: section != 'items' && pandora.user.level != 'admin'
|
disabled: section != 'items' && pandora.user.level != 'admin'
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@ pandora.ui.namesDialog = function() {
|
||||||
$findInput = Ox.Input({
|
$findInput = Ox.Input({
|
||||||
changeOnKeypress: true,
|
changeOnKeypress: true,
|
||||||
clear: true,
|
clear: true,
|
||||||
placeholder: 'Find',
|
placeholder: Ox._('Find'),
|
||||||
width: 192
|
width: 192
|
||||||
})
|
})
|
||||||
.css({float: 'right', margin: '4px'})
|
.css({float: 'right', margin: '4px'})
|
||||||
|
|
|
@ -8,7 +8,7 @@ pandora.ui.titlesDialog = function() {
|
||||||
$findInput = Ox.Input({
|
$findInput = Ox.Input({
|
||||||
changeOnKeypress: true,
|
changeOnKeypress: true,
|
||||||
clear: true,
|
clear: true,
|
||||||
placeholder: 'Find',
|
placeholder: Ox._('Find'),
|
||||||
width: 192
|
width: 192
|
||||||
})
|
})
|
||||||
.css({float: 'right', margin: '4px'})
|
.css({float: 'right', margin: '4px'})
|
||||||
|
|
|
@ -83,7 +83,7 @@ pandora.ui.toolbar = function() {
|
||||||
function getListName(listId) {
|
function getListName(listId) {
|
||||||
return '<b>' + (
|
return '<b>' + (
|
||||||
listId == ''
|
listId == ''
|
||||||
? Ox._('All {0}', [pandora.site.itemName.plural])
|
? Ox._('All {0}', [Ox._(pandora.site.itemName.plural)])
|
||||||
: Ox.encodeHTMLEntities(listId.slice(listId.indexOf(':') + 1))
|
: Ox.encodeHTMLEntities(listId.slice(listId.indexOf(':') + 1))
|
||||||
) + '</b>';
|
) + '</b>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1710,7 +1710,7 @@ pandora.getStatusText = function(data) {
|
||||||
canSeeSize = pandora.site.capabilities.canSeeSize[pandora.user.level],
|
canSeeSize = pandora.site.capabilities.canSeeSize[pandora.user.level],
|
||||||
itemName = ['clip', 'video'].indexOf(ui.listView) > -1
|
itemName = ['clip', 'video'].indexOf(ui.listView) > -1
|
||||||
? (data.items == 1 ? Ox._('Clip') : Ox._('Clips'))
|
? (data.items == 1 ? Ox._('Clip') : Ox._('Clips'))
|
||||||
: (pandora.site.itemName[data.items == 1 ? 'singular' : 'plural']),
|
: Ox._(pandora.site.itemName[data.items == 1 ? 'singular' : 'plural']),
|
||||||
parts = [];
|
parts = [];
|
||||||
parts.push(Ox.formatNumber(data.items) + ' '+ itemName);
|
parts.push(Ox.formatNumber(data.items) + ' '+ itemName);
|
||||||
if (data.runtime) {
|
if (data.runtime) {
|
||||||
|
|
|
@ -249,7 +249,7 @@
|
||||||
"Message Sent": "Nachricht gesendet",
|
"Message Sent": "Nachricht gesendet",
|
||||||
"Modified": "Geändert",
|
"Modified": "Geändert",
|
||||||
"Mount Volume": "",
|
"Mount Volume": "",
|
||||||
"Move files": "Dateien verschieben",
|
"Move Files": "Dateien verschieben",
|
||||||
"Move selected files to another {0}": "Ausgewählte Datei in eine andere {0} verschieben",
|
"Move selected files to another {0}": "Ausgewählte Datei in eine andere {0} verschieben",
|
||||||
"Moving files...": "Dateien verschieben...",
|
"Moving files...": "Dateien verschieben...",
|
||||||
"Names": "Namen",
|
"Names": "Namen",
|
||||||
|
|
|
@ -251,7 +251,7 @@
|
||||||
"Message Sent": "संदेश भेज दिया गया",
|
"Message Sent": "संदेश भेज दिया गया",
|
||||||
"Modified": "संशोधित",
|
"Modified": "संशोधित",
|
||||||
"Mount Volume": "माउंट ड्राइव",
|
"Mount Volume": "माउंट ड्राइव",
|
||||||
"Move files": "मूव फ़ाईल्स",
|
"Move Files": "मूव फ़ाईल्स",
|
||||||
"Move selected files to another {0}": "चयनित फ़ाईल्स को दूसरे {0} में मूव करें",
|
"Move selected files to another {0}": "चयनित फ़ाईल्स को दूसरे {0} में मूव करें",
|
||||||
"Moving files...": "फ़ाईल्स मूविंग...",
|
"Moving files...": "फ़ाईल्स मूविंग...",
|
||||||
"Names": "नाम",
|
"Names": "नाम",
|
||||||
|
|
Loading…
Reference in a new issue