even more localization
This commit is contained in:
parent
d215c0fad0
commit
96ad166cb1
17 changed files with 50 additions and 50 deletions
|
@ -383,10 +383,10 @@ pandora.ui.accountWelcomeDialog = function() {
|
|||
.append(
|
||||
Ox.Element()
|
||||
.css({position: 'absolute', left: '96px', top: '16px', width: '192px'})
|
||||
.html(
|
||||
'Welcome, ' + Ox.encodeHTMLEntities(pandora.user.username)
|
||||
+ '!<br/><br/>Your account has been created.'
|
||||
)
|
||||
.html(Ox._(
|
||||
'Welcome, {0}!<br/><br/>Your account has been created.',
|
||||
[Ox.encodeHTMLEntities(pandora.user.username)]
|
||||
))
|
||||
),
|
||||
fixedSize: true,
|
||||
height: 128,
|
||||
|
|
|
@ -13,7 +13,8 @@ pandora.ui.editor = function(data) {
|
|||
annotationsRange: ui.annotationsRange,
|
||||
annotationsSize: ui.annotationsSize,
|
||||
annotationsSort: ui.annotationsSort,
|
||||
annotationsTooltip: 'annotations <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'A</span>',
|
||||
annotationsTooltip: Ox._('annotations {}',
|
||||
['<span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'A</span>']),
|
||||
censored: data.censored,
|
||||
censoredIcon: pandora.site.cantPlay.icon,
|
||||
censoredTooltip: pandora.site.cantPlay.text,
|
||||
|
|
|
@ -274,7 +274,7 @@ pandora.ui.folderList = function(id) {
|
|||
if (id == 'personal') {
|
||||
if (event.keys == '' || event.keys == 'alt') {
|
||||
pandora.api.addList({
|
||||
name: 'Untitled',
|
||||
name: Ox._('Untitled'),
|
||||
status: 'private',
|
||||
type: event.keys == '' ? 'static' : 'smart'
|
||||
}, function(result) {
|
||||
|
|
|
@ -259,7 +259,7 @@ pandora.ui.folders = function() {
|
|||
hasFocus, id;
|
||||
if (data.id == 'new' || data.id == 'newsmart') {
|
||||
pandora.api.addList({
|
||||
name: 'Untitled',
|
||||
name: Ox._('Untitled'),
|
||||
status: 'private',
|
||||
type: data.id == 'new' ? 'static' : 'smart'
|
||||
}, function(result) {
|
||||
|
|
|
@ -140,7 +140,7 @@ pandora.ui.info = function() {
|
|||
marginTop: '2px',
|
||||
fontSize: '9px',
|
||||
textAlign: 'center'
|
||||
}).html('No Video')
|
||||
}).html(Ox._('No Video'))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ pandora.ui.infoView = function(data) {
|
|||
iconLeft = iconSize == 256 ? Math.floor((iconSize - iconWidth) / 2) : 0,
|
||||
borderRadius = ui.icons == 'posters' ? 0 : iconSize / 8,
|
||||
margin = 16,
|
||||
nameKeys = ['director', 'cinematograper', 'featuring'],
|
||||
nameKeys = ['director', 'cinematographer', 'featuring'],
|
||||
listKeys = nameKeys.concat(['language', 'topic', 'license', 'groups']),
|
||||
statisticsWidth = 128,
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ pandora.ui.leftPanel = function() {
|
|||
collapsible: true,
|
||||
element: pandora.$ui.info = pandora.ui.info(),
|
||||
size: pandora.getInfoHeight(true),
|
||||
tooltip: 'info <span class="OxBright">'
|
||||
tooltip: Ox('info') + ' <span class="OxBright">'
|
||||
+ Ox.SYMBOLS.SHIFT + 'I</span>'
|
||||
}
|
||||
],
|
||||
|
|
|
@ -80,7 +80,7 @@ pandora.ui.listDialog = function(section) {
|
|||
pandora.$ui.findIconItemInput = Ox.Input({
|
||||
changeOnKeypress: true,
|
||||
clear: true,
|
||||
placeholder: 'Find: All',
|
||||
placeholder: Ox._('Find: All'),
|
||||
width: 128 + Ox.UI.SCROLLBAR_SIZE
|
||||
})
|
||||
.bindEvent({
|
||||
|
@ -165,7 +165,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
subscribers = result.data.items[0].subscribers,
|
||||
$icon = Ox.Element({
|
||||
element: '<img>',
|
||||
tooltip: 'Doubleclick to edit icon'
|
||||
tooltip: Ox._('Doubleclick to edit icon')
|
||||
})
|
||||
.attr({
|
||||
src: '/' + folderItem.toLowerCase() + '/' + listData.id + '/icon256.jpg?' + Ox.uid()
|
||||
|
@ -185,7 +185,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
})
|
||||
.appendTo(that),
|
||||
$nameInput = Ox.Input({
|
||||
label: 'Name',
|
||||
label: Ox._('Name'),
|
||||
labelWidth: 80,
|
||||
value: listData.name,
|
||||
width: 320
|
||||
|
@ -199,7 +199,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
$itemsInput = ui.section == 'items'
|
||||
? Ox.Input({
|
||||
disabled: true,
|
||||
label: 'Items',
|
||||
label: Ox._('Items'),
|
||||
labelWidth: 80,
|
||||
value: listData.items,
|
||||
width: 320
|
||||
|
@ -214,7 +214,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
title: rightsLevel.name,
|
||||
};
|
||||
}),
|
||||
label: 'Rights Level',
|
||||
label: Ox._('Rights Level'),
|
||||
labelWidth: 90,
|
||||
value: listData.rightslevel,
|
||||
width: 320
|
||||
|
@ -227,7 +227,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
$statusSelect = listData.status == 'featured'
|
||||
? Ox.Input({
|
||||
disabled: true,
|
||||
label: 'Status',
|
||||
label: Ox._('Status'),
|
||||
labelWidth: 80,
|
||||
value: 'Featured',
|
||||
width: 320
|
||||
|
@ -239,7 +239,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
{id: 'private', title: Ox._('Private')},
|
||||
{id: 'public', title: Ox._('Public')}
|
||||
],
|
||||
label: 'Status',
|
||||
label: Ox._('Status'),
|
||||
labelWidth: 80,
|
||||
value: listData.status,
|
||||
width: 320
|
||||
|
@ -251,7 +251,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
.appendTo(that),
|
||||
$subscribersInput = Ox.Input({
|
||||
disabled: true,
|
||||
label: 'Subscribers',
|
||||
label: Ox._('Subscribers'),
|
||||
labelWidth: 80,
|
||||
value: subscribers,
|
||||
width: 320
|
||||
|
@ -261,7 +261,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
.appendTo(that),
|
||||
$descriptionInput = Ox.Input({
|
||||
height: getDescriptionHeight(),
|
||||
placeholder: 'Description',
|
||||
placeholder: Ox._('Description'),
|
||||
type: 'textarea',
|
||||
value: description,
|
||||
width: 320
|
||||
|
@ -297,7 +297,7 @@ pandora.ui.listGeneralPanel = function(listData) {
|
|||
Ox.Request.clearCache('find' + folderItems);
|
||||
pandora.$ui.info.updateListInfo();
|
||||
pandora.$ui.listDialog.options({
|
||||
title: folderItem + ' — ' + Ox.encodeHTMLEntities(listData.name)
|
||||
title: Ox._(folderItem) + ' — ' + Ox.encodeHTMLEntities(listData.name)
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -32,7 +32,7 @@ pandora.ui.logsDialog = function() {
|
|||
$findInput = Ox.Input({
|
||||
changeOnKeypress: true,
|
||||
clear: true,
|
||||
placeholder: 'Find: All',
|
||||
placeholder: Ox._('Find: All'),
|
||||
width: 192
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
|
@ -248,7 +248,7 @@ pandora.ui.metadataDialog = function(data) {
|
|||
})
|
||||
],
|
||||
separators: [
|
||||
{title: ['Current', 'Update'][i], width: 64}
|
||||
{title: [Ox._('Current'), Ox_('Update')][i], width: 64}
|
||||
]
|
||||
})
|
||||
.css({display: 'inline-block', margin: '3px'})
|
||||
|
|
|
@ -239,10 +239,8 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
|||
}
|
||||
|
||||
function updateStatusbar(items) {
|
||||
$status.html(
|
||||
(items ? Ox.formatNumber(items) : 'No')
|
||||
+ ' Clip' + (items == 1 ? '' : 's')
|
||||
);
|
||||
//fixme how to capitalize Ox.formatCount?
|
||||
$status.html(Ox.formatCount(items, 'Clip'));
|
||||
}
|
||||
|
||||
if (type == 'map') {
|
||||
|
|
|
@ -111,7 +111,7 @@ pandora.ui.news = function(width, height) {
|
|||
clickLink: pandora.clickLink,
|
||||
editable: isEditable,
|
||||
maxHeight: height - 96,
|
||||
placeholder: 'No text',
|
||||
placeholder: Ox._('No text'),
|
||||
tooltip: isEditable ? pandora.getEditTooltip() : '',
|
||||
type: 'textarea',
|
||||
value: items[index].text,
|
||||
|
|
|
@ -13,7 +13,8 @@ pandora.ui.player = function(data) {
|
|||
annotationsRange: ui.annotationsRange,
|
||||
annotationsSize: ui.annotationsSize,
|
||||
annotationsSort: ui.annotationsSort,
|
||||
annotationsTooltip: 'annotations <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'A</span>',
|
||||
annotationsTooltip: Ox._('annotations {}',
|
||||
['<span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'A</span>']),
|
||||
censored: data.censored,
|
||||
censoredIcon: pandora.site.cantPlay.icon,
|
||||
censoredTooltip: pandora.site.cantPlay.text,
|
||||
|
|
|
@ -356,11 +356,11 @@ pandora.ui.sequencesDialog = function() {
|
|||
}
|
||||
|
||||
function getTitle() {
|
||||
return pandora.user.ui.sequenceSort[0].operator == '+' ? 'up' : 'down';
|
||||
return pandora.user.ui.sequenceSort[0].operator == '+' ? Ox._('up') : Ox._('down');
|
||||
}
|
||||
|
||||
function getTooltip() {
|
||||
return pandora.user.ui.sequenceSort[0].operator == '+' ? 'Ascending' : 'Descending';
|
||||
return pandora.user.ui.sequenceSort[0].operator == '+' ? Ox._('Ascending') : Ox._('Descending');
|
||||
}
|
||||
|
||||
function openClip() {
|
||||
|
|
|
@ -394,7 +394,7 @@ pandora.ui.textEmbed = function() {
|
|||
|
||||
$message = $('<div>')
|
||||
.css({marginTop: '16px', textAlign: 'center'})
|
||||
.html('No Embeds')
|
||||
.html(Ox._('No Embeds'))
|
||||
.hide()
|
||||
.appendTo(that),
|
||||
|
||||
|
|
|
@ -612,23 +612,23 @@ pandora.ui.usersDialog = function() {
|
|||
items: [
|
||||
Ox.Checkbox({
|
||||
id: 'status',
|
||||
label: 'Status',
|
||||
label: Ox._('Status'),
|
||||
labelWidth: 80,
|
||||
title: !user.disabled ? 'Enabled' : 'Disabled',
|
||||
title: !user.disabled ? Ox._('Enabled') : Ox._('Disabled'),
|
||||
value: !user.disabled,
|
||||
width: formWidth - 16
|
||||
})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
this.options({
|
||||
title: this.options('title') == 'Enabled'
|
||||
? 'Disabled' : 'Enabled'
|
||||
title: this.options('title') == Ox._('Enabled')
|
||||
? Ox._('Disabled') : Ox._('Enabled')
|
||||
});
|
||||
}
|
||||
}),
|
||||
Ox.Input({
|
||||
id: 'username',
|
||||
label: 'Username',
|
||||
label: Ox._('Username'),
|
||||
labelWidth: 80,
|
||||
value: user.username,
|
||||
width: formWidth - 16
|
||||
|
@ -640,7 +640,7 @@ pandora.ui.usersDialog = function() {
|
|||
}),
|
||||
Ox.Input({
|
||||
id: 'email',
|
||||
label: 'E-Mail',
|
||||
label: Ox._('E-Mail'),
|
||||
labelWidth: 80,
|
||||
value: user.email,
|
||||
width: formWidth - 16
|
||||
|
@ -658,30 +658,30 @@ pandora.ui.usersDialog = function() {
|
|||
title: Ox.toTitleCase(level)
|
||||
};
|
||||
}),
|
||||
label: 'Level',
|
||||
label: Ox._('Level'),
|
||||
labelWidth: 80,
|
||||
value: user.level,
|
||||
width: formWidth - 16
|
||||
}),
|
||||
Ox.Checkbox({
|
||||
id: 'newsletter',
|
||||
label: 'Newsletter',
|
||||
label: Ox._('Newsletter'),
|
||||
labelWidth: 80,
|
||||
title: user.newsletter ? 'Subscribed' : 'Unsubscribed',
|
||||
title: user.newsletter ? Ox._('Subscribed') : Ox._('Unsubscribed'),
|
||||
value: user.newsletter,
|
||||
width: formWidth - 16
|
||||
})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
this.options({
|
||||
title: this.options('title') == 'Subscribed'
|
||||
? 'Unsubscribed' : 'Subscribed'
|
||||
title: this.options('title') == Ox._('Subscribed')
|
||||
? Ox._('Unsubscribed') : Ox._('Subscribed')
|
||||
});
|
||||
}
|
||||
}),
|
||||
Ox.Input({
|
||||
id: 'groups',
|
||||
label: 'Groups',
|
||||
label: Ox._('Groups'),
|
||||
labelWidth: 80,
|
||||
value: user.groups ? user.groups.join(', ') : '',
|
||||
width: formWidth - 16
|
||||
|
@ -694,7 +694,7 @@ pandora.ui.usersDialog = function() {
|
|||
Ox.Input({
|
||||
height: dialogHeight - 184,
|
||||
id: 'notes',
|
||||
placeholder: 'Notes',
|
||||
placeholder: Ox._('Notes'),
|
||||
type: 'textarea',
|
||||
value: user.notes,
|
||||
width: formWidth - 16
|
||||
|
@ -735,7 +735,7 @@ pandora.ui.usersDialog = function() {
|
|||
Ox.Input({
|
||||
disabled: true,
|
||||
id: 'from',
|
||||
label: 'From',
|
||||
label: Ox_('From'),
|
||||
labelWidth: 80,
|
||||
value: pandora.site.site.name + ' <' + pandora.site.site.email.contact + '>',
|
||||
width: formWidth - 16
|
||||
|
@ -743,7 +743,7 @@ pandora.ui.usersDialog = function() {
|
|||
Ox.Input({
|
||||
disabled: true,
|
||||
id: 'to',
|
||||
label: 'To',
|
||||
label: Ox._('To'),
|
||||
labelWidth: 80,
|
||||
value: '',
|
||||
width: formWidth - 16
|
||||
|
@ -754,7 +754,7 @@ pandora.ui.usersDialog = function() {
|
|||
{id: 'users', title: Ox._('All users')},
|
||||
{id: 'subscribers', title: Ox._('Subscribers only')},
|
||||
],
|
||||
label: 'Include',
|
||||
label: Ox._('Include'),
|
||||
labelWidth: 80,
|
||||
width: formWidth - 16
|
||||
})
|
||||
|
@ -766,7 +766,7 @@ pandora.ui.usersDialog = function() {
|
|||
}),
|
||||
Ox.Input({
|
||||
id: 'subject',
|
||||
label: 'Subject',
|
||||
label: Ox._('Subject'),
|
||||
labelWidth: 80,
|
||||
value: pandora.site.site.email.prefix + ' ',
|
||||
width: formWidth - 16
|
||||
|
@ -777,7 +777,7 @@ pandora.ui.usersDialog = function() {
|
|||
Ox.Input({
|
||||
height: dialogHeight - 208,
|
||||
id: 'message',
|
||||
placeholder: 'Message',
|
||||
placeholder: Ox._('Message'),
|
||||
type: 'textarea',
|
||||
value: '\n\n' + pandora.site.site.email.footer,
|
||||
width: formWidth - 16
|
||||
|
|
|
@ -21,7 +21,7 @@ pandora.addList = function() {
|
|||
isSmart = arguments[0];
|
||||
isFrom = arguments[1];
|
||||
data = {
|
||||
name: 'Untitled',
|
||||
name: Ox._('Untitled'),
|
||||
status: 'private',
|
||||
type: !isSmart ? 'static' : 'smart'
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue