XErrorDB in a modular world

Enrico Weigelt weigelt at metux.de
Mon Jun 6 09:50:07 PDT 2005


* Alan Coopersmith <Alan.Coopersmith at Sun.COM> wrote:

<snip>
> Right - I thought about that as well as long as we're changing the code.
> For most of XErrorDB, localization doesn't make sense - it's just a
> mapping of request & error codes to the protocol names, and localizing
> those would just make it harder to figure out what's going on.   

Okay.

+1.

We (hopefully) dont want to go M$-ways where syslog messages take 
ten lines of text just for telling us that there's no CD in drive ... ;-)

BTW: why localizing anyway ? Isn't it the job of the application to 
tell the user if sth's wrong ?

<snip>
> I was thinking the lookup path for messages for each extension/protocol
> would be something like:
> 	<prefix>/lib/X11/ErrorDB/<language>/<extension>
> 	<prefix>/lib/X11/ErrorDB/C/<extension>

Is $libdir really the right place ? I'd vote for $datadir. 
Probably somewhere beyond $datadir/locale/$locale/...

<snip>
> (I know some of the desktops today prefer the model of having all the
>  localized versions in one file, instead of per-locale files.   I've
>  always preferred the per-locale versions, since it's easier to add
>  new locales after the fact.   Does anyone have strong preferences
>  one way or another?)

+3

Having locales in separate files makes packager's and admin's really
much easier. So we can just have several (sub-)packages for different
locales.

> I thought I read XCB would use XML protocol description files, so 
> perhaps eventually these can be generated from those at build time.

I'm really not a friend of moving evrything to XML. I don't see 
the benefit for exploding formerly small formats, just to have it
and be cool somehow ;-)


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service
  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact at metux.de
---------------------------------------------------------------------
  Realtime Forex/Stock Exchange trading powered by postgresSQL :))
                                            http://www.fxignal.net/
---------------------------------------------------------------------


More information about the xorg-modular mailing list