From 73b6cfc6c2ab5ad2967e10dcd9697d8c41c0e778 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 20 Jul 2017 12:26:29 +0200 Subject: [PATCH] placeholder for help translations --- static/js/helpDialog.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/helpDialog.js b/static/js/helpDialog.js index f3b4cd32..536012ae 100644 --- a/static/js/helpDialog.js +++ b/static/js/helpDialog.js @@ -48,9 +48,17 @@ pandora.ui.helpDialog = function() { that.select(data.value == '' ? 'help' : data.value); } } - }); + }), + url = '/static/html/help.html'; - Ox.get('/static/html/help.html', function(html) { + /* + // FIXME: should be updated at build time + if (Ox.contains(['ar'], pandora.user.ui.locale)) { + url = '/static/html/help.' + pandora.user.ui.locale + '.html'; + } + */ + + Ox.get(url, function(html) { var $html = $('
'), strings = Ox.clone(pandora.site, true);