aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 15:10:00 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-10 15:10:00 +0000
commit1ff1c02380220c937d5993900fc9bc46817259a5 (patch)
tree71d9c99677c91fe1c759594245fb1c85f404cad3 /engine/lib
parent94195039ec7806ba18d9bb739278a757a281bdcf (diff)
downloadelgg-1ff1c02380220c937d5993900fc9bc46817259a5.tar.gz
elgg-1ff1c02380220c937d5993900fc9bc46817259a5.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Modified elgg_echo to return $message_key if no translations found, meaning you will always get _something_ from the command and will serve to prompt people for missing translations. git-svn-id: https://code.elgg.org/elgg/trunk@851 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/languages.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index 652a22961..8781110b7 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -59,7 +59,7 @@
global $CONFIG;
if ((empty($language)) && (isset($CONFIG->language)))
- $language = $CONFIG->language;
+ $language = $CONFIG->language;
if (isset($CONFIG->translations[$language][$message_key])) {
return $CONFIG->translations[$language][$message_key];
@@ -67,7 +67,7 @@
return $CONFIG->translations["en"][$message_key];
}
- return "";
+ return $message_key;
}