File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
app/src/processing/app/i18n Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
3
3
#
4
4
# Extract the text catalog from the source code,
@@ -21,11 +21,22 @@ trap "rm -f '$catalog' '$files'" 0 1 2 15
21
21
find .. -name ' *.java' -print > " $files "
22
22
xgettext -L Java --from-code=utf-8 -k_ --output=" $catalog " --files-from=" $files "
23
23
24
- # Then, merge with already translated texts.
25
- for target in * .po ; do
26
- echo " Updating $target ..."
27
- cat " $catalog " | python i18n_update.py " $target "
28
- msgcat -p " $target " > $( basename " $target " .po) .properties
24
+ update ()
25
+ {
26
+ echo " Updating $1 ..."
27
+ cat " $catalog " | python i18n_update.py " $1 "
28
+ msgcat -p " $1 " > $( basename " $1 " .po) .properties
29
29
# msgcat may complain about "CHARSET" if you didn't replace "CHARSET" with
30
30
# your correct charset.
31
- done
31
+ }
32
+
33
+ # Then, merge with already translated texts.
34
+ if [ $# = 0 ]; then
35
+ for target in * .po; do
36
+ update $target
37
+ done
38
+ else
39
+ for target in $* ; do
40
+ update Resources_$target .po
41
+ done
42
+ fi
You can’t perform that action at this time.
0 commit comments