Home | History | Annotate | Download | only in patches
      1 --- firefox/browser/app/mozilla.in.ori	2006-03-27 18:19:34.647520000 +0800
      2 +++ firefox/browser/app/mozilla.in	2006-03-30 11:34:28.242248000 +0800
      3 @@ -144,6 +144,12 @@
      4    mimeset -F "$MOZILLA_BIN"
      5  fi
      6  
      7 +# Set as current locale if no related args specified
      8 +# If required language file doesn't exist, $MOZILLA_BIN 
      9 +# would use english version
     10 +moz_uilocale=`echo $LANG | sed "s|_\([^.@]*\).*|-\1|g"`
     11 +moz_contentlocale=`echo $LANG | sed "s|.*_\([^.@]*\).*|\1|g"`
     12 +    
     13  pass_arg_count=0
     14  while [ $# -gt $pass_arg_count ]
     15  do
     16 @@ -161,6 +167,14 @@
     17        script_args="$script_args -d $2"
     18        shift 2
     19        ;;
     20 +    -UILocale)
     21 +      moz_uilocale="$2"
     22 +      shift 2
     23 +      ;;
     24 +    -contentLocale)
     25 +      moz_contentlocale="$2"
     26 +      shift 2
     27 +      ;;
     28      *)
     29        # Move the unrecognized argument to the end of the list.
     30        arg="$1"
     31 @@ -171,6 +185,8 @@
     32    esac
     33  done
     34  
     35 +locale_args="-UILocale $moz_uilocale -contentLocale $moz_contentlocale"
     36 +
     37  export MRE_HOME
     38  
     39  ## Start addon scripts
     40 @@ -184,9 +200,9 @@
     41  
     42  if [ $debugging = 1 ]
     43  then
     44 -  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
     45 +  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN $locale_args "$@"
     46  fi
     47 -"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
     48 +"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" $locale_args "$@"
     49  exitcode=$?
     50  
     51  ## Stop addon scripts
     52