From: Olivier Lamy Date: Mon, 23 Jan 2012 20:44:56 +0000 (+0000) Subject: fix i18n loading, I tried something but did not finish: my bad X-Git-Tag: archiva-1.4-M3~1497 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=786fe3b7b6bdbe7b5ba35edb4edaec4cea34adb7;p=archiva.git 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 --- 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