diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-06-26 07:46:49 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-06-26 07:46:49 +0200 |
commit | 6f77138fd8f6b6e3c0cdfbe72acc964da48cc04c (patch) | |
tree | 73082d5c987c51c21733c7649e8b50a0b81bb6b9 /sunbird-1.0-uilocale.patch |
import sunbird (for thunderbird-lightning)
Diffstat (limited to 'sunbird-1.0-uilocale.patch')
-rw-r--r-- | sunbird-1.0-uilocale.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sunbird-1.0-uilocale.patch b/sunbird-1.0-uilocale.patch new file mode 100644 index 0000000..d1a8e2b --- /dev/null +++ b/sunbird-1.0-uilocale.patch @@ -0,0 +1,32 @@ +Guess the UI locale to use. If only intl.locale.matchOS worked... + +Lubomir Rintel <lkundrak@v3.sk> + +diff -up mozilla/build/unix/mozilla.in.uilocale mozilla/build/unix/mozilla.in +diff -up mozilla/build/unix/run-mozilla.sh.uilocale mozilla/build/unix/run-mozilla.sh +--- mozilla/build/unix/run-mozilla.sh.uilocale 2009-04-28 21:53:14.000000000 +0200 ++++ mozilla/build/unix/run-mozilla.sh 2009-04-28 21:54:39.000000000 +0200 +@@ -279,6 +279,23 @@ MOZILLA_FIVE_HOME=$MOZ_DIST_BIN + if [ -z "$MRE_HOME" ]; then + MRE_HOME=$MOZILLA_FIVE_HOME + fi ++ ++# Try without a local variant first, then with a local variant ++# So that pt-BR doesn't try to use pt for example ++ ++SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"` ++MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"` ++ ++if [ -f ${MOZ_DIST_BIN}/extensions/langpack-${MOZLOCALE}@sunbird.mozilla.org/chrome/$MOZLOCALE.jar ] ++then ++ set -- "$@" -UILocale $MOZLOCALE ++else ++ if [ -f ${MOZ_DIST_BIN}/extensions/langpack-${SHORTMOZLOCALE}@sunbird.mozilla.org/chrome/$SHORTMOZLOCALE.jar ] ++ then ++ set -- "$@" -UILocale $SHORTMOZLOCALE ++ fi ++fi ++ + ## + ## Set LD_LIBRARY_PATH + ## |