aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/languages.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index e55d5622a..15c48f902 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -34,6 +34,11 @@ function elgg_echo($message_key, $args = array(), $language = "") {
$args = array();
}
+ if (!isset($CONFIG->translations)) {
+ // this means we probably had an exception before translations were initialized
+ register_translations(dirname(dirname(dirname(__FILE__))) . "/languages/");
+ }
+
if (!$CURRENT_LANGUAGE) {
$CURRENT_LANGUAGE = get_language();
}