updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / sunbird / sunbird-locale.patch
bloba2399b5b4b89be8b3b0df64377535162ab741f7f
1 diff -Naur mozilla-old/calendar/sunbird/app/mozilla.in mozilla/calendar/sunbird/app/mozilla.in
2 --- mozilla-old/calendar/sunbird/app/mozilla.in 2008-01-11 13:20:02.000000000 +1000
3 +++ mozilla/calendar/sunbird/app/mozilla.in 2008-09-24 20:37:12.000000000 +1000
4 @@ -250,14 +250,21 @@
6 export MRE_HOME
8 +## Get system language
9 +SHORTLOCALE=$(echo $LANG | sed "s|_\([^.]*\).*||g")
10 +LONGLOCALE=$(echo $LANG | sed "s|_\([^.]*\).*|-\1|g")
11 +LOCALEPARAM=""
12 +[ -f ${moz_libdir}/chrome/${SHORTLOCALE}.jar ] && LOCALEPARAM="-UILocale ${SHORTLOCALE}"
13 +[ -f ${moz_libdir}/chrome/${LONGLOCALE}.jar ] && LOCALEPARAM="-UILocale ${LONGLOCALE}"
15 ## Start addon scripts
16 moz_pis_startstop_scripts "start"
18 if [ $debugging = 1 ]
19 then
20 - echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
21 + echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@" ${LOCALEPARAM}
23 -"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
24 +"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@" ${LOCALEPARAM}
25 exitcode=$?
27 ## Stop addon scripts