in video panels, use self.options.itemName

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

View file

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

View file

@ -69,6 +69,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
getLargeTimelineURL: null, getLargeTimelineURL: null,
getSmallTimelineURL: null, getSmallTimelineURL: null,
'in': 0, 'in': 0,
itemName: {singular: 'video', plural: 'videos'},
height: 0, height: 0,
layers: [], layers: [],
loop: false, loop: false,
@ -743,6 +744,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
font: self.options.annotationsFont, font: self.options.annotationsFont,
highlight: self.options.find, highlight: self.options.find,
'in': self.options['in'], 'in': self.options['in'],
itemName: self.options.itemName,
layers: self.options.layers, layers: self.options.layers,
mapSize: self.options.annotationsMapSize, mapSize: self.options.annotationsMapSize,
out: self.options.out, out: self.options.out,

View file

@ -56,6 +56,7 @@ Ox.VideoPlayerPanel = function(options, self) {
getLargeTimelineURL: null, getLargeTimelineURL: null,
height: 0, height: 0,
'in': 0, 'in': 0,
itemName: {singular: 'video', plural: 'videos'},
layers: [], layers: [],
loop: false, loop: false,
muted: false, muted: false,
@ -336,6 +337,7 @@ Ox.VideoPlayerPanel = function(options, self) {
font: self.options.annotationsFont, font: self.options.annotationsFont,
highlight: self.options.find, highlight: self.options.find,
'in': self.options['in'], 'in': self.options['in'],
itemName: self.options.itemName,
layers: self.options.layers, layers: self.options.layers,
mapSize: self.options.annotationsMapSize, mapSize: self.options.annotationsMapSize,
out: self.options.out, out: self.options.out,

View file

@ -48,6 +48,8 @@ Ox.VideoTimelinePanel = function(options, self) {
getFrameURL: null, getFrameURL: null,
getLargeTimelineURL: null, getLargeTimelineURL: null,
height: 0, height: 0,
'in': 0,
itemName: {singular: 'video', plural: 'videos'},
layers: [], layers: [],
loop: false, // fixme: used? loop: false, // fixme: used?
muted: false, muted: false,
@ -164,6 +166,7 @@ Ox.VideoTimelinePanel = function(options, self) {
font: self.options.annotationsFont, font: self.options.annotationsFont,
highlight: self.options.find, highlight: self.options.find,
'in': self.options['in'], 'in': self.options['in'],
itemName: self.options.itemName,
layers: self.options.layers, layers: self.options.layers,
mapSize: self.options.annotationsMapSize, mapSize: self.options.annotationsMapSize,
out: self.options.out, out: self.options.out,