From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Mon Apr 29 2002 - 23:59:45 EDT
--- Christian Biesinger <cbiesinger@web.de> wrote: >
On Mon, Apr 29, 2002 at 02:36:37PM -0700, Paul Rohr
> wrote:
> > Ideally, we'd ship a hardwired en-US (yes, I'm a
> chauvinist, sorry) binary
> > which could be easily packaged up with a
> collection of zero or more
> > locale-specific resources.
> [...]
> > To be clear. AFAICT switching to gettext does
> nothing to advance this goal.
> > It merely switches the mechanism we use for the
> strings we've managed to
> > externalize so far.
>
> No, gettext can be used _exactly_ for that.
> 1) With gettext, the en-US translation is always
> built in (well, needs not
> be en-US, but usually is)
> 2) on startup of a gettextized app, gettext is
> initialized with the
> language from an environment variable (note that I
Note that this is not good enough for AbiWord. We
currently have a locale override in our profile so
we can support locales the OS doesn't.
> don't know how this is
> done on windows - ie. maybe another approach is used
On Windows we have our own code to map from Windows
locale to AbiWord locale (which is similar to but not
identical to Unix locale). On any OS we really need
to pass the locale we determine onto gettext.
Andrew Dunbar.
> there for apps like
> the gimp). If a translation is available (this is
> determined by checking
> if the .mo file (compiled .po) exists in the correct
> directory), it is
> used, else english is used.
>
> So this is exactly what you want - or?
>
> --
> "They that can give up essential liberty to obtain a
> little temporary
> safety deserve neither liberty nor safety."
> --
> Benjamin Franklin
>
> ATTACHMENT part 2 application/pgp-signature
=====
http://linguaphile.sourceforge.net http://www.abisource.com
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
This archive was generated by hypermail 2.1.4 : Tue Apr 30 2002 - 00:01:40 EDT