Bugzilla – Attachment 111698 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
Bug-26547-Put-msgctxt-into-a-comment-as-well.patch (text/plain), 982 bytes, created by
Julian Maurice
on 2020-10-15 10:14:33 UTC
(
hide
)
Description:
Bug 26547: Put msgctxt into a comment as well
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2020-10-15 10:14:33 UTC
Size:
982 bytes
patch
obsolete
>From 98cd94b49ba89e724131a37801f986a535ff7660 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 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
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