aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-13 01:32:44 +0200
committerSem <sembrestels@riseup.net>2012-07-13 01:32:44 +0200
commit25c324f5bf0f8737268c34626455a302b819651e (patch)
treefa2210fabc82b503a3d4712db1fd5d8da2f78c98 /engine/lib/languages.php
parent538a4c24bd9c942d8e0e9a58a650a29188fbd2ce (diff)
downloadelgg-25c324f5bf0f8737268c34626455a302b819651e.tar.gz
elgg-25c324f5bf0f8737268c34626455a302b819651e.tar.bz2
Refs #4004. Downgraded to notice and warning. It also returns the complete language name.
Diffstat (limited to 'engine/lib/languages.php')
-rw-r--r--engine/lib/languages.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index e8e3d31af..77128202f 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -50,10 +50,11 @@ 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);
+ $lang = elgg_echo($language, array(), 'en');
+ elgg_log(sprintf('Missing %s translation for "%s" language key', $lang, $message_key), 'NOTICE');
} else {
$string = $message_key;
- elgg_log(sprintf('Missing %s translation for "%s" language key', $language, $message_key), ERROR);
+ elgg_log(sprintf('Missing English translation for "%s" language key', $message_key), 'WARNING');
}
// only pass through if we have arguments to allow backward compatibility