From 98cd94b49ba89e724131a37801f986a535ff7660 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 7ddbc883fe..9b6190260f 100755 --- a/misc/translator/xgettext-pref +++ b/misc/translator/xgettext-pref @@ -142,6 +142,7 @@ sub add_po { my $key = ($msgctxt // '') . ";$msgid"; $pot->{$key} = Locale::PO->new( -reference => $reference, + -comment => $msgctxt, -msgctxt => $msgctxt, -msgid => $msgid, -msgstr => '', -- 2.20.1