Xt translated labels ?

Glynn Clements glynn at gclements.plus.com
Sat Aug 26 05:59:59 PDT 2006


Samuel Thibault wrote:

> > > > > 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"

I would expect so.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list