diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 20:51:02 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 20:51:02 +0000 |
commit | 02d65694d32f42a42f4cca989be7ff231e868522 (patch) | |
tree | 59ef60147d26f6d175cfd996254144c78cb19f5f /engine | |
parent | 042c524bab3ab401c99ed40c0df1641201f16f07 (diff) | |
download | elgg-02d65694d32f42a42f4cca989be7ff231e868522.tar.gz elgg-02d65694d32f42a42f4cca989be7ff231e868522.tar.bz2 |
More language integration
git-svn-id: https://code.elgg.org/elgg/trunk@148 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/languages.php | 7 |
1 files changed, 3 insertions, 4 deletions
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;
}
}
|