]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
separate script to update translation base file
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:37:31 +0000 (21:37 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:37:31 +0000 (21:37 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@517 b3834d28-1941-0410-a4f8-b48e95affb8f

scripts/update-translation-base.php [new file with mode: 0644]

diff --git a/scripts/update-translation-base.php b/scripts/update-translation-base.php
new file mode 100644 (file)
index 0000000..c6b7c35
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Update gettext translation base file
+ */
+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