forked from 0x2620/pandora
localize layer title/item
This commit is contained in:
parent
35eb535b03
commit
b7f742b45c
1 changed files with 2 additions and 0 deletions
|
@ -1133,6 +1133,8 @@ pandora.getVideoOptions = function(data) {
|
||||||
options.annotations = [];
|
options.annotations = [];
|
||||||
pandora.site.layers.forEach(function(layer, i) {
|
pandora.site.layers.forEach(function(layer, i) {
|
||||||
options.annotations[i] = Ox.extend({}, layer, {
|
options.annotations[i] = Ox.extend({}, layer, {
|
||||||
|
title: Ox._(layer.title),
|
||||||
|
item: Ox._(layer.item),
|
||||||
items: data.layers[layer.id].map(function(annotation) {
|
items: data.layers[layer.id].map(function(annotation) {
|
||||||
annotation.duration = Math.abs(annotation.out - annotation['in']);
|
annotation.duration = Math.abs(annotation.out - annotation['in']);
|
||||||
annotation.editable = annotation.editable
|
annotation.editable = annotation.editable
|
||||||
|
|
Loading…
Reference in a new issue