aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/languages.php
diff options
context:
space:
mode:
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;
}
}