From ae76140d7467053ed646054daaec09ebbade7d03 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sat, 1 Mar 2014 18:16:55 +0000 Subject: added missed script for rebuilding a gettext catalog --- tools/rebuild_gettext_catalogs.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tools/rebuild_gettext_catalogs.sh (limited to 'tools/rebuild_gettext_catalogs.sh') 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)" -- cgit v1.2.1