SOURCES: mozilla-firefox.sh - added runtime language support
Jakub Bogusz
qboosh w pld-linux.org
Sob, 19 Lut 2005, 18:06:14 CET
On Sat, Feb 19, 2005 at 05:25:09PM +0100, jack wrote:
> Author: jack Date: Sat Feb 19 16:25:08 2005 GMT
> Module: SOURCES Tag: HEAD
> ---- Log message:
> - added runtime language support
>
> ---- Files affected:
> SOURCES:
> mozilla-firefox.sh (1.2 -> 1.3)
>
> ---- Diffs:
>
> ================================================================
> Index: SOURCES/mozilla-firefox.sh
> diff -u SOURCES/mozilla-firefox.sh:1.2 SOURCES/mozilla-firefox.sh:1.3
> --- SOURCES/mozilla-firefox.sh:1.2 Thu Jan 13 14:04:36 2005
> +++ SOURCES/mozilla-firefox.sh Sat Feb 19 17:25:03 2005
> @@ -8,23 +8,34 @@
> fi
>
> MOZILLA_FIVE_HOME=$LIBDIR
> +
> +MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
> +
> +[ -f $MOZILLA_FIVE_HOME/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
$LANG nie musi oznaczać języka interfejsu.
$LC_ALL, jak nie ma to $LC_MESSAGES, dopiero jak też nie ma to $LANG.
Można sobie uprościć przez `locale | grep ^LC_MESSAGES`.
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
Więcej informacji o liście dyskusyjnej pld-devel-pl