Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1635548_browser_context.py
blob33bd0efc95550c9d9af2807aad39cc0038334755
1 # coding=utf8
3 # Any copyright is dedicated to the Public Domain.
4 # http://creativecommons.org/publicdomain/zero/1.0/
6 import fluent.syntax.ast as FTL
7 from fluent.migrate.helpers import transforms_from, VARIABLE_REFERENCE
8 from fluent.migrate import REPLACE, COPY
11 def migrate(ctx):
12 """Bug 1635548 - Migrate browser-context.inc to Fluent, part {index}"""
13 target = "toolkit/toolkit/global/textActions.ftl"
14 reference = "toolkit/toolkit/global/textActions.ftl"
15 ctx.add_transforms(
16 target,
17 reference,
18 transforms_from(
19 """
20 text-action-spell-add-to-dictionary =
21 .label = { COPY(from_path, "spellAddToDictionary.label") }
22 .accesskey = { COPY(from_path, "spellAddToDictionary.accesskey") }
24 text-action-spell-undo-add-to-dictionary =
25 .label = { COPY(from_path, "spellUndoAddToDictionary.label") }
26 .accesskey = { COPY(from_path, "spellUndoAddToDictionary.accesskey") }
28 text-action-spell-check-toggle =
29 .label = { COPY(from_path, "spellCheckToggle.label") }
30 .accesskey = { COPY(from_path, "spellCheckToggle.accesskey") }
32 text-action-spell-dictionaries =
33 .label = { COPY(from_path, "spellDictionaries.label") }
34 .accesskey = { COPY(from_path, "spellDictionaries.accesskey") }
35 """,
36 from_path="toolkit/chrome/global/textcontext.dtd",
40 target = "toolkit/toolkit/global/textActions.ftl"
41 reference = "toolkit/toolkit/global/textActions.ftl"
42 ctx.add_transforms(
43 target,
44 reference,
45 transforms_from(
46 """
47 text-action-spell-add-dictionaries =
48 .label = { COPY(from_path, "spellAddDictionaries.label") }
49 .accesskey = { COPY(from_path, "spellAddDictionaries.accesskey") }
50 """,
51 from_path="browser/chrome/browser/browser.dtd",
55 target = "browser/browser/browserContext.ftl"
56 reference = "browser/browser/browserContext.ftl"
57 ctx.add_transforms(
58 target,
59 reference,
61 FTL.Message(
62 id=FTL.Identifier("main-context-menu-open-link-in-container-tab"),
63 attributes=[
64 FTL.Attribute(
65 FTL.Identifier("label"),
66 REPLACE(
67 "browser/chrome/browser/browser.properties",
68 "userContextOpenLink.label",
69 {"%1$S": VARIABLE_REFERENCE("containerName")},
72 FTL.Attribute(
73 FTL.Identifier("accesskey"),
74 COPY(
75 "browser/chrome/browser/browser.dtd",
76 "openLinkCmdInTab.accesskey",