diff options
author | Wolfgang Müller | 2021-06-26 17:23:40 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-06-27 18:31:06 +0200 |
commit | 75ff67a99e3420ff49da7ec1b74f53a74451e874 (patch) | |
tree | 53ed65a264749b01268cde9986f02ff82c9eeee5 | |
parent | e03fdccc4e191e0e7cd60b4fef9e6f603ccc112b (diff) | |
download | weltschmerz-75ff67a99e3420ff49da7ec1b74f53a74451e874.tar.gz |
po: Specify comment tag for xgettext
For some translatable strings we need to provide more context to the
translators. Conveniently, xgettext [1] provides the '-c[tag]' flag for
this. Make sure to pass along any comment containing "TRANSLATORS"
preceding a gettext call to the .pot file.
[1] https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html
-rw-r--r-- | po/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/po/meson.build b/po/meson.build index 6870f58..6b02741 100644 --- a/po/meson.build +++ b/po/meson.build @@ -4,4 +4,6 @@ localedir = join_paths(get_option('prefix'), get_option('localedir')) add_project_arguments('-DGETTEXT_PACKAGE="weltschmerz"', language: 'c') add_project_arguments('-DLOCALEDIR="@0@"'.format(localedir), language: 'c') -i18n.gettext(meson.project_name(), args: '--directory=' + meson.source_root()) +i18n.gettext(meson.project_name(), + args: ['--directory=' + meson.source_root(), '-c TRANSLATORS'] +) |