Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1844783_mozMessageBarShopping.py
blob468839693c39c1f56aad7480aabaed2514c4cdd5
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
4 from fluent.migrate import COPY_PATTERN
5 from fluent.migrate.helpers import transforms_from
8 def migrate(ctx):
9 """Bug 1844783 - Use new moz-message-bar in shopping components, part {index}."""
10 shopping_ftl = "browser/browser/shopping.ftl"
11 ctx.add_transforms(
12 shopping_ftl,
13 shopping_ftl,
14 transforms_from(
15 """
16 shopping-message-bar-generic-error =
17 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-generic-error-title2")}
18 .message = {COPY_PATTERN(from_path, "shopping-message-bar-generic-error-message")}
20 shopping-message-bar-warning-not-enough-reviews =
21 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-warning-not-enough-reviews-title")}
22 .message = {COPY_PATTERN(from_path, "shopping-message-bar-warning-not-enough-reviews-message2")}
24 shopping-message-bar-warning-product-not-available =
25 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-warning-product-not-available-title")}
26 .message = {COPY_PATTERN(from_path, "shopping-message-bar-warning-product-not-available-message2")}
28 shopping-message-bar-thanks-for-reporting =
29 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-thanks-for-reporting-title")}
30 .message = {COPY_PATTERN(from_path, "shopping-message-bar-thanks-for-reporting-message2")}
32 shopping-message-bar-warning-product-not-available-reported =
33 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-warning-product-not-available-reported-title2")}
34 .message = {COPY_PATTERN(from_path, "shopping-message-bar-warning-product-not-available-reported-message2")}
36 shopping-message-bar-page-not-supported =
37 .heading = {COPY_PATTERN(from_path, "shopping-message-bar-page-not-supported-title")}
38 .message = {COPY_PATTERN(from_path, "shopping-message-bar-page-not-supported-message")}
40 shopping-survey-thanks =
41 .heading = {COPY_PATTERN(from_path, "shopping-survey-thanks-message")}
42 """,
43 from_path=shopping_ftl,