1
0
Fork 0
forked from 0x2620/oxjs

in video panels, use self.options.itemName

This commit is contained in:
rolux 2014-01-19 11:58:59 +05:30
commit da24434260
4 changed files with 11 additions and 3 deletions

View file

@ -51,6 +51,7 @@ Ox.AnnotationPanel = function(options, self) {
editable: false,
font: 'small',
highlight: '',
itemName: {singular: 'video', plural: 'videos'},
layers: [],
mapSize: 256,
range: 'all',
@ -232,6 +233,7 @@ Ox.AnnotationPanel = function(options, self) {
{id: 'undo', title: Ox._('Undo Changes'), disabled: !self.editing, keyboard: 'escape'},
{id: 'save', title: Ox._('Save Changes'), disabled: !self.editing, keyboard: isString ? 'return' : 'shift return'},
],
//FIXME: pandora is not part of Ox.UI
pandora.site.map == 'manual' ? [
{},
{id: 'manage', title: manageTitle, disabled: !self.options.selected || !isEventOrPlace},
@ -239,9 +241,8 @@ Ox.AnnotationPanel = function(options, self) {
isString ? [
{},
{id: 'annotation', title: annotationTitle, disabled: true},
//FIXME: pandora is not part of Ox.UI
{id: 'find', title: Ox._('Find in This {0}', Ox._(pandora.site.itemName.singular))},
{id: 'findannotations', title: Ox._('Find in All {0}', Ox._(pandora.site.itemName.plural))}
{id: 'find', title: Ox._('Find in This {0}', Ox.toTitleCase(self.options.itemName.singular))},
{id: 'findannotations', title: Ox._('Find in All {0}', Ox.toTitleCase(self.options.itemName.plural))}
] : []
),
maxWidth: 256,