From 1ff1c02380220c937d5993900fc9bc46817259a5 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 10 Jun 2008 15:10:00 +0000 Subject: Marcus Povey * 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 --- engine/lib/languages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine') 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; } -- cgit v1.2.3