Date: Thu, 11 Nov 2004 23:37:23 +0100 (CET) From: Jose M Rodriguez <josemi@freebsd.jazztel.es> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gnome@FreeBSD.org Subject: ports/73841: [PATCH] add i18n support to mozilla Message-ID: <200411112237.iABMbNjs006910@redesjm.local> Resent-Message-ID: <200411112240.iABMeNc1037342@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73841 >Category: ports >Synopsis: [PATCH] add i18n support to mozilla >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 11 22:40:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jose M Rodriguez >Release: FreeBSD 5.3-STABLE i386 >Organization: Redes JM >Environment: System: FreeBSD orion.redesjm.local 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Nov 11 12:52:44 CET 2004 root@orion.redesjm.local:/usr/obj/usr/src/sys/ORION i386 >Description: Add support for LANG, MOZILLA_UILOCALE & MOZILLA_UIREGION to ${PREFIX}/bin/mozilla >How-To-Repeat: >Fix: --- patch-mozilla begins here --- --- files/mozilla.sh.orig Thu Nov 11 23:27:43 2004 +++ files/mozilla.sh Thu Nov 11 23:32:35 2004 @@ -6,6 +6,22 @@ cd $MOZILLA_DIR || exit 1 +# LANG, MOZILLA_UILOCALE, MOZILLA_REGION +if [ -n "$LANG" -a ! -n "${MOZILLA_UILOCALE}" ]; then + _locale="${LANG%%.*}" + if [ "${_locale}" != "en_US" ]; then + _region="${_locale##*_}" + _locale="${_locale%_*}" + [ -r chrome/${_locale}-${_region}.jar ] && \ + MOZILLA_EXEC="${MOZILLA_EXEC} -UILocale ${_locale}-${_region}" + fi +elif [ -n "${MOZILLA_UILOCALE}" ]; then + MOZILLA_EXEC="${MOZILLA_EXEC} -UILocale ${MOZILLA_UILOCALE}" + if [ -n "${MOZILLA_UIREGION}" ]; then + MOZILLA_EXEC="${MOZILLA_EXEC} -UIRegion ${MOZILLA_UIREGION}" + fi +fi + case $1 in -browser) REMOTE_COMMAND="xfeDoCommand (openBrowser)" --- patch-mozilla ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411112237.iABMbNjs006910>