https://bugs.kde.org/show_bug.cgi?id=524123
Bug ID: 524123
Summary: Empty messages that have a msgctxt are not shown in
the editor (and lost when saving)
Classification: Applications
Product: lokalize
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: editor
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected], [email protected]
Target Milestone: ---
Created attachment 195043
--> https://bugs.kde.org/attachment.cgi?id=195043&action=edit
Example PO file
DESCRIPTION
OK, this is an edge case, but it’s a real bug and one I have actually
encountered.
When a PO file contains an entry where the msgid is empty (""), but the msgctxt
is not (so the message is in fact *not* empty), the message doesn’t appear in
the editor. And if the file is saved, the entry is lost. That’s the bug.
Note that, technically, the PO header is also stored as an empty msgid ("").
But in that case, there is no msgctxt. But an entry with a nonempty msgctxt is
*not* a header and should be treated like any other message.
Also note that in the project view, the statistics of the file *is* correctly
shown (the message with empty msgid & non-empty msgctxt is treated as a normal
message).
STEPS TO REPRODUCE
1. Put the attached PO file in a Lokalize project.
2. Open the PO file.
3. Edit a string.
4. Save the PO file.
5. View the file in a text editor.
OBSERVED RESULT
* In the project view (step 1), the file is correctly shown as having three
messages (two translated and one fuzzy). [not a bug]
* In the editor (step 2), only the two translated messages are shown.
* After saving (step 4, 5), the PO file only contains the two messages shown in
step 2.
EXPECTED RESULT
* The project view (step 1) should be the same it currently is.
* In the editor (step 2), all three messages should be shown.
* After saving (step 4,5), the PO file should contain all three messages.
SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260805
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.6-1-default (64-bit)
ADDITIONAL INFORMATION
In the editor Poedit, the message is treated as a normal message (i.e., three
messages are shown in the editor). The Pology toolkit (e.g., the ‘posieve
stats’ command) also treats it as a normal message.
--
You are receiving this mail because:
You are watching all bug changes.