File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,8 @@ up to date.
97
97
shell script.
98
98
99
99
* If the POT file has changed, the PO message files need to be updated. This
100
- can be done using the gettext ` msgmerge ` tool in the
101
- ` addons/block_code/locale ` directory:
102
- ```
103
- for po in *.po; do
104
- msgmerge --update --backup=none "$po" godot_block_coding.pot
105
- done
106
- ```
100
+ can be done using the gettext ` msgmerge ` tool with the
101
+ ` scripts/merge-messages.sh ` shell script.
107
102
108
103
[ pot-generation ] : https://docs.godotengine.org/en/stable/tutorials/i18n/localization_using_gettext.html#automatic-generation-using-the-editor
109
104
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Merge new strings from POT file into message catalogs.
4
+ set -e
5
+
6
+ SCRIPTDIR=$( dirname " $0 " )
7
+ PROJDIR=$( dirname " $SCRIPTDIR " )
8
+ LOCALEDIR=" $PROJDIR /addons/block_code/locale"
9
+ POT=" $LOCALEDIR /godot_block_coding.pot"
10
+
11
+ for po in " $LOCALEDIR " /* .po; do
12
+ echo -n " $po "
13
+ msgmerge --update --backup=none " $po " " $POT "
14
+ done
You can’t perform that action at this time.
0 commit comments