[Kbabel] corrupted TM databases
Chusslove Illich
caslav.ilic at gmx.net
Mon Nov 28 13:29:35 CET 2005
> [: Yury Tarasievich :]
> 3. Then, there's the issue of po's converted with
> translate toolkit (tranlate.sf.net). [...]
>
> #: example1.label
> msgid "string A"
> msgstr "translation B"
>
> #: example2.label
> msgid "string A"
> msgstr "translation C"
>
> Then Kbabel doesn't want either to show the status of
> .po, or to save such file.
As Nicolas has pointed out, this is an invalid PO file, as two keys (msgids
in this case) cannot be same.
However, there is a brand new addition to the PO format (in fact, yet
unreleased, but usable from Gettext CVS), which I think would be perfect
in this situation: the context to the message. Then, the tool that
converts from Mozilla's to PO format should do this:
msgctxt "example1.label"
msgid "string A"
msgstr "translation B"
msgctxt "example2.label"
msgid "string A"
msgstr "translation C"
Now the key is msgctxt+msgid, so no problems there. This extra feature of
PO format is supported (albeit in a raw way) in new KBabel, comming with
KDE 3.5. But one should also install the new Gettext (the unreleased
one :)
--
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kbabel/attachments/20051128/38e91aec/attachment.pgp
More information about the kbabel
mailing list