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
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"
20 id=FTL
.Identifier("default-browser-agent-task-description"),
23 "DefaultBrowserAgentTaskDescription",
25 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
30 id=FTL
.Identifier("default-browser-notification-header-text"),
33 "DefaultBrowserNotificationHeaderText",
35 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
40 id=FTL
.Identifier("default-browser-notification-body-text"),
43 "DefaultBrowserNotificationBodyText",
45 "%MOZ_APP_DISPLAYNAME%": TERM_REFERENCE("brand-short-name"),
50 id=FTL
.Identifier("default-browser-notification-yes-button-text"),
51 value
=COPY(source
, "DefaultBrowserNotificationYesButtonText"),
54 id=FTL
.Identifier("default-browser-notification-no-button-text"),
55 value
=COPY(source
, "DefaultBrowserNotificationNoButtonText"),