Improved warn message if `Language.get()` encounters an unknown key
authorAlexander Ebert <ebert@woltlab.com>
Sat, 6 Jun 2015 13:42:57 +0000 (15:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 6 Jun 2015 13:42:57 +0000 (15:42 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Language.js

index 69947efc92f7f227e7a39183957627ca55f003af..38baaa48f176c263d7a3f9c0e48fccfa00de3563 100644 (file)
@@ -49,7 +49,7 @@ define(['Dictionary', './Template'], function(Dictionary, Template) {
                        var value = _languageItems.get(key);
                        
                        if (value === undefined) {
-                               console.warn("Trying to get() undefined language item.");
+                               console.warn("Attempt to retrieve unknown phrase '" + key + "'.");
                                return key;
                        }