aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 20:51:02 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 20:51:02 +0000
commit02d65694d32f42a42f4cca989be7ff231e868522 (patch)
tree59ef60147d26f6d175cfd996254144c78cb19f5f /engine/lib/languages.php
parent042c524bab3ab401c99ed40c0df1641201f16f07 (diff)
downloadelgg-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/lib/languages.php')
-rw-r--r--engine/lib/languages.php7
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;
}
}