forked from 0x2620/pandora
wrap more strings
This commit is contained in:
parent
dc4046e8e7
commit
accbc7d5cb
2 changed files with 5 additions and 5 deletions
|
@ -267,7 +267,7 @@ pandora.ui.infoView = function(data) {
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatLink(value.split(', '), 'name');
|
return formatLink(value.split(', '), 'name');
|
||||||
},
|
},
|
||||||
placeholder: formatLight('Unknown Director'),
|
placeholder: formatLight(Ox._('Unknown Director')),
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||||
value: data.director ? data.director.join(', ') : ''
|
value: data.director ? data.director.join(', ') : ''
|
||||||
})
|
})
|
||||||
|
@ -613,7 +613,7 @@ pandora.ui.infoView = function(data) {
|
||||||
items = {};
|
items = {};
|
||||||
if (result.data.items) {
|
if (result.data.items) {
|
||||||
result.data.items.forEach(function(item) {
|
result.data.items.forEach(function(item) {
|
||||||
var year = item.year || 'Unknown Year';
|
var year = item.year || Ox._('Unknown Year');
|
||||||
if (key == 'name' && result.data.items.length > 1) {
|
if (key == 'name' && result.data.items.length > 1) {
|
||||||
item.roles = nameKeys.filter(function(nameKey) {
|
item.roles = nameKeys.filter(function(nameKey) {
|
||||||
return Ox.contains(item[nameKey], value);
|
return Ox.contains(item[nameKey], value);
|
||||||
|
@ -756,7 +756,7 @@ pandora.ui.infoView = function(data) {
|
||||||
.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'),
|
||||||
[canEdit ? Ox.toTitleCase(userLevel) : Ox._('You')]),
|
[canEdit ? Ox._(Ox.toTitleCase(userLevel)) : Ox._('You')]),
|
||||||
title: capability.symbol,
|
title: capability.symbol,
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
|
@ -899,7 +899,7 @@ pandora.ui.infoView = function(data) {
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatValue(key, value);
|
return formatValue(key, value);
|
||||||
},
|
},
|
||||||
placeholder: formatLight('unknown'),
|
placeholder: formatLight(Ox._('unknown')),
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||||
value: getValue(key, data[key])
|
value: getValue(key, data[key])
|
||||||
})
|
})
|
||||||
|
|
|
@ -628,7 +628,7 @@ pandora.ui.infoView = function(data) {
|
||||||
.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'),
|
||||||
[canEdit ? Ox.toTitleCase(userLevel) : Ox._('You')]),
|
[canEdit ? Ox._(Ox.toTitleCase(userLevel)) : Ox._('You')]),
|
||||||
title: capability.symbol,
|
title: capability.symbol,
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue