tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit bc955825b5b449a15d3597f15bf966bd5f17624b
parent 8f0095d41bb333d16dbe25fd969f6784425015b2
Author: Emily McMinn <emcminn@mozilla.com>
Date:   Mon, 15 Dec 2025 22:50:37 +0000

Bug 2005798 - Remove label property from PDF Annotations strings r=omc-reviewers,fluent-reviewers,bolsson,sachung

Differential Revision: https://phabricator.services.mozilla.com/D276299

Diffstat:
Mbrowser/locales/en-US/browser/newtab/asrouter.ftl | 6++----
Apython/l10n/fluent_migrations/bug_2005798_pdf_annotations.py | 23+++++++++++++++++++++++
2 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/browser/locales/en-US/browser/newtab/asrouter.ftl b/browser/locales/en-US/browser/newtab/asrouter.ftl @@ -216,10 +216,8 @@ annotations-default-pdf-handler-headline = Sign on the dotted line — or anywhe annotations-default-pdf-handler-body = Draw, type, or upload your signature, then place it exactly where you want. Save your go-to signatures for next time. annotations-make-default-pdf-handler-title = Make { -brand-short-name } your default PDF editor? annotations-make-default-pdf-handler-subtitle = You’ll have access to our tools every time you open a PDF. -annotations-make-default-pdf-primary-cta = - .label = Set as default -annotations-make-default-pdf-next = - .label = Next +annotations-make-default-pdf-primary-cta-label = Set as default +annotations-make-default-pdf-next-label = Next ## FxA sync CFR diff --git a/python/l10n/fluent_migrations/bug_2005798_pdf_annotations.py b/python/l10n/fluent_migrations/bug_2005798_pdf_annotations.py @@ -0,0 +1,23 @@ +# 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 2005798 - Remove label property from PDF Annotations strings, part {index}.""" + + source = "browser/browser/newtab/asrouter.ftl" + target = source + + ctx.add_transforms( + target, + target, + transforms_from( + """ +annotations-make-default-pdf-primary-cta-label = {COPY_PATTERN(from_path, "annotations-make-default-pdf-primary-cta.label")} +annotations-make-default-pdf-next-label = {COPY_PATTERN(from_path, "annotations-make-default-pdf-next.label")} +""", + from_path=source, + ), + )