1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

translation related: how-to md file added, script to generate php from all twig templates, polish mo file compiled

This commit is contained in:
Maryana Rozhankivska 2014-02-26 15:43:49 +02:00
parent 72f7ff0589
commit cbcae4037c
4 changed files with 129 additions and 3 deletions

View file

@ -34,7 +34,7 @@ class Poche
'pl_PL.utf8' => 'Polski',
'ru_RU.utf8' => 'Pусский',
'sl_SI.utf8' => 'Slovenščina',
'uk_UA.utf8' => 'Український',
'uk_UA.utf8' => 'Українська',
);
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;