aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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