[Kbabel] Default behaviors (header-wise) in KBabel

Stanislav Visnovsky visnovsky at kde.org
Mon Oct 31 15:15:23 CET 2005


Dňa Sobota 29 Október 2005 08:00 Daichi Kawahata napísal:
> On Fri, 28 Oct 2005 20:31:46 +0200
>
> Nicolas Goutte wrote:
> > Very sorry! It seems that you emailed to me only and I answered you
> > to the kbabel mailing list too.
> >
> > (But if you want, you can make this answer public.)
>
> Yeah, I forgot to reply to the ML. BTW was that right place to post
> (I just saw that address at the homepage and couldn't find ML archive)?
> I wish that is for developers ML (and please CC me, I'm not subscribed).
>
> > All the settings that I describe below are in what I have called the
> > "project settings". Officially it is called Project/Configure in
> > KBabel's menu.
> >
> > I have used KBabel 1.11 (released in the future KDE 3.5). I am sorry
> > that I have no earlier version but as far as I know the project
> > configure has not much changed.
>
> Then, please reconsider improvement of `Project Setting' for the 1.12
> release.
>
> > > > > >   o It replaces given proper header string at
> > > > > > `Project-Id-Version' with ISO 639 language code.
> > > > >
> > > > > In fact it is the filename that it places there.
> > > > >
> > > > > (In KDE, PO files are not named by the language but like the
> > > > > corresponding POT file. And the directories are ordered by
> > > > > language, not by POT file.)
> > > >
> > > > Probably so, but I've seen many times the following case from KBabel:
> > > >
> > > >     -"Project-Id-Version: Mousepad 0.2.2\n"
> > > >     +"Project-Id-Version: ca\n"
> > >
> > > Yes, because in your project, the PO files are named like the language
> > > code: ca.po . KBabel drops the .po extension and uses the basename as
> > > project name.
> > >
> > > That is convenient in KDE, apparently not at all for you.
> > >
> > > > This clearly discarded proper give information.
> > >
> > > Because by default KBabel is told to do so.
> >
> > In the the project configure dialog, there is settings for save (the
> > "save" icon). On the "Header" tab, you can select which fields of the
> > headers are updated.
> >
> > So if you want you can uncheck the "Project" checkbox and then the
> > "Project-Id-Version" will not be changed anymore on save.
> >
> > Alternatively you can set the "Project-Id" edit box, but I do not know
> > which "magic" string will do what you intend to do.
>
> Please look a subject, what I asked is not knowing usage of KBabel, it was
> changing default behaviors of KBabel, okay I understood ISO language codes
> at the `Project-Id-Version' come from directories `$lang.po/', but what's
> logic behind there? I mean, PO file I used as example isn't unique, the
> most KBabel users tend to make a mess against the header.

Just keep in mind that Project-Id-Version header is completely undocumented. I 
was unable to find any discussion about how to fill a proper value there. 
There is no standard how to fill it, so KBabel is trying to set something 
reasonable there (and fails).

Stano


More information about the kbabel mailing list