From 786fe3b7b6bdbe7b5ba35edb4edaec4cea34adb7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 23 Jan 2012 20:44:56 +0000 Subject: [PATCH] fix i18n loading, I tried something but did not finish: my bad git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234979 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/i18nload.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/i18nload.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/i18nload.js index ae9daaf13..974a10921 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/i18nload.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/i18nload.js @@ -30,6 +30,11 @@ $(function() { // load default //loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources", {cache:false, mode: 'map',encoding:'utf-8'}); //if (browserLang!='en'){ - loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources?locale="+browserLang, {cache:false, mode: 'map',encoding:'utf-8'}); + var options = { + cache:false, + mode: 'map', + encoding:'utf-8' + }; + loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources?locale="+browserLang,options ); //} }); \ No newline at end of file -- 2.39.5