mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
i18n tools: small fixes
This commit is contained in:
parent
7180a77705
commit
f2128758f2
@ -34,11 +34,11 @@ foreach ($locales as $loc) {
|
|||||||
// Generate tinyboard.po
|
// Generate tinyboard.po
|
||||||
if (file_exists($locdir."/LC_MESSAGES/tinyboard.po")) $join = "-j";
|
if (file_exists($locdir."/LC_MESSAGES/tinyboard.po")) $join = "-j";
|
||||||
else $join = "";
|
else $join = "";
|
||||||
`cd $locdir/LC_MESSAGES;
|
passthru("cd $locdir/LC_MESSAGES;
|
||||||
msgfmt tinyboard.po -o tinyboard.mo`;
|
msgfmt tinyboard.po -o tinyboard.mo");
|
||||||
|
|
||||||
// Generate javascript.po
|
// Generate javascript.po
|
||||||
`cd tools/inc/lib/jsgettext/;
|
passthru("cd tools/inc/lib/jsgettext/;
|
||||||
php po2json.php -i ../../../../$locdir/LC_MESSAGES/javascript.po \
|
php po2json.php -i ../../../../$locdir/LC_MESSAGES/javascript.po \
|
||||||
-o ../../../../$locdir/LC_MESSAGES/javascript.js`;
|
-o ../../../../$locdir/LC_MESSAGES/javascript.js");
|
||||||
}
|
}
|
||||||
|
@ -38,10 +38,10 @@ foreach ($locales as $loc) {
|
|||||||
// Generate tinyboard.po
|
// Generate tinyboard.po
|
||||||
if (file_exists($locdir."/LC_MESSAGES/tinyboard.po")) $join = "-j";
|
if (file_exists($locdir."/LC_MESSAGES/tinyboard.po")) $join = "-j";
|
||||||
else $join = "";
|
else $join = "";
|
||||||
`cd $locdir/LC_MESSAGES;
|
passthru("cd $locdir/LC_MESSAGES;
|
||||||
xgettext -d tinyboard -L php --from-code utf-8 $join -c $(find ../../../../ -name \*.php)`;
|
xgettext -d tinyboard -L php --from-code utf-8 $join -c $(find ../../../../ -name \*.php)");
|
||||||
|
|
||||||
// Generate javascript.po
|
// Generate javascript.po
|
||||||
`cd tools/inc/lib/jsgettext/;
|
passthru("cd tools/inc/lib/jsgettext/;
|
||||||
php jsgettext.php -o ../../../../$locdir/LC_MESSAGES/javascript.po $(find ../../../../js/ -name \*.js)`;
|
php jsgettext.php -o ../../../../$locdir/LC_MESSAGES/javascript.po $(find ../../../../js/ -name \*.js)");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user