From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 11 22:40:24 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2B6116A4CE for ; Thu, 11 Nov 2004 22:40:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1CE643D46 for ; Thu, 11 Nov 2004 22:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iABMeNPv037344 for ; Thu, 11 Nov 2004 22:40:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iABMeNc1037342; Thu, 11 Nov 2004 22:40:23 GMT (envelope-from gnats) Resent-Date: Thu, 11 Nov 2004 22:40:23 GMT Resent-Message-Id: <200411112240.iABMeNc1037342@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jose M Rodriguez Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF9D416A4D1; Thu, 11 Nov 2004 22:37:28 +0000 (GMT) Received: from smtp1.jazztel.es (smtp1.jazztel.es [62.14.3.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5283E43D46; Thu, 11 Nov 2004 22:37:28 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp1.jazztel.es with antivirus id 1CSNZX-0002os-00 Thu, 11 Nov 2004 23:37:43 +0100 Received: from [212.106.238.191] (helo=rguez.homeunix.net) by smtp1.jazztel.es with esmtp id 1CSNZW-0002o2-00 Thu, 11 Nov 2004 23:37:42 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iABMbMta002133; Thu, 11 Nov 2004 23:37:22 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: (from freebsd@localhost) by redesjm.local (8.13.1/8.13.1/Submit) id iABMbNjs006910; Thu, 11 Nov 2004 23:37:23 +0100 (CET) (envelope-from freebsd) Message-Id: <200411112237.iABMbNjs006910@redesjm.local> Date: Thu, 11 Nov 2004 23:37:23 +0100 (CET) From: Jose M Rodriguez To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: gnome@FreeBSD.org Subject: ports/73841: [PATCH] add i18n support to mozilla X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jose M Rodriguez List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 22:40:24 -0000 >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: