Bugzilla – Attachment 190540 Details for
Bug 26547
Move context from msgid to msgctxt in pref PO files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26547: Put msgctxt into a comment as well
01c025f.patch (text/plain), 986 bytes, created by
Julian Maurice
on 2025-12-16 13:32:16 UTC
(
hide
)
Description:
Bug 26547: Put msgctxt into a comment as well
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2025-12-16 13:32:16 UTC
Size:
986 bytes
patch
obsolete
>From 01c025faaf75a24434dc7c21d6eb68293049d0a7 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26547
:
110777
|
111557
|
111697
|
111698
|
111699
|
111700
|
190539
|
190540
|
190541
|
190542
|
190548
|
190549
|
190550
|
190551
|
190613