On Tue, May 28, 2002 at 11:50:36AM +0200, pp wrote: > > > > We can use some "standard" paths for this (/usr/share/locale, > > > > /usr/local/share/locale), and just ./configure it... > > > > > > Good idea, but only for standard use. Do not forget about users > > > who will change all locale messages for their own use. > > :) Look at gettext manual, there you'll find several functions which allow > > to specify location of message catalogues. > > > > For example, bindtextdomain(domainname, directory) allows to tune gettext > > to look at message catalogues in $directory when message catalogue with > > $domainname is requested. Using it you can put message catalogues > > whereever you want. > I thought about system locale-data which shouldn't be changed. You can install default message catalogues at system-wide location and since actual binding is done in [code-compat], you can add there bindtextdomain() call if needed. Even better, call some style element like [bind-gettext] there. If it exists, it provides that bindtextdomain() call. If it does not exist, then system wide catalogue will be used.
We can even add this into default installation so that rebinding can be done on per-page basis (overriding [bind-gettext] element). -- / Alexander Bokovoy Software architect and analyst // SaM-Solutions Ltd. --- Those who can, do; those who can't, write. Those who can't write work for the Bell Labs Record. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
