From 75ff67a99e3420ff49da7ec1b74f53a74451e874 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 26 Jun 2021 17:23:40 +0200 Subject: 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 --- po/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'po/meson.build') 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'] +) -- cgit v1.2.3-2-gb3c3