aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rebuild_gettext_catalogs.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh
new file mode 100755
index 000000000..55c4908fd
--- /dev/null
+++ b/tools/rebuild_gettext_catalogs.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Filip Komar, 2014
+# @license GPL v2
+# @author Filip (rebuilding a gettext dictionaries)
+# @copyright 2014/03
+# inspired by check_for_translation_work.sh
+
+declare -A resources
+
+source ./tools/web_projects.dat
+
+for resource in "${!resources[@]}"
+do
+ php_source=${resources[$resource]}
+ php tools/extract2gettext.php $php_source $resource
+done
+echo ''
+echo "Done lookup for _g() and _r() in php source code and build a gettext catalog (pot file)"