From 36a020b7e5f8ec7e68d9ee15cf1f845e5a47e103 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Jan 2013 14:08:54 -0500 Subject: Fixes #4956 language unit tests pass again --- js/lib/languages.js | 3 +++ views/default/js/elgg.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/lib/languages.js b/js/lib/languages.js index a8ba72c31..99a1ba0ee 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -4,6 +4,9 @@ */ elgg.provide('elgg.config.translations'); +// default language - required by unit tests +elgg.config.language = 'en'; + /** * Analagous to the php version. Merges translations for a * given language into the current translations map. diff --git a/views/default/js/elgg.php b/views/default/js/elgg.php index b82d98ce4..6fe03484d 100644 --- a/views/default/js/elgg.php +++ b/views/default/js/elgg.php @@ -56,7 +56,8 @@ if (0) { ?>