Bug 73837 - [PATCH] add i18n support to firefox
Summary: [PATCH] add i18n support to firefox
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 21:40 UTC by Jose M Rodriguez
Modified: 2004-11-13 08:25 UTC (History)
1 user (show)

See Also:


Attachments
patch-firefox (1.32 KB, text/plain)
2004-11-11 21:40 UTC, Jose M Rodriguez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose M Rodriguez 2004-11-11 21:40:22 UTC

Fix: Add support to bin/firefox for MOZILLA_UILOCALE and MOZILLA_UIREGION env
Comment 1 Michael Johnson freebsd_committer freebsd_triage 2004-11-11 21:46:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (gnome)
Comment 2 Jose M Rodriguez 2004-11-12 15:47:44 UTC
Sorry, posted bad patch.  This is the working one
>Fix:
--- patch-firefox begins here ---
--- /usr/ports/www/firefox/files/patch-browser_app_mozilla.in Wed Oct
13 22:28:12 2004 +++
www/firefox/files/patch-browser_app_mozilla.in Thu Nov 11 22:33:18
2004 @@ -1,5 +1,5 @@
---- browser/app/mozilla.in.orig Sat Oct  2 02:05:53 2004
-+++ browser/app/mozilla.in Sat Oct  2 02:06:15 2004
+--- browser/app/mozilla.in.orig Tue Oct 26 11:26:11 2004
++++ browser/app/mozilla.in Thu Nov 11 22:31:28 2004
 @@ -110,6 +110,7 @@
    # Check default compile-time libdir
    if [ -x "$moz_libdir/run-mozilla.sh" ]; then
@@ -8,3 +8,35 @@
    else
      echo "Cannot find mozilla runtime directory. Exiting."
      exit 1
+@@ -207,12 +208,31 @@
+       script_args="$script_args -d $2"
+       shift 2
+       ;;
++    -UILocale)
++      moreargs="$moreargs -UILocale $2"
++      _done_locale="YES"
++      shift 2
++      ;;
++    -UIRegion)
++      if [ -n "${_done_locale}" ]; then
++        moreargs="$moreargs -UIRegion $2"
++      fi
++      shift 2
++      ;;
+     *)
+       moreargs="$moreargs \"$1\""
+       shift 1
+       ;;
+   esac
+ done
++
++if [ ! -n "${_done_locale}" -a -n "${MOZILLA_UILOCALE}" ]; then
++    if [ -n "${MOZILLA_UIREGION}" ]; then
++      moreargs="-UIRegion ${MOZILLA_UIREGION} $moreargs"
++    fi
++    moreargs="-UILocale ${MOZILLA_UILOCALE} $moreargs"
++fi
++unset _done_locale
+
+ export MRE_HOME
+ eval "set -- $moreargs"
--- patch-firefox ends here ---
Comment 3 Michael Johnson freebsd_committer freebsd_triage 2004-11-13 08:25:41 UTC
State Changed
From-To: open->closed

Committed, Thanks!