diff options
author | Filip Komar <filip@mageia.org> | 2014-03-30 16:32:44 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-03-30 16:32:44 +0000 |
commit | 3f8520d07e33b464f0b7555fd18387bd2d29ca4f (patch) | |
tree | 3e2591ab4b23875ce6cda7a6d8b016ed555f71a8 /tools/extract2gettext.php | |
parent | dc36c9fa5842f942e59848f34d6cb1d141be6ce2 (diff) | |
download | www-3f8520d07e33b464f0b7555fd18387bd2d29ca4f.tar www-3f8520d07e33b464f0b7555fd18387bd2d29ca4f.tar.gz www-3f8520d07e33b464f0b7555fd18387bd2d29ca4f.tar.bz2 www-3f8520d07e33b464f0b7555fd18387bd2d29ca4f.tar.xz www-3f8520d07e33b464f0b7555fd18387bd2d29ca4f.zip |
tools prepared for conversion of mognase to gettext
Diffstat (limited to 'tools/extract2gettext.php')
-rw-r--r-- | tools/extract2gettext.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/extract2gettext.php b/tools/extract2gettext.php index a140195c3..ba2c927e9 100644 --- a/tools/extract2gettext.php +++ b/tools/extract2gettext.php @@ -119,7 +119,11 @@ foreach ($strings as $domain => $strs) { $f[] = ''; } $f = implode("\n", $f); - $dest = sprintf('%s/langs/en/%s.pot', APP_ROOT, $domain); + if ($domain == 'mognase') { + $dest = sprintf('%s/_nav/langs/en.pot', APP_ROOT); + } else { + $dest = sprintf('%s/langs/en/%s.pot', APP_ROOT, $domain); + } $dir = dirname($dest); if (!is_dir($dir)) { |