Xt translated labels ?

Glynn Clements glynn at gclements.plus.com
Fri Aug 25 08:00:17 PDT 2006


Samuel Thibault wrote:

> > It already does this, except the locale has to come first, i.e. 
> > /usr/lib/X11/fr/app-defaults/ etc.
> 
> Ah ok. Well, it's not much used :(
> 
> Thanks !
> 
> > 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".

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



More information about the xorg mailing list