summaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-19 21:57:58 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-19 21:57:58 +0000
commitb2eff33c9258cb5e0ce754f5a675885222212dba (patch)
tree3e8d22ab8a74e168b427821dbef9d7ef02431f12 /chrome
parent51117c2b62ff7cef626addb6416336f76d54d97e (diff)
downloaduxp-b2eff33c9258cb5e0ce754f5a675885222212dba.tar.gz
Issue #1210 - Introduce an internal API to get configured application locales.
en-US will always be added as a fallback, to make things simpler down the line and avoid error checking all over the place.
Diffstat (limited to 'chrome')
-rw-r--r--chrome/nsChromeRegistryChrome.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/nsChromeRegistryChrome.cpp b/chrome/nsChromeRegistryChrome.cpp
index 7678183fd3..2037e23d55 100644
--- a/chrome/nsChromeRegistryChrome.cpp
+++ b/chrome/nsChromeRegistryChrome.cpp
@@ -25,6 +25,7 @@
#include "mozilla/LookAndFeel.h"
#include "mozilla/Unused.h"
+#include "mozilla/intl/LocaleService.h"
#include "nsICommandLine.h"
#include "nsILocaleService.h"
@@ -385,6 +386,7 @@ nsresult nsChromeRegistryChrome::UpdateSelectedLocale()
NS_ASSERTION(obsSvc, "Couldn't get observer service.");
obsSvc->NotifyObservers((nsIChromeRegistry*) this,
"selected-locale-has-changed", nullptr);
+ mozilla::intl::LocaleService::GetInstance()->Refresh();
}
}