Skip to content

Commit

Permalink
Add COMMAND_GROUP to xgettext keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
0tkl committed Jan 24, 2025
1 parent e16d931 commit 9001626
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion po/make_pot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ maybe_append() {

find ../src ../src/command -name '*.cpp' -o -name '*.h' \
| xgettext --files-from=- -o - --c++ --sort-by-file \
-k_ -kSTR_MENU -kSTR_DISP -kSTR_HELP -kfmt_tl -kfmt_plural:2,3 \
-k_ -kSTR_MENU -kSTR_DISP -kSTR_HELP \
-kCOMMAND_GROUP:3 -kCOMMAND_GROUP:4 -kCOMMAND_GROUP:5 \
-kfmt_tl -kfmt_plural:2,3 \
| sed 's/SOME DESCRIPTIVE TITLE./Aegisub 3.2/' \
| sed 's/YEAR/2005-2014/' \
| sed "s/THE PACKAGE'S COPYRIGHT HOLDER/Rodrigo Braz Monteiro, Niels Martin Hansen, Thomas Goyne et. al./" \
Expand Down
6 changes: 4 additions & 2 deletions po/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ i18n = import('i18n')
# Until a solution is found, POT updates should continue to use make_pot.sh.
i18n.gettext('aegisub',
args: [
'-k_', '-kSTR_MENU', '-kSTR_DISP', '-kSTR_HELP', '-kwxT',
'-kfmt_tl', '-kfmt_plural:2,3', '-kwxPLURAL:1,2',
'-k_', '-kSTR_MENU', '-kSTR_DISP', '-kSTR_HELP',
'-kCOMMAND_GROUP:3', '-kCOMMAND_GROUP:4',
'-kCOMMAND_GROUP:5,', '-kwxT', '-kfmt_tl',
'-kfmt_plural:2,3', '-kwxPLURAL:1,2',
'--sort-by-file'
],
install_dir: localedir)

0 comments on commit 9001626

Please sign in to comment.