On Tue, Oct 26, 1999 at 03:50:15PM +0200, Alexander Larsson wrote:
> Heres an i18n problem for the experts to think about.
> How can we fix this? Why was en.po renamed to en_GB.po?
>
> / Alex
>
> ---------- Forwarded message ----------
> Date: Tue, 26 Oct 1999 09:13:59 -0400
> From: Philip Long <[EMAIL PROTECTED]>
> To: Alexander Larsson <[EMAIL PROTECTED]>
> Subject: Re: problem building dia 0.80
>
> The problem is that RH 6.1 sets the LINGUAS variable, in my case to en. This
> messes up all sorts of building. When I unset LINGUAS, everything builds
> fine. Thanks for dia.
>
The purpose of the LINGUAS env variable is to allow the user to select which
translations to build and install. Of course, if a user selects a language
in LINGUAS that is not available in the program that is going to be built
this language should just be ignored. gettext.m4 tries to do this, but
there is a bug that will (in this example) try to build "en" if it is in the
LINGUAS if there is something the matches "*en*" in ALL_LINGUAS (like
en_GB).
I think this patch (which probably can be improved) will fix this:
--- gettext.m4 Tue Oct 26 17:46:16 1999
+++ /usr/share/aclocal/gettext.m4 Fri Oct 22 13:02:06 1999
@@ -229,8 +229,7 @@
NEW_LINGUAS=
for lang in ${LINGUAS=$ALL_LINGUAS}; do
case "$ALL_LINGUAS" in
- *\ $lang\ * | $lang\ * | *\ $lang )
- NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
+ *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
esac
done
LINGUAS=$NEW_LINGUAS
--
Fredrik Hallenberg [EMAIL PROTECTED]
http://www.lysator.liu.se/~hallon [EMAIL PROTECTED]