aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-26 17:23:40 +0200
committerWolfgang Müller2021-06-27 18:31:06 +0200
commit75ff67a99e3420ff49da7ec1b74f53a74451e874 (patch)
tree53ed65a264749b01268cde9986f02ff82c9eeee5
parente03fdccc4e191e0e7cd60b4fef9e6f603ccc112b (diff)
downloadweltschmerz-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
Diffstat (limited to '')
-rw-r--r--po/meson.build4
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']
+)