Bug 212809 - support for msgctxt field
Summary: support for msgctxt field
Status: RESOLVED NOT A BUG
Alias: None
Product: lokalize
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 22:17 UTC by Donald Rogers
Modified: 2009-11-18 23:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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..."