Disable Language.get() warnings for now
authorMatthias Schmidt <gravatronics@live.com>
Fri, 25 Dec 2015 08:47:19 +0000 (09:47 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 25 Dec 2015 08:47:19 +0000 (09:47 +0100)
At development stage, these warnings are only spamming the console
without benefit.

wcfsetup/install/files/js/WoltLab/WCF/Language.js

index 7b1c689cd5e9cc240e77b5d7d10a3c49154b40b8..3b3a3ad7a18813a24e082b2bc475cef043acfe6a 100644 (file)
@@ -49,8 +49,9 @@ define(['Dictionary', './Template'], function(Dictionary, Template) {
                        var value = _languageItems.get(key);
                        
                        if (value === undefined) {
-                               console.warn("Attempt to retrieve unknown phrase '" + key + "'.");
-                               console.warn(new Error().stack);
+                               // TODO
+                               //console.warn("Attempt to retrieve unknown phrase '" + key + "'.");
+                               //console.warn(new Error().stack);
                                return key;
                        }