diff options
author | Sem <sembrestels@riseup.net> | 2012-07-08 10:42:17 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-08 10:42:17 +0200 |
commit | 538a4c24bd9c942d8e0e9a58a650a29188fbd2ce (patch) | |
tree | 005d77d4a3b77897a5f2b3c3d60b4182bd713eb2 | |
parent | 7fd67bc8ac6882f1a73aa7f8f907cd6c2a694272 (diff) | |
download | elgg-538a4c24bd9c942d8e0e9a58a650a29188fbd2ce.tar.gz elgg-538a4c24bd9c942d8e0e9a58a650a29188fbd2ce.tar.bz2 |
Fixes #4004. elgg_logging when a language key is missing.
-rw-r--r-- | engine/lib/languages.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php index 15c48f902..e8e3d31af 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -50,8 +50,10 @@ function elgg_echo($message_key, $args = array(), $language = "") { $string = $CONFIG->translations[$language][$message_key]; } else if (isset($CONFIG->translations["en"][$message_key])) { $string = $CONFIG->translations["en"][$message_key]; + elgg_log(sprintf('Missing %s translation for "%s" language key', $language, $message_key), WARNING); } else { $string = $message_key; + elgg_log(sprintf('Missing %s translation for "%s" language key', $language, $message_key), ERROR); } // only pass through if we have arguments to allow backward compatibility |