Debian Codegraph @

python/l10n/fluent_migrations/bug_1936665_profiles_migration.py

raw
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
3
4 from fluent.migrate.helpers import transforms_from
5
6
7 def migrate(ctx):
8 """Bug 1936665 - Migrate profiles fluent strings, part {index}."""
9
10 ctx.add_transforms(
11 "browser/browser/profiles.ftl",
12 "browser/browser/profiles.ftl",
13 transforms_from(
14 """
15 edit-profile-page-theme-header-2 =
16 .label = {COPY_PATTERN(from_path, "edit-profile-page-theme-header")}
17
18 edit-profile-page-avatar-header-2 =
19 .label = {COPY_PATTERN(from_path, "edit-profile-page-avatar-header")}
20
21 book-avatar = {COPY_PATTERN(from_path, "book-avatar-alt.alt")}
22 briefcase-avatar = {COPY_PATTERN(from_path, "briefcase-avatar-alt.alt")}
23 flower-avatar = {COPY_PATTERN(from_path, "flower-avatar-alt.alt")}
24 heart-avatar = {COPY_PATTERN(from_path, "heart-avatar-alt.alt")}
25 shopping-avatar = {COPY_PATTERN(from_path, "shopping-avatar-alt.alt")}
26 star-avatar = {COPY_PATTERN(from_path, "star-avatar-alt.alt")}
27 """,
28 from_path="browser/browser/profiles.ftl",
29 ),
30 )