diff options
author | Filip Komar <filip@mageia.org> | 2014-03-31 16:41:43 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-03-31 16:41:43 +0000 |
commit | 737cc090aaa258780302a33e13dd59e946657355 (patch) | |
tree | 0e321fe4b61d76a8d990ce67f12d96de49730917 /langs/lib.php | |
parent | 325c9529e71a5af1c2cd5299e904d4b6e729c1f7 (diff) | |
download | www-737cc090aaa258780302a33e13dd59e946657355.tar www-737cc090aaa258780302a33e13dd59e946657355.tar.gz www-737cc090aaa258780302a33e13dd59e946657355.tar.bz2 www-737cc090aaa258780302a33e13dd59e946657355.tar.xz www-737cc090aaa258780302a33e13dd59e946657355.zip |
report family prepared for conversion of mognase to gettext
Diffstat (limited to 'langs/lib.php')
-rw-r--r-- | langs/lib.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/langs/lib.php b/langs/lib.php index cfc40cf28..054a4743e 100644 --- a/langs/lib.php +++ b/langs/lib.php @@ -166,6 +166,8 @@ if ( ! function_exists('glob_recursive')) /** * Create 'sl/about/license.sl.lang' * from 'en/about/license.en.lang' + * or ../_nav/langs/sl.lang + * from ../_nav/langs/en.lang * * @param string $s file name with path * @param string $l locale name @@ -181,6 +183,8 @@ function _lang_file_switch($s, $l) /** * Create 'sl/about/license.po' * from 'en/about/license.pot' + * or ../_nav/langs/sl.po + * from ../_nav/langs/en.pot * * @param string $s file name with path * @param string $l locale name @@ -192,6 +196,7 @@ function _po_file_switch($s, $l) if($l != 'en') { $s = str_replace('.pot', '.po', $s); } + $s = str_replace('/en.', '/' . $l . '.', $s); return str_replace('en/', $l . '/', $s); } |