summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-04 21:37:31 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-04 21:37:31 +0000
commite85837c659cb10511b586dcca7032b6cc5b7cea9 (patch)
tree8675c3a52734bd0ec69129506ce80bc229463d53
parentc2eb95f3844a469c7955ae692fc0a1bea66df3f0 (diff)
downloadsemanticscuttle-e85837c659cb10511b586dcca7032b6cc5b7cea9.tar.gz
semanticscuttle-e85837c659cb10511b586dcca7032b6cc5b7cea9.tar.bz2
separate script to update translation base file
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@517 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--scripts/update-translation-base.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/update-translation-base.php b/scripts/update-translation-base.php
new file mode 100644
index 0000000..c6b7c35
--- /dev/null
+++ b/scripts/update-translation-base.php
@@ -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