Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1786186_mobile_aboutConfig.py
blob99c6673f920724011dd93409b0023b5abfefb7fa
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
8 from fluent.migrate.transforms import COPY
11 def migrate(ctx):
12 """Bug 1786186 - Migrate mobile about:config to Fluent, part {index}"""
14 target = "mobile/android/mobile/android/aboutConfig.ftl"
16 ctx.add_transforms(
17 target,
18 target,
19 transforms_from(
20 """
22 config-toolbar-search =
23 .placeholder = { COPY(path1, "toolbar.searchPlaceholder") }
24 config-new-pref-name =
25 .placeholder = { COPY(path1, "newPref.namePlaceholder") }
26 config-new-pref-value-boolean = { COPY(path1, "newPref.valueBoolean") }
27 config-new-pref-value-string = { COPY(path1, "newPref.valueString") }
28 config-new-pref-value-integer = { COPY(path1, "newPref.valueInteger") }
29 config-new-pref-string =
30 .placeholder = { COPY(path1, "newPref.stringPlaceholder") }
31 config-new-pref-number =
32 .placeholder = { COPY(path1, "newPref.numberPlaceholder") }
33 config-new-pref-cancel-button = { COPY(path1, "newPref.cancelButton") }
34 config-context-menu-copy-pref-name =
35 .label = { COPY(path1, "contextMenu.copyPrefName") }
36 config-context-menu-copy-pref-value =
37 .label = { COPY(path1, "contextMenu.copyPrefValue") }
38 """,
39 path1="mobile/android/chrome/config.dtd",
43 source = "mobile/android/chrome/config.properties"
44 ctx.add_transforms(
45 target,
46 target,
48 FTL.Message(
49 id=FTL.Identifier("config-new-pref-create-button"),
50 value=COPY(source, "newPref.createButton"),
52 FTL.Message(
53 id=FTL.Identifier("config-new-pref-change-button"),
54 value=COPY(source, "newPref.changeButton"),
56 FTL.Message(
57 id=FTL.Identifier("config-pref-toggle-button"),
58 value=COPY(source, "pref.toggleButton"),
60 FTL.Message(
61 id=FTL.Identifier("config-pref-reset-button"),
62 value=COPY(source, "pref.resetButton"),