From: Alexander Ebert Date: Sat, 6 Jun 2015 13:42:57 +0000 (+0200) Subject: Improved warn message if `Language.get()` encounters an unknown key X-Git-Tag: 3.0.0_Beta_1~2281 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c90f76519f55b90f00bf82035b532b42db3f959;p=GitHub%2FWoltLab%2FWCF.git Improved warn message if `Language.get()` encounters an unknown key --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Language.js b/wcfsetup/install/files/js/WoltLab/WCF/Language.js index 69947efc92..38baaa48f1 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Language.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Language.js @@ -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; }