diff options
Diffstat (limited to 'python/l10n/fluent_migrations/bug_1867819_formautofill.py')
-rw-r--r-- | python/l10n/fluent_migrations/bug_1867819_formautofill.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1867819_formautofill.py b/python/l10n/fluent_migrations/bug_1867819_formautofill.py new file mode 100644 index 0000000000..1b4d9606f1 --- /dev/null +++ b/python/l10n/fluent_migrations/bug_1867819_formautofill.py @@ -0,0 +1,26 @@ +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +import fluent.syntax.ast as FTL +from fluent.migrate.transforms import COPY + + +def migrate(ctx): + """Bug 1867819 - Convert formautofill.properties to Fluent, part {index}.""" + + source = "browser/extensions/formautofill/formautofill.properties" + target = "toolkit/toolkit/formautofill/formAutofill.ftl" + ctx.add_transforms( + target, + target, + [ + FTL.Message( + id=FTL.Identifier("autofill-options-link"), + value=COPY(source, "autofillOptionsLink"), + ), + FTL.Message( + id=FTL.Identifier("autofill-options-link-osx"), + value=COPY(source, "autofillOptionsLinkOSX"), + ), + ], + ) |