[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16237: Set the locale and dictionary to something Firefox can parse (incognito/trunk/root_overlay/etc/init.d)



Author: anonym
Date: 2008-07-29 12:39:57 -0400 (Tue, 29 Jul 2008)
New Revision: 16237

Modified:
   incognito/trunk/root_overlay/etc/init.d/external-locale
Log:
Set the locale and dictionary to something Firefox can parse.


Modified: incognito/trunk/root_overlay/etc/init.d/external-locale
===================================================================
--- incognito/trunk/root_overlay/etc/init.d/external-locale	2008-07-29 15:30:41 UTC (rev 16236)
+++ incognito/trunk/root_overlay/etc/init.d/external-locale	2008-07-29 16:39:57 UTC (rev 16237)
@@ -24,16 +24,16 @@
 	    # Localize mozilla
 	    MOZILLA_FIVE_HOME="/opt/firefox"
 	    if [[ -w "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js ]]; then
-		sed -i "s:general.useragent.locale\", \".*\":general.useragent.locale\", \"${LOCALE}\":" \
+		sed -i "s:general.useragent.locale\", \".*\":general.useragent.locale\", \"${LANGUAGE}\":" \
 		    "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
 		    "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js 2>/dev/null
-		sed -i "s:spellchecker.dictionary\", \".*\":spellchecker.dictionary\", \"${LOCALE}\":" \
+		sed -i "s:spellchecker.dictionary\", \".*\":spellchecker.dictionary\", \"${LANGUAGE}\":" \
 		    "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
 		    "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js 2>/dev/null
 	    fi
 	    ls /home/__INCOGNITO_USER__/.mozilla/firefox/*/prefs.js /home/__INCOGNITO_USER__/.thunderbird/*/prefs.js 2>/dev/null | while read PREFS; do
-		echo "user_pref(\"general.useragent.locale\", \"${LOCALE}\");" >> "${PREFS}"
-		echo "user_pref(\"spellchecker.dictionary\", \"${LOCALE}\");" >> "${PREFS}"
+		echo "user_pref(\"general.useragent.locale\", \"${LANGUAGE}\");" >> "${PREFS}"
+		echo "user_pref(\"spellchecker.dictionary\", \"${LANGUAGE}\");" >> "${PREFS}"
 	    done
 
 	    # Set keyboard layout in KDE