From 01c025faaf75a24434dc7c21d6eb68293049d0a7 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 15 Oct 2020 09:33:14 +0200 Subject: [PATCH] Bug 26547: Put msgctxt into a comment as well Pootle does not allow to search a message by context, but it allows to search by comment. Having the context (Tab > Section > Syspref) inside a comment make it easier to translate all messages for a specific syspref. --- misc/translator/xgettext-pref | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/translator/xgettext-pref b/misc/translator/xgettext-pref index 50eb47ef5c3..e4b20d59b3f 100755 --- a/misc/translator/xgettext-pref +++ b/misc/translator/xgettext-pref @@ -140,6 +140,7 @@ sub add_po { my $key = ($msgctxt // '') . ";$msgid"; $pot->{$key} = Locale::PO->new( -reference => $reference, + -comment => $msgctxt, -msgctxt => $msgctxt, -msgid => $msgid, -msgstr => '', -- 2.47.3