File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ usage="Usage: $0 OLD_FILE MERGE_ME_IN [POT_FILE=MERGE_ME_IN]
7
7
Env vars:
8
8
ZH_MSGMERGE_OPTS \` linear' array of extra flags for \` msgmerge'.
9
9
Example: '-E -C \" my compendia.po\" -w 79 --previous'
10
- Default: '--backup=nil -- previous'
10
+ Default: '--previous'
11
11
12
12
ZH_POST_OCC:function What to do after invoking OpenCC. To use,
13
13
define a function with this name in bash,
@@ -34,7 +34,7 @@ $usage"
34
34
type opencc sed msgmerge > /dev/null || die " required command(s) not found"
35
35
36
36
# Accept environment 'linear array' input.
37
- declare -a ZH_MSGMERGE_OPTS=" (${ZH_MSGMERGE_OPTS:- --backup=nil -- previous} )"
37
+ declare -a ZH_MSGMERGE_OPTS=" (${ZH_MSGMERGE_OPTS:- --previous} )"
38
38
39
39
type ZH_POST_OCC & > /dev/null || ZH_POST_OCC (){ : ; }
40
40
@@ -155,7 +155,10 @@ occ_conv "$newtype" "$oldtype" "$new"{,".$oldtype"} ||
155
155
156
156
ZH_POST_OCC
157
157
158
+ cp " $old " {,' ~' }
159
+ msgattrib --translated -o " $old " {,}
158
160
msgcat -o " $old .all" --use-first " $old " " $new .$oldtype "
161
+
159
162
msgmerge --lang=" zh_$oldtype " " ${ZH_MSGMERGE_OPTS[@]} " -o " $old " {,.all} " $pot " ||
160
163
die " msgmerge returned $? ."
161
164
You can’t perform that action at this time.
0 commit comments