]> wagnertech.de Git - mfinanz.git/blobdiff - js/kivi.js
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[mfinanz.git] / js / kivi.js
index db9904b53acc076aa3f2895fd3126a8f5a6b4668..77c78a2cc4ece28ef43dfda8ed12d26edf181fd7 100644 (file)
@@ -6,16 +6,15 @@ namespace("kivi", function(ns) {
   ns.t8 = function(text, params) {
     if( ns._localeLang ) {
       if( !ns._locales[ns._localeLang] ) {
+        ns._locales[ns._localeLang] = {};
+
         jQuery.ajax({
-          url: "locale/"+ ns._localeLang +"/js.js",
+          url: "js/locale/"+ ns._localeLang +".js",
           async: false,
           dataType: "json",
           success: function(res) {
             ns._locales[ns._localeLang] = res;
           },
-          error: function(xhr, textStatus, errorThrown) {
-            alert(textStatus +": "+ errorThrown);
-          },
         });
       }