diff options
Diffstat (limited to 'scripts/update-translations.php')
-rw-r--r-- | scripts/update-translations.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/update-translations.php b/scripts/update-translations.php new file mode 100644 index 0000000..2746a99 --- /dev/null +++ b/scripts/update-translations.php @@ -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' +); + +?>
\ No newline at end of file |