From 02d65694d32f42a42f4cca989be7ff231e868522 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 10 Mar 2008 20:51:02 +0000 Subject: More language integration git-svn-id: https://code.elgg.org/elgg/trunk@148 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/languages.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'engine/lib/languages.php') diff --git a/engine/lib/languages.php b/engine/lib/languages.php index 3161932fd..f5abaaaa9 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -31,9 +31,9 @@ if (!isset($CONFIG->translations)) $CONFIG->translations = array(); - $country_code = strtlower($country_code); + $country_code = strtolower($country_code); $country_code = trim($country_code); - if (is_array($language_array) && sizoef($language_array) > 0 && $country_code != "") { + if (is_array($language_array) && sizeof($language_array) > 0 && $country_code != "") { if (!isset($CONFIG->translations[$country_code])) { $CONFIG->translations[$country_code] = $language_array; @@ -84,9 +84,8 @@ if ($handle = opendir($CONFIG->path . "languages/")) { while ($language = readdir($handle)) { if (!in_array($language,array('.','..','.svn','CVS')) && !is_dir($CONFIG->path . "/languages/" . $language)) { - //@include($CONFIG->path . "languages/" . $language); + include($CONFIG->path . "languages/" . $language); } - echo $language; } } -- cgit v1.2.3