diff options
| author | czaks <marcin@6irc.net> | 2013-07-03 01:24:09 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-03 01:24:09 -0400 |
| commit | f2128758f26a9f6402c906c3e10728f16822d779 (patch) | |
| tree | 5bc6fc6f792b3582db40fb71b398562de8107303 /tools/i18n_extract.php | |
| parent | 7180a7770540f0a3934604b69ad780421efe57b0 (diff) | |
i18n tools: small fixes
Diffstat (limited to 'tools/i18n_extract.php')
| -rwxr-xr-x | tools/i18n_extract.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/i18n_extract.php b/tools/i18n_extract.php index 1e729c3b..b43e16a0 100755 --- a/tools/i18n_extract.php +++ b/tools/i18n_extract.php @@ -38,10 +38,10 @@ foreach ($locales as $loc) { // Generate tinyboard.po if (file_exists($locdir."/LC_MESSAGES/tinyboard.po")) $join = "-j"; else $join = ""; - `cd $locdir/LC_MESSAGES; - xgettext -d tinyboard -L php --from-code utf-8 $join -c $(find ../../../../ -name \*.php)`; + passthru("cd $locdir/LC_MESSAGES; + xgettext -d tinyboard -L php --from-code utf-8 $join -c $(find ../../../../ -name \*.php)"); // Generate javascript.po - `cd tools/inc/lib/jsgettext/; - php jsgettext.php -o ../../../../$locdir/LC_MESSAGES/javascript.po $(find ../../../../js/ -name \*.js)`; + passthru("cd tools/inc/lib/jsgettext/; + php jsgettext.php -o ../../../../$locdir/LC_MESSAGES/javascript.po $(find ../../../../js/ -name \*.js)"); } |
