Xt translated labels ?
Samuel Thibault
samuel.thibault at ens-lyon.org
Fri Aug 25 10:56:16 PDT 2006
Samuel Thibault, le Fri 25 Aug 2006 17:07:00 +0200, a écrit :
> Glynn Clements, le Fri 25 Aug 2006 16:00:17 +0100, a écrit :
> > > > However, app-defaults files can #include other files, so you can make
> > > > the locale-specific version include the generic version rather than
> > > > duplicating common settings.
> > >
> > > Mmm, but it will have to set the path in some way I guess? (because else
> > > it will endup to just include itself)
> > >
> > > i.e.
> > > #include "../app-defaults/application"
> > > or more "../", depending on the depth of the localized file.
> > >
> > > Or is there a better way? (except setting the full absolute path)
> >
> > The path is relative to the directory containing the file, so e.g.
> > fr/app-defaults/XFoo would need #include "../../app-defaults/XFoo".
Mmm, sorry to bother again: in the case of XTerm for instance, there are
several files: XTerm, XTerm-color (that #includes XTerm), and UXterm
(that #includes XTerm-color)
I guess it would be preferable to localized messages in one file only,
so would the following be fine?
fr/app-defaults/XTerm.msg contains translations:
*foo*label: Foo
*bar*label: Bar
...
fr/app-defaults/XTerm includes main XTerm file and translations:
#include "../../app-defaults/XTerm"
#include "XTerm.msg"
fr/app-defaults/XTerm-color includes main XTerm-color and translations:
#include "../../app-defaults/XTerm-color"
#include "XTerm.msg"
fr/app-defaults/UXterm includes main UXTerm and translations:
#include "../../app-defaults/UXTerm"
#include "XTerm.msg"
Regards,
Samuel
More information about the xorg
mailing list