From 7b63decfeeb5dd8b4c94ffadcccab44a55b98087 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 4 Nov 2016 11:46:59 +0100 Subject: [PATCH] eliminate one step from the translation process by auto-adding languages to selector --- customize.dist/DecorateToolbar.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/customize.dist/DecorateToolbar.js b/customize.dist/DecorateToolbar.js index 6ec6eac89..49a30c79f 100644 --- a/customize.dist/DecorateToolbar.js +++ b/customize.dist/DecorateToolbar.js @@ -18,8 +18,17 @@ define([ $.ajax({ url: isHtml ? '/customize/BottomBar.html' : '/customize/Header.html', success: function (ret) { - //:$('iframe').height('96%'); - $('body').append(ret); + var $bar = $(ret); + $('body').append($bar); + + var $sel = $bar.find('#language-selector'); + + Object.keys(Messages._languages).forEach(function (code) { + $sel.append($('