Created simple scripts for i18n
[findit] / tools / create_pos.sh
1 #!/bin/sh
2
3 echo Please comment out '"def _(text)"' in src/misc.py before use !!!
4 echo
5 echo Start translating?
6
7 read yesno
8
9 if [ "$yesno" = "y" ]
10 then
11
12     mkdir -p ./pos
13     
14     
15     for file in `find ../src/ -name '*.py'`
16     do
17         if [ -s $file ] # cut off empty files
18         then
19             echo Working on $file ...
20             pygettext.py -o ./pos/`basename $file`.po $file
21         fi
22     done
23
24 fi