script to update translation files automatically; update messages.po
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@515 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
bfaa111fa1
commit
1322110218
File diff suppressed because it is too large
Load Diff
19
scripts/update-translations.php
Normal file
19
scripts/update-translations.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Update gettext translations
|
||||||
|
*/
|
||||||
|
chdir(dirname(dirname(__FILE__)));
|
||||||
|
|
||||||
|
//do not include php-gettext or database layer
|
||||||
|
passthru(
|
||||||
|
'xgettext -kT_ngettext:1,2 -kT_ -L PHP'
|
||||||
|
. ' -o data/locales/messages.po'
|
||||||
|
. ' src/SemanticScuttle/*.php'
|
||||||
|
. ' src/SemanticScuttle/Model/*.php'
|
||||||
|
. ' src/SemanticScuttle/Service/*.php'
|
||||||
|
. ' data/templates/*.php'
|
||||||
|
. ' www/*.php'
|
||||||
|
. ' www/*/*.php'
|
||||||
|
);
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user