summaryrefslogtreecommitdiff
path: root/scripts/update-translations.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-04 21:35:29 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-04 21:35:29 +0000
commit13221102185c3e98796924f1c9bf61b7c2127ffd (patch)
treed05cc2a6b3cfb557d27c08d04f2fbab08d3de0ed /scripts/update-translations.php
parentbfaa111fa1aaf39485bd50f0141373dcb6798bef (diff)
downloadsemanticscuttle-13221102185c3e98796924f1c9bf61b7c2127ffd.tar.gz
semanticscuttle-13221102185c3e98796924f1c9bf61b7c2127ffd.tar.bz2
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
Diffstat (limited to 'scripts/update-translations.php')
-rw-r--r--scripts/update-translations.php19
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