Debian Codegraph @

python/l10n/fluent_migrations/bug_1948916_formautofill_label.py

raw
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
3
4 import fluent.syntax.ast as FTL
5 from fluent.migrate.helpers import TERM_REFERENCE
6 from fluent.migrate.transforms import REPLACE
7
8
9 def migrate(ctx):
10 """Bug 1948916 - Bundle formautofill into Firefox Desktop omni jar - part {index}."""
11
12 propertiesSource = "browser/extensions/formautofill/formautofill.properties"
13 target = "toolkit/toolkit/formautofill/formAutofill.ftl"
14 ctx.add_transforms(
15 target,
16 target,
17 [
18 FTL.Message(
19 id=FTL.Identifier("autofill-insecure-field-warning-description"),
20 value=REPLACE(
21 propertiesSource,
22 "insecureFieldWarningDescription",
23 {
24 "%1$S": TERM_REFERENCE("brand-short-name"),
25 },
26 ),
27 ),
28 ],
29 )