]> source.dussan.org Git - archiva.git/commitdiff
fix i18n loading, I tried something but did not finish: my bad
authorOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 20:44:56 +0000 (20:44 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 20:44:56 +0000 (20:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234979 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/i18nload.js

index ae9daaf13f7b56759bf839b2e832890686b77146..974a109210f4f6a2d9aab056ebdd6a76750bc3d3 100644 (file)
@@ -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