summaryrefslogtreecommitdiff
path: root/scripts/update-translation-base.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-translation-base.php')
-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