Kaynağa Gözat

lang function is now getLangStrings()

causefx 7 yıl önce
ebeveyn
işleme
2a3d37e02d
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 3 0
      js/functions.js
  2. 1 1
      js/jquery-lang.js

+ 3 - 0
js/functions.js

@@ -18,6 +18,9 @@ $(document).ready(function () {
     launch();
 });
 /* NORMAL FUNCTIONS */
+function getLangStrings(){
+    console.log(JSON.stringify(window.langStrings))
+}
 function getHiddenProp(){
     var prefixes = ['webkit','moz','ms','o'];
     // if 'hidden' is natively supported just return it

+ 1 - 1
js/jquery-lang.js

@@ -603,7 +603,7 @@
 
                 if (!translation) {
                     if (console && console.log) {
-                        console.log('Translation for "' + text + '" not found in language pack: ' + lang + ' Type or copy this string into this console to get a full strings missing output: console.log(JSON.stringify(langStrings))');
+                        console.log('Translation for "' + text + '" not found in language pack: ' + lang + ' Type or copy this string into this console to get a full strings missing output: getLangStrings()');
                         langStrings['token'][text] = text;
                     }
                 }