Created
January 27, 2026 07:41
-
-
Save flodolo/7eaa9369dca047398ebf28a95af088f8 to your computer and use it in GitHub Desktop.
Git diff for bug 2010181
This file contains hidden or 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
| diff --git a/browser/components/preferences/moreFromMozilla.js b/browser/components/preferences/moreFromMozilla.js | |
| index 109d334ea334..d426bebcc1bf 100644 | |
| --- a/browser/components/preferences/moreFromMozilla.js | |
| +++ b/browser/components/preferences/moreFromMozilla.js | |
| @@ -170,7 +170,7 @@ var gMoreFromMozillaPane = { | |
| products.push({ | |
| id: "mdn", | |
| - title_string_id: "more-from-moz-mdn-title", | |
| + title_string_id: "more-from-moz-mdn-title2", | |
| description_string_id: "more-from-moz-mdn-description", | |
| region: "global", | |
| button: { | |
| diff --git a/browser/locales/en-US/browser/preferences/moreFromMozilla.ftl b/browser/locales/en-US/browser/preferences/moreFromMozilla.ftl | |
| index aafaee0d1411..844b21dfb512 100644 | |
| --- a/browser/locales/en-US/browser/preferences/moreFromMozilla.ftl | |
| +++ b/browser/locales/en-US/browser/preferences/moreFromMozilla.ftl | |
| @@ -46,6 +46,6 @@ more-from-moz-solo-button = Try { -solo-ai-brand-name } | |
| ## These strings are for the MDN card in about:preferences moreFromMozilla page | |
| -more-from-moz-mdn-title = MDN Web Docs | |
| +more-from-moz-mdn-title2 = { -mdn-brand-name } | |
| more-from-moz-mdn-description = Learn web development with free, comprehensive guides and references. | |
| more-from-moz-mdn-button = Learn web development | |
| diff --git a/python/l10n/fluent_migrations/bug_2010181_create_mdn_term.py b/python/l10n/fluent_migrations/bug_2010181_create_mdn_term.py | |
| new file mode 100644 | |
| index 000000000000..32152744ef34 | |
| --- /dev/null | |
| +++ b/python/l10n/fluent_migrations/bug_2010181_create_mdn_term.py | |
| @@ -0,0 +1,22 @@ | |
| +# Any copyright is dedicated to the Public Domain. | |
| +# http://creativecommons.org/publicdomain/zero/1.0/ | |
| + | |
| +from fluent.migrate.helpers import transforms_from | |
| + | |
| + | |
| +def migrate(ctx): | |
| + """Bug 2010181 - Migrate value for MDN brand name, part {index}.""" | |
| + | |
| + source = "browser/browser/preferences/moreFromMozilla.ftl" | |
| + target = "toolkit/toolkit/branding/brandings.ftl" | |
| + | |
| + ctx.add_transforms( | |
| + target, | |
| + target, | |
| + transforms_from( | |
| + """ | |
| +-mdn-brand-name = { COPY_PATTERN(from_path, "more-from-moz-mdn-title")} | |
| +""", | |
| + from_path=source, | |
| + ), | |
| + ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment