-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #829 from brave/web-ui-l10n
Fix localization in Brave web-ui pages and Brave strings in general
- Loading branch information
Showing
7 changed files
with
168 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
# You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
|
||
brave_locale_source_patterns = [ | ||
"${root_gen_dir}/components/brave_components_strings_", | ||
"${root_gen_dir}/brave/brave_generated_resources_", | ||
] | ||
|
||
brave_locale_deps = [ | ||
"//brave/app:brave_generated_resources_grit", | ||
"//brave/components/resources:strings", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/chrome/chrome_repack_locales.gni b/chrome/chrome_repack_locales.gni | ||
index dd37d98b467ec9bcf5ac5fd59ac56e43412a19fa..5a200e64670e4004041934eec9a23675de6d7e4d 100644 | ||
--- a/chrome/chrome_repack_locales.gni | ||
+++ b/chrome/chrome_repack_locales.gni | ||
@@ -2,6 +2,7 @@ | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
+import("//brave/brave_repack_locales.gni") | ||
import("//build/config/chrome_build.gni") | ||
import("//build/config/features.gni") | ||
import("//build/config/ui.gni") | ||
@@ -35,6 +36,7 @@ template("chrome_repack_locales") { | ||
"${root_gen_dir}/ui/strings/app_locale_settings_", | ||
"${root_gen_dir}/ui/strings/ui_strings_", | ||
] | ||
+ source_patterns += brave_locale_source_patterns | ||
if (!defined(deps)) { | ||
deps = [] | ||
} | ||
@@ -51,6 +53,7 @@ template("chrome_repack_locales") { | ||
"//ui/strings:app_locale_settings", | ||
"//ui/strings:ui_strings", | ||
] | ||
+ deps += brave_locale_deps | ||
if (defined(invoker.deps)) { | ||
deps += invoker.deps | ||
} |