Re: Fwd: gettext and contexts
Nicolas Goutte <[email protected]> Fri, 21 Oct 2005 23:26:44 +0200
| Newsgroups | gmane.comp.kde.devel.kbabel |
|---|---|
| Message-ID | <[email protected]> |
On Friday 21 October 2005 23:01, Bruno Haible wrote: > Nicolas Goutte wrote: > > I have committed the patch (fixing the compile error) and then I have > > made a few change to it: > > - fix saving > > - loading multiline contexts > > - improve code (by using QString::mid and QString:.truncate) > > Thanks! That was very quick. > > > Also the code still assume that it is the last > > comment. (If the user has added a comment, the context is corrupted. > > Yes, that is a problem. I missed that. Probably using > "#. MsgContext: " > instead of > "# MsgContext: " > would alleviate that? This might discourage the translator from modifying > it. No, when you have a block of comment, you naturally add it after. So for example if you have: # foo # bar # MsgContext AContext then the user would have the tendency to write: # foo # bar # MsgContext AContext # My comment And that is currently corrupting the Gettext context. > > Bruno Have a nice day!