]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
translation related: how-to md file added, script to generate php from all twig templ...
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index 8a9de488d732576c7a8cb4df66390d3a011cad33..deec42267a593de08cd1b65f6c3e8c594770cfe5 100755 (executable)
@@ -34,7 +34,7 @@ class Poche
       'pl_PL.utf8' => 'Polski',
       'ru_RU.utf8' => 'Pусский',
       'sl_SI.utf8' => 'Slovenščina',
-      'uk_UA.utf8' => 'УкÑ\80аÑ\97нÑ\81Ñ\8cкий',
+      'uk_UA.utf8' => 'УкÑ\80аÑ\97нÑ\81Ñ\8cка',
     );
     public function __construct()
     {
@@ -336,7 +336,7 @@ class Poche
         while (($language = readdir($handle)) !== false) {
             # Languages are stored in a directory, so all directory names are languages
             # @todo move language installation data to database
-            if (! is_dir(LOCALE . '/' . $language) || in_array($language, array('..', '.'))) {
+            if (! is_dir(LOCALE . '/' . $language) || in_array($language, array('..', '.', 'tools'))) {
                 continue;
             }
             
@@ -346,7 +346,7 @@ class Poche
                 $current = true;
             }
             
-            $languages[] = array('name' => $this->language_names[$language], 'value' => $language, 'current' => $current);
+            $languages[] = array('name' => (isset($this->language_names[$language]) ? $this->language_names[$language] : $language), 'value' => $language, 'current' => $current);
         }
         
         return $languages;