*** components/aboutHome.js Fri Apr 9 17:31:32 2010 --- components/aboutHome.js.new Fri Jul 9 16:06:44 2010 *************** *** 21,26 **** --- 21,27 ---- * Ryan Flint * Justin Dolske * Johnathan Nightingale + * Ubuntu Furry Remix developers * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or *************** *** 52,75 **** } function getUALocale() { - var prefs = Cc["@mozilla.org/preferences-service;1"] - .getService(Ci.nsIPrefBranch); ! var userAgentLocale = null; ! try { ! var userAgentLocaleLocalized = null; ! ! try { ! userAgentLocaleLocalized = prefs.getComplexValue("general.useragent.locale", ! Ci.nsIPrefLocalizedString); ! } catch (e) {} ! ! if (userAgentLocaleLocalized) { ! userAgentLocale = userAgentLocaleLocalized.toString(); ! } else { ! userAgentLocale = prefs.getCharPref("general.useragent.locale"); ! } ! } catch (e) { userAgentLocale = "en-US";} return userAgentLocale; } --- 53,61 ---- } function getUALocale() { ! var patt = /;\ (.*?)\)/i; ! var userAgentLocale = navigator.appVersion.match(patt); return userAgentLocale; }