From ad551f29692b9efd66f5618f3c1eb5acc3ffa332 Mon Sep 17 00:00:00 2001 From: kuoruan Date: Wed, 4 Jan 2017 12:07:07 +0800 Subject: [PATCH 1/2] Avoid angular translate security warning --- js/init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/init.js b/js/init.js index 31b34b7..872c886 100755 --- a/js/init.js +++ b/js/init.js @@ -41,6 +41,7 @@ webui.config(['$translateProvider', function ($translateProvider) { .translations('ru_RU', mergeTranslation(translations.ru_RU, translations.en_US)) .translations('it_IT', mergeTranslation(translations.it_IT, translations.en_US)) .translations('tr_TR', mergeTranslation(translations.tr_TR, translations.en_US)) + .useSanitizeValueStrategy('escapeParameters') .determinePreferredLanguage(); }]); From c087af8e78f33903c2533c773010b0210509efcc Mon Sep 17 00:00:00 2001 From: kuoruan Date: Wed, 4 Jan 2017 13:53:02 +0800 Subject: [PATCH 2/2] Add more translation --- index.html | 14 +++++++------- js/ctrls/main.js | 8 +++++--- js/ctrls/nav.js | 38 ++++++++++++++++++++------------------ js/services/rpc/rpc.js | 5 +++-- js/translate/de_DE.js | 3 --- js/translate/en_US.js | 9 ++++++--- js/translate/es_ES.js | 3 --- js/translate/fr_FR.js | 3 --- js/translate/it_IT.js | 3 --- js/translate/pl_PL.js | 3 --- js/translate/ru_RU.js | 5 +---- js/translate/template.js | 11 ++++++++--- js/translate/th_TH.js | 3 --- js/translate/tr_TR.js | 3 --- js/translate/zh_CN.js | 12 ++++++++++-- js/translate/zh_TW.js | 12 ++++++++++-- 16 files changed, 70 insertions(+), 65 deletions(-) diff --git a/index.html b/index.html index 48d5283..9744a2a 100755 --- a/index.html +++ b/index.html @@ -536,7 +536,7 @@