Skip to content

Commit

Permalink
po/make_pot: Remove some COMMAND_GROUP keywords again
Browse files Browse the repository at this point in the history
Specifying multiple arguments of the same function seems to break
things, and the other field are (currently) all duplicated anyway. The
descripting is the one that's most likely to have unique strings at some
point.
  • Loading branch information
arch1t3cht committed Jan 24, 2025
1 parent a5a7bc5 commit 987fad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions po/make_pot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ 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 \
-kCOMMAND_GROUP:3 -kCOMMAND_GROUP:4 -kCOMMAND_GROUP:5 \
-k_ -kSTR_MENU -kSTR_DISP -kSTR_HELP -kCOMMAND_GROUP:5 \
-kfmt_tl -kfmt_plural:2,3 \
| sed 's/SOME DESCRIPTIVE TITLE./Aegisub 3.2/' \
| sed 's/YEAR/2005-2014/' \
Expand Down
5 changes: 2 additions & 3 deletions po/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ 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',
'-kCOMMAND_GROUP:3', '-kCOMMAND_GROUP:4', '-kCOMMAND_GROUP:5,',
'-kfmt_tl', '-kfmt_plural:2,3',
'-k_', '-kSTR_MENU', '-kSTR_DISP', '-kSTR_HELP', '-kCOMMAND_GROUP:5,',
'-kfmt_tl', '-kfmt_plural:2,3',
'--sort-by-file'
],
install_dir: localedir)

0 comments on commit 987fad8

Please sign in to comment.