From b7f742b45c2d6b0e3756300d22defaad9455aca0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 10 May 2013 10:49:13 +0000 Subject: [PATCH] localize layer title/item --- static/js/pandora/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index d39292cd..f2e53bab 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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