aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 2b1668de9..8a3a1f116 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -774,8 +774,13 @@ function get_name_from_file($filename)
*/
function l10n($key)
{
- global $lang;
+ global $lang, $conf;
- return (isset($lang[$key])) ? $lang[$key] : $key;
+ if ($conf['debug_l10n'])
+ {
+ echo '[l10n] language key "'.$key.'" is not defined<br />';
+ }
+
+ return isset($lang[$key]) ? $lang[$key] : $key;
}
?>