diff options
Diffstat (limited to 'inc/poche')
-rwxr-xr-x | inc/poche/Poche.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 8a9de488..deec4226 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -34,7 +34,7 @@ class Poche | |||
34 | 'pl_PL.utf8' => 'Polski', | 34 | 'pl_PL.utf8' => 'Polski', |
35 | 'ru_RU.utf8' => 'Pусский', | 35 | 'ru_RU.utf8' => 'Pусский', |
36 | 'sl_SI.utf8' => 'Slovenščina', | 36 | 'sl_SI.utf8' => 'Slovenščina', |
37 | 'uk_UA.utf8' => 'Українськй', | 37 | 'uk_UA.utf8' => 'Українськ', |
38 | ); | 38 | ); |
39 | public function __construct() | 39 | public function __construct() |
40 | { | 40 | { |
@@ -336,7 +336,7 @@ class Poche | |||
336 | while (($language = readdir($handle)) !== false) { | 336 | while (($language = readdir($handle)) !== false) { |
337 | # Languages are stored in a directory, so all directory names are languages | 337 | # Languages are stored in a directory, so all directory names are languages |
338 | # @todo move language installation data to database | 338 | # @todo move language installation data to database |
339 | if (! is_dir(LOCALE . '/' . $language) || in_array($language, array('..', '.'))) { | 339 | if (! is_dir(LOCALE . '/' . $language) || in_array($language, array('..', '.', 'tools'))) { |
340 | continue; | 340 | continue; |
341 | } | 341 | } |
342 | 342 | ||
@@ -346,7 +346,7 @@ class Poche | |||
346 | $current = true; | 346 | $current = true; |
347 | } | 347 | } |
348 | 348 | ||
349 | $languages[] = array('name' => $this->language_names[$language], 'value' => $language, 'current' => $current); | 349 | $languages[] = array('name' => (isset($this->language_names[$language]) ? $this->language_names[$language] : $language), 'value' => $language, 'current' => $current); |
350 | } | 350 | } |
351 | 351 | ||
352 | return $languages; | 352 | return $languages; |