in video panels, use self.options.itemName
This commit is contained in:
parent
b51dba0692
commit
da24434260
4 changed files with 11 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -69,6 +69,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
getLargeTimelineURL: null,
|
||||
getSmallTimelineURL: null,
|
||||
'in': 0,
|
||||
itemName: {singular: 'video', plural: 'videos'},
|
||||
height: 0,
|
||||
layers: [],
|
||||
loop: false,
|
||||
|
@ -743,6 +744,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
font: self.options.annotationsFont,
|
||||
highlight: self.options.find,
|
||||
'in': self.options['in'],
|
||||
itemName: self.options.itemName,
|
||||
layers: self.options.layers,
|
||||
mapSize: self.options.annotationsMapSize,
|
||||
out: self.options.out,
|
||||
|
|
|
@ -56,6 +56,7 @@ Ox.VideoPlayerPanel = function(options, self) {
|
|||
getLargeTimelineURL: null,
|
||||
height: 0,
|
||||
'in': 0,
|
||||
itemName: {singular: 'video', plural: 'videos'},
|
||||
layers: [],
|
||||
loop: false,
|
||||
muted: false,
|
||||
|
@ -336,6 +337,7 @@ Ox.VideoPlayerPanel = function(options, self) {
|
|||
font: self.options.annotationsFont,
|
||||
highlight: self.options.find,
|
||||
'in': self.options['in'],
|
||||
itemName: self.options.itemName,
|
||||
layers: self.options.layers,
|
||||
mapSize: self.options.annotationsMapSize,
|
||||
out: self.options.out,
|
||||
|
|
|
@ -48,6 +48,8 @@ Ox.VideoTimelinePanel = function(options, self) {
|
|||
getFrameURL: null,
|
||||
getLargeTimelineURL: null,
|
||||
height: 0,
|
||||
'in': 0,
|
||||
itemName: {singular: 'video', plural: 'videos'},
|
||||
layers: [],
|
||||
loop: false, // fixme: used?
|
||||
muted: false,
|
||||
|
@ -164,6 +166,7 @@ Ox.VideoTimelinePanel = function(options, self) {
|
|||
font: self.options.annotationsFont,
|
||||
highlight: self.options.find,
|
||||
'in': self.options['in'],
|
||||
itemName: self.options.itemName,
|
||||
layers: self.options.layers,
|
||||
mapSize: self.options.annotationsMapSize,
|
||||
out: self.options.out,
|
||||
|
|
Loading…
Reference in a new issue