aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-14 18:06:34 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-14 18:06:34 +0000
commit0fa665c8f465f2d3b85cb093d05f4d991516ca05 (patch)
tree026f1567f356f00ae51b50240865cdf8ec6b6e7e /engine/lib/languages.php
parentdc08082d7d5e3962c7c96a873ac1dd66891d5bb0 (diff)
downloadelgg-0fa665c8f465f2d3b85cb093d05f4d991516ca05.tar.gz
elgg-0fa665c8f465f2d3b85cb093d05f4d991516ca05.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Removed error outputs * Fixed languages git-svn-id: https://code.elgg.org/elgg/trunk@232 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/languages.php')
-rw-r--r--engine/lib/languages.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index f5abaaaa9..94956a3ca 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -58,11 +58,11 @@
global $CONFIG;
- if (empty($language))
+ if ((empty($language)) && (isset($CONFIG->language)))
$language = $CONFIG->language;
- if (isset($CONFIG->translations[$country_code][$message_key])) {
- return $CONFIG->translations[$country][$message_key];
+ if (isset($CONFIG->translations[$language][$message_key])) {
+ return $CONFIG->translations[$language][$message_key];
} else if (isset($CONFIG->translations["en"][$message_key])) {
return $CONFIG->translations["en"][$message_key];
}