localize layer title/item

This commit is contained in:
j 2013-05-10 10:49:13 +00:00
parent 35eb535b03
commit b7f742b45c

View file

@ -1133,6 +1133,8 @@ pandora.getVideoOptions = function(data) {
options.annotations = [];
pandora.site.layers.forEach(function(layer, i) {
options.annotations[i] = Ox.extend({}, layer, {
title: Ox._(layer.title),
item: Ox._(layer.item),
items: data.layers[layer.id].map(function(annotation) {
annotation.duration = Math.abs(annotation.out - annotation['in']);
annotation.editable = annotation.editable