Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1854425_default_agent.py
blob500eb1871bbc2f331a10b879186aaaa1ca198c48
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
4 import fluent.syntax.ast as FTL
5 from fluent.migrate.helpers import TERM_REFERENCE
6 from fluent.migrate.transforms import REPLACE, COPY
9 def migrate(ctx):
10 """Bug 1854425 - Migrate defaultagent_localized.ini to Fluent, part {index}."""
12 source = "browser/defaultagent/defaultagent_localized.ini"
13 target = "browser/browser/backgroundtasks/defaultagent.ftl"
15 ctx.add_transforms(
16 target,
17 target,
19 FTL.Message(
20 id=FTL.Identifier("default-browser-agent-task-description"),
21 value=REPLACE(
22 source,
23 "DefaultBrowserAgentTaskDescription",
25 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
29 FTL.Message(
30 id=FTL.Identifier("default-browser-notification-header-text"),
31 value=REPLACE(
32 source,
33 "DefaultBrowserNotificationHeaderText",
35 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
39 FTL.Message(
40 id=FTL.Identifier("default-browser-notification-body-text"),
41 value=REPLACE(
42 source,
43 "DefaultBrowserNotificationBodyText",
45 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
49 FTL.Message(
50 id=FTL.Identifier("default-browser-notification-yes-button-text"),
51 value=COPY(source, "DefaultBrowserNotificationYesButtonText"),
53 FTL.Message(
54 id=FTL.Identifier("default-browser-notification-no-button-text"),
55 value=COPY(source, "DefaultBrowserNotificationNoButtonText"),