Bug 212809

Summary: support for msgctxt field
Product: [Applications] lokalize Reporter: Donald Rogers <dero2648>
Component: generalAssignee: Nick Shaforostoff <shafff>
Status: RESOLVED NOT A BUG    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Donald Rogers 2009-11-02 22:17:00 UTC
Version:           4.3.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

The gettext specification now allows different translations for the same msgid in different contexts. For this purpose it has a field called msgctxt (message context)
see  http://www.gnu.org/software/hello/manual/gettext/Contexts.html

We need Lokalize to be able to handle the msgctxt field, i.e. display it where it exists in the po file and allow it to be inserted and edited and saved into the po file.
Comment 1 Donald Rogers 2009-11-02 22:20:54 UTC
I presume that this applies to all operating systems and platforms.
Comment 2 Nick Shaforostoff 2009-11-04 19:17:44 UTC
Lokalize does support msgctxt. See http://docs.kde.org/development/en/kdesdk/lokalize/alt-trans.html
Comment 3 Donald Rogers 2009-11-18 23:25:45 UTC
Before I created this bug list item I tried to import some po files that 
had msgctxt fields. They all caused Lokalize to choke, usually with a 
message "Error opening the file..." Sometimes it crashed:

Executable: lokalize PID: 4215 Signal: 11 (Segmentation fault)

I also searched the Lokalize web site for msgctxt and found no mention 
of it. Also the documentation. The page quoted (...alt-trans.html) also 
does not mention msgctxt. That is why I assumed that Lokalize did not 
support the msgctxt field. It is a relief to know that it does (sometimes).

I have recently got Lokalize to import a really simple po file with  a 
msgctxt field in it. I see that it puts it under "Add a note..."