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

Nicolas Goutte nicolasg at snafu.de
Mon Oct 31 21:11:30 CET 2005


On Monday 31 October 2005 15:18, Stanislav Visnovsky wrote:
> Dňa Sobota 29 Október 2005 14:36 Nicolas Goutte napísal:
> > On Saturday 29 October 2005 08:00, Daichi Kawahata wrote:
> > > On Fri, 28 Oct 2005 20:31:46 +0200
>
> <skip>
>
> > > > > > > >   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.
> >
> > I have checked again in the meantime: there is only two "magic" strings
> > and there are those already used. So there is no solution in this way.
> >
> > > Please look a subject, what I asked is not knowing usage of KBabel, it
> > > was changing default behaviors of KBabel,
> >
> > Well, the default behaviour of KBabel will probably always remain
> > oriented to what KDE needs. What is probably missing is an easier entry
> > level for non-KDE projects.
> >
> > Probably the "GNU" setting in the wizard is not enough, at least
> > according to your feedback. (Also it could also be possible that for some
> > software projects, GNU settings are as extreme/unsuitable as KDE ones.)
>
> Probably. But the default behavior also works for GNU packages, where the
> PO file is named like 'gettext.cs.po'.

But in Gettext's source it is $lang.po (de.po, fr.po, cs.po ...)

>
(...)

Have a nice day!



More information about the kbabel mailing list