From 316ff90d965913e8abcce8c469dbd8109f3609ad Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Tue, 14 Jun 2011 14:43:36 -0700 Subject: [PATCH] Bug 664285 - Fallback to default locale if we can't find a matching one. r=mfinkle --- mobile/chrome/content/localePicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/chrome/content/localePicker.js b/mobile/chrome/content/localePicker.js index d69f2ec012e..c10cdeabe29 100644 --- a/mobile/chrome/content/localePicker.js +++ b/mobile/chrome/content/localePicker.js @@ -346,7 +346,7 @@ function start() { } } - if (matchingLocale != chrome.getSelectedLocale("browser")) + if (matchingLocale && matchingLocale != chrome.getSelectedLocale("browser")) LocaleUI.language = matchingLocale; else { LocaleUI._language = chrome.getSelectedLocale("browser");