aboutsummaryrefslogtreecommitdiffstats
path: root/tools/rebuild_gettext_catalogs.sh
blob: 55c4908fd1fa943b54141a3569db470d0e3fd3d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)"