Override Navigator Language: fixing an upstream bug (#1257)
This commit is contained in:
@@ -8,9 +8,9 @@ and fix the selection in the UI for the browser language
|
||||
Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||||
---
|
||||
.../browser/language/AppLocaleUtils.java | 20 +++++++++++++++++++
|
||||
.../renderer_host/render_process_host_impl.cc | 6 +++++-
|
||||
2 files changed, 25 insertions(+), 1 deletion(-)
|
||||
.../browser/language/AppLocaleUtils.java | 22 ++++++++++++++++++-
|
||||
.../renderer_host/render_process_host_impl.cc | 6 ++++-
|
||||
2 files changed, 26 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/chrome/browser/language/android/java/src/org/chromium/chrome/browser/language/AppLocaleUtils.java b/chrome/browser/language/android/java/src/org/chromium/chrome/browser/language/AppLocaleUtils.java
|
||||
--- a/chrome/browser/language/android/java/src/org/chromium/chrome/browser/language/AppLocaleUtils.java
|
||||
@@ -49,6 +49,15 @@ diff --git a/chrome/browser/language/android/java/src/org/chromium/chrome/browse
|
||||
/**
|
||||
* Gets the first original system locale from {@link LocaleManager}. This is the language that
|
||||
* Chrome would use if there was no override set. If there are no possible UI languages en-US is
|
||||
@@ -186,7 +206,7 @@ public class AppLocaleUtils {
|
||||
*/
|
||||
@ChecksSdkIntAtLeast(api = 33)
|
||||
public static boolean shouldUseSystemManagedLocale() {
|
||||
- return Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU;
|
||||
+ return false; // Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU;
|
||||
}
|
||||
|
||||
/**
|
||||
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
|
||||
Reference in New Issue
Block a user