Skip to content

Commit b345b3e

Browse files
committed
Linux: Override lang setting from command line
1 parent 9cca523 commit b345b3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/base/l10n/l10n_util.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ std::string GetApplicationLocale(const std::string& pref_locale) {
456456
candidates.push_back(GetDefaultLocale());
457457

458458
#elif defined(OS_LINUX)
459+
if (!pref_locale.empty())
460+
candidates.push_back(pref_locale);
461+
459462
// If we're on a different Linux system, we have glib.
460463

461464
// GLib implements correct environment variable parsing with

0 commit comments

Comments
 (0)