aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2014-02-26 14:56:15 +0100
committerNicolas Lœuillet <nicolas@loeuillet.org>2014-02-26 14:56:15 +0100
commit0e7f04b04ed73d4ef320948323742631a3d125e8 (patch)
treec9047a3c375eee5b8801283704e3803e0885d226 /inc/poche/Poche.class.php
parent72f7ff058931806f9d0f2ca06d58c47264e33dfb (diff)
parentcbcae4037c02cd6c1ce7c373c6dae390565b7c51 (diff)
downloadwallabag-0e7f04b04ed73d4ef320948323742631a3d125e8.tar.gz
wallabag-0e7f04b04ed73d4ef320948323742631a3d125e8.tar.zst
wallabag-0e7f04b04ed73d4ef320948323742631a3d125e8.zip
Merge pull request #504 from mariroz/dev
translation related: how-to md file added, script to generate php from all twig templates, polish mo file compiled
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-xinc/poche/Poche.class.php6
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;