Re: AAP i18n

Bram Moolenaar <[email protected]> Thu, 02 Feb 2006 12:55:02 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Adriaan de Groot wrote:

> On Wednesday 01 February 2006 22:30, Bram Moolenaar wrote:
> > Adriaan de Groot wrote:
> > > yields "Bestand niet gevonden" instead of "No such file or director=
y".
> > > Try compiling something with AAP. Notice how dependencies fail? Tha=
t's
> > > because the dependency check checks only for the english error mess=
ages.
> >
> > I can't try this, my FreeBSD system only produces English messages.
>=20
> Yes, I've been trying to roll out AAP to compile KPilot on Linux system=
s as=20
> well and it's been quite an education. A ports-based FreeBSD system has=
 a=20
> certain amount of sanity that the Linuxen I've run into so far just don=
't=20
> seem to have -- libtool is just one big mess over there, and localized=20
> compilers are just the start of the problems.

For Vim I use an error number for the messages, so that they can still
be recognized after translating:
	"E79: Cannot expand wildcards"
	"E79: Kann \"wildcards\" nicht erweitern"
	"E79: Impossible de d=E9velopper les m=E9tacaract=E8res"
	"E79: No puedo expandir los comodines."

> > Since we can assume Aap users understand English, the solution would =
be
> > to reset the environment to use English.  How would we do that?  Is
> > removing LC_LANG and LC_ALL sufficient?  I thought $LANG was mostly
> > used.
>=20
> I've gone the route of adding LC_LANG=3Den LC_ALL=3Den to the :sysdepen=
d
> entry in default.aap, and that does the trick.

If you can send me a patch I can include this.  It's not a generic
solution, but if you have this problem then others probably will too.

--=20
Get a life?  What is the URL where it can be downloaded?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \=
\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\        download, build and distribute -- http://www.A-A-P.org        =
///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         /=
//


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642