Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, this will not work.
_override.grd
files are auto-generated by runningnpm run rebase_chromium_l10n
. The strings in the_override
files are based on automatic generic substitutions that are mapped in https://github.com/brave/brave-core/blob/master/script/lib/grd_string_replacements.pyThere is no mapping for
Incognito
->private
(maybe it's safe to add one if we adjust regex to make sure it's not the first word in the phrase? cc: @bsclifton). Barring that, I think the best option for this is to add a new string intoapp/brave_generated_resources.grd
and then replaceIDS_NEW_INCOGNITO_WINDOW
with our string ID in code via achromium_src
override.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarification @mkarolin 😄 I updated https://github.com/brave/brave-browser/wiki/Strings-and-Localization#chromium-strings to capture that detail (I had forgotten myself where the _override.grd comes from - just remembering I had asked here a while back brave/brave-browser#17377 (comment))
I like the suggestion of using a
chromium_src
override (versus trying to hack regex). This unfortunately takes it out of thegood first issue
categoryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll let you take it from here :)