deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1415733_preferences_search.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE, EXTERNAL_ARGUMENT
-from fluent.migrate.transforms import REPLACE
-from fluent.migrate import COPY
-
-
-def migrate(ctx):
- """Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API, part {index}"""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('search-bar-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'searchBar.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-bar-hidden'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'searchBar.hidden.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-bar-shown'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'searchBar.shown.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-engine-default-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'defaultSearchEngine.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-engine-default-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'chooseYourDefaultSearchEngine2.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-suggestions-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'provideSearchSuggestions.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'provideSearchSuggestions.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-show-suggestions-url-bar-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'showURLBarSuggestions2.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'showURLBarSuggestions2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-show-suggestions-above-history-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'showSearchSuggestionsAboveHistory.label'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-suggestions-cant-show'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/search.dtd',
- 'urlBarSuggestionsPermanentPB.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE(
- '-brand-short-name'
- )
- }
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('search-one-click-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'oneClickSearchEngines.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-one-click-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'chooseWhichOneToDisplay2.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-choose-engine-column'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'engineNameColumn.label'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-choose-keyword-column'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'engineKeywordColumn.label'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-restore-default'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'restoreDefaultSearchEngines.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'restoreDefaultSearchEngines.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-remove-engine'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'removeEngine.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'removeEngine.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-find-more-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/search.dtd',
- 'findMoreSearchEngines.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-keyword-warning-title'),
- value=COPY(
- 'browser/chrome/browser/engineManager.properties',
- 'duplicateTitle'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-keyword-warning-engine'),
- value=REPLACE(
- 'browser/chrome/browser/engineManager.properties',
- 'duplicateEngineMsg',
- {
- '%S': EXTERNAL_ARGUMENT(
- 'name'
- )
- }
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('search-keyword-warning-bookmark'),
- value=COPY(
- 'browser/chrome/browser/engineManager.properties',
- 'duplicateBookmarkMsg'
- )
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1419547_preferences_containers.py
+++ /dev/null
@@ -1,491 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE, EXTERNAL_ARGUMENT
-from fluent.migrate import COPY, CONCAT, REPLACE
-
-
-def migrate(ctx):
- """Bug 1419547 - Migrate Preferences::Containers to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('containers-back-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'backLink2.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('containers-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.dtd',
- 'paneContainers.title',
- )
- ),
- FTL.Message(
- id=FTL.Identifier('containers-add-button'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'addButton.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'addButton.accesskey'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('containers-preferences-button'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'preferencesButton.label'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('containers-remove-button'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'removeButton.label'
- )
- ),
- ]
- ),
- ]
- )
-
- ctx.add_transforms(
- 'browser/browser/preferences/containers.ftl',
- 'browser/browser/preferences/containers.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('containers-window-new'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'window.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'window.width',
- ),
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-window-update'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- REPLACE(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.updateContainerTitle',
- {
- '%S': EXTERNAL_ARGUMENT('name')
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'window.width',
- ),
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-window-close'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'windowClose.key',
- ),
- ),
- ],
- ),
- FTL.Term(
- id=FTL.Identifier('-containers-labels-style'),
- value=CONCAT(
- FTL.TextElement('min-width: '),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.labelMinWidth',
- ),
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('containers-name-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'name2.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'name2.accesskey',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- MESSAGE_REFERENCE('-containers-labels-style'),
- )
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-name-text'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('placeholder'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'name.placeholder',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'icon2.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'icon2.accesskey',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- MESSAGE_REFERENCE('-containers-labels-style'),
- )
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'color2.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'color2.accesskey',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- MESSAGE_REFERENCE('-containers-labels-style'),
- )
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-button-done'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'button.ok.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/containers.dtd',
- 'button.ok.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-blue'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.blue.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-turquoise'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.turquoise.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-green'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.green.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-yellow'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.yellow.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-orange'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.orange.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-red'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.red.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-pink'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.pink.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-color-purple'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.purple.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-fingerprint'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.fingerprint.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-briefcase'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.briefcase.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-dollar'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.dollar.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-cart'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.cart.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-circle'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.circle.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-vacation'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.vacation.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-gift'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.gift.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-food'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.food.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-fruit'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.fruit.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-pet'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.pet.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-tree'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.tree.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('containers-icon-chill'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/containers.properties',
- 'containers.chill.label',
- ),
- ),
- ],
- ),
-
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1438375_preferences_extension_controlled.py
+++ /dev/null
@@ -1,120 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE, EXTERNAL_ARGUMENT
-from fluent.migrate import CONCAT, REPLACE
-
-
-def migrate(ctx):
- """Bug 1438375 - Migrate Extension Controlled settings in Preferences to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('extension-controlled-homepage-override'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.homepage_override2',
- {
- '%S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-new-tab-url'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.newTabURL2',
- {
- '%S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-default-search'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.defaultSearch',
- {
- '%S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-privacy-containers'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.privacy.containers',
- {
- '%S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-websites-tracking-protection-mode'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.websites.trackingProtectionMode',
- {
- '%S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-proxy-config'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.proxyConfig',
- {
- '%1$S': CONCAT(
- FTL.TextElement('<img data-l10n-name="icon"/> '),
- EXTERNAL_ARGUMENT('name')
- ),
- '%2$S': MESSAGE_REFERENCE('-brand-short-name'),
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('extension-controlled-enable'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'extensionControlled.enable',
- {
- '%1$S': FTL.TextElement('<img data-l10n-name="addons-icon"/>'),
- '%2$S': FTL.TextElement('<img data-l10n-name="menu-icon"/>'),
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('network-proxy-connection-description'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'connectionDesc.label',
- {
- '%S': MESSAGE_REFERENCE('-brand-short-name'),
- }
- )
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1445084_preferences_search_results.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-
-def migrate(ctx):
- """Bug 1445084 - Migrate search results pane of Preferences to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('search-input-box'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/preferences.dtd',
- 'searchField.width'
- )
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('placeholder'),
- FTL.Pattern([
- FTL.Placeable(FTL.SelectExpression(
- expression=FTL.CallExpression(
- callee=FTL.Function('PLATFORM')
- ),
- variants=[
- FTL.Variant(
- key=FTL.VariantName('windows'),
- default=False,
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchInput.labelWin'
- )
- ),
- FTL.Variant(
- key=FTL.VariantName('other'),
- default=True,
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchInput.labelUnix'
- )
- )
- ]
- ))
- ])
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('search-results-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.dtd',
- 'paneSearchResults.title'
- )
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1445694_preferences_sync.py
+++ /dev/null
@@ -1,563 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE, EXTERNAL_ARGUMENT
-from fluent.migrate import COPY, CONCAT, REPLACE
-
-# Custom extension of the CONCAT migration tailored to concat
-# two strings separated by a placeable.
-class CONCAT_BEFORE_AFTER(CONCAT):
- def __call__(self, ctx):
- assert len(self.elements) == 3
- pattern_before, placeable, pattern_after = self.elements
- elem_before = pattern_before.elements[0]
- elem_after = pattern_after.elements[0]
-
- if isinstance(elem_before, FTL.TextElement) and elem_before.value[-1] != " ":
- elem_before.value += " "
- if isinstance(elem_after, FTL.TextElement) and elem_after.value[0] != " ":
- elem_after.value = " " + elem_after.value
- return super(CONCAT_BEFORE_AFTER, self).__call__(ctx)
-
-def migrate(ctx):
- """Bug 1445694 - Migrate Preferences::Sync to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/branding/sync-brand.ftl',
- 'browser/browser/branding/sync-brand.ftl',
- [
- FTL.Term(
- id=FTL.Identifier('-fxaccount-brand-name'),
- value=COPY(
- 'browser/chrome/browser/syncBrand.dtd',
- 'syncBrand.fxAccount.label'
- )
- ),
- ]
- )
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('sync-signedout-caption'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.caption',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedout-description'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.description',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedout-account-title'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.accountBox.title',
- {
- '&syncBrand.fxAccount.label;': MESSAGE_REFERENCE('-fxaccount-brand-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedout-account-create'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.accountBox.create2',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.accountBox.create2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedout-account-signin'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.accountBox.signin2',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedOut.accountBox.signin2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-profile-picture'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'profilePicture.tooltip',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-disconnect'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'disconnect3.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'disconnect3.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-manage-account'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'verifiedManage.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'verifiedManage.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedin-unverified'),
- value=CONCAT_BEFORE_AFTER(
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedInUnverified.beforename.label',
- ),
- EXTERNAL_ARGUMENT('email'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedInUnverified.aftername.label',
- ),
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedin-login-failure'),
- value=CONCAT_BEFORE_AFTER(
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedInLoginFailure.beforename.label',
- ),
- EXTERNAL_ARGUMENT('email'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedInLoginFailure.aftername.label',
- ),
- )
- ),
- FTL.Message(
- id=FTL.Identifier('sync-resend-verification'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'resendVerification.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'resendVerification.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-remove-account'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'removeAccount.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'removeAccount.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-sign-in'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signIn.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signIn.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedin-settings-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedIn.settings.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-signedin-settings-desc'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'signedIn.settings.description',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-bookmarks'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.bookmarks.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.bookmarks.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-history'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.history.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.history.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-tabs'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.tabs.label2',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.tabs.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.tabs.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-logins'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.logins.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.logins.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.logins.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-addresses'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addresses.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addresses.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addresses.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-creditcards'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.creditcards.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.creditcards.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.creditcards.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-addons'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addons.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addons.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.addons.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-engine-prefs'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- FTL.Pattern([
- FTL.Placeable(FTL.SelectExpression(
- expression=FTL.CallExpression(
- callee=FTL.Function('PLATFORM')
- ),
- variants=[
- FTL.Variant(
- key=FTL.VariantName('windows'),
- default=False,
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.prefsWin.label'
- )
- ),
- FTL.Variant(
- key=FTL.VariantName('other'),
- default=True,
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.prefs.label'
- )
- )
- ]
- )),
- ]),
- ),
- FTL.Attribute(
- FTL.Identifier('tooltiptext'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.prefs.title'
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'engine.prefs.accesskey'
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-device-name-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'fxaSyncDeviceName.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-device-name-change'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'changeSyncDeviceName2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'changeSyncDeviceName2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-device-name-cancel'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'cancelChangeSyncDeviceName.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'cancelChangeSyncDeviceName.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-device-name-save'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'saveChangeSyncDeviceName.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'saveChangeSyncDeviceName.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sync-mobilepromo-single'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilepromo.singledevice',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-mobilepromo-multi'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilepromo.multidevice',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-tos-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'prefs.tosLink.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sync-fxa-privacy-notice'),
- value=COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'fxaPrivacyNotice.link.label',
- ),
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1446180_preferences_privacy.py
+++ /dev/null
@@ -1,1201 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE
-from fluent.migrate.transforms import REPLACE
-from fluent.migrate import COPY
-
-
-def migrate(ctx):
- """Bug 1446180 - Migrate Preferences::Privacy to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/branding/official/brand.ftl',
- 'browser/branding/official/brand.ftl',
- [
- FTL.Term(
- id=FTL.Identifier('-vendor-short-name'),
- value=COPY(
- 'browser/branding/official/brand.dtd',
- 'vendorShortName'
- )
- ),
- ]
- )
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('privacy-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.dtd',
- 'browserPrivacy.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('forms-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'formsAndPasswords.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('forms-exceptions'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'passwordExceptions.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'passwordExceptions.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('forms-saved-logins'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'savedLogins.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'savedLogins.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('forms-master-pw-use'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'useMasterPassword.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'useMasterPassword.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('forms-master-pw-change'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'changeMasterPassword.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'changeMasterPassword.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'history.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-description'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'rememberDescription1.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('history-dontremember-description'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'dontrememberDescription.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('history-private-browsing-permanent'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'privateBrowsingPermanent2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'privateBrowsingPermanent2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'rememberHistory2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'rememberHistory2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-search-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'rememberSearchForm.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'rememberSearchForm.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-clear-on-close-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- REPLACE(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearOnClose.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearOnClose.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-clear-on-close-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearOnCloseSettings.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearOnCloseSettings.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('history-clear-button'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearHistoryButton.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'clearHistoryButton.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'siteData1.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-learn-more'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'siteDataLearnMoreLink.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-accept-cookies-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptCookies4.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptCookies4.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-block-cookies-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'blockCookies.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'blockCookies.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-keep-until'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'keepUntil2.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'keepUntil2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-accept-third-party-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptThirdParty3.pre.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptThirdParty3.pre.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-accept-third-party-always-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptThirdParty.always.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-accept-third-party-visited-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptThirdParty.visited.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-accept-third-party-never-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'acceptThirdParty.never.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-clear'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'clearSiteData1.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'clearSiteData1.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'siteDataSettings1.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'siteDataSettings1.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('sitedata-cookies-exceptions'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'cookieExceptions.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'cookieExceptions.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'addressBar.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-suggest'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'addressBar.suggest.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-locbar-history-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.history2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.history2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-locbar-bookmarks-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.bookmarks.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.bookmarks.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-locbar-openpage-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.openpage.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'locbar.openpage.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('addressbar-suggestions-settings'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'suggestionSettings2.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionHeader2.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-mode-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtection3.radioGroupLabel',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-mode-always'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionAlways.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionAlways.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-mode-private'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionPrivate.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionPrivate.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-mode-never'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionNever.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionNever.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-pbm-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionPBM6.label',
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionPBM6.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-exceptions'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionExceptions.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionExceptions.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-change-block-list'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'changeBlockList2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'changeBlockList2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'permissions.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-location'),
- value=COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'locationPermissions.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-location-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'locationSettingsButton.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'locationSettingsButton.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-camera'),
- value=COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'cameraPermissions.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-camera-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'cameraSettingsButton.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'cameraSettingsButton.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-microphone'),
- value=COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'microphonePermissions.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-microphone-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'microphoneSettingsButton.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'microphoneSettingsButton.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-notification'),
- value=COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'notificationPermissions.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-notification-settings'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'notificationSettingsButton.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'notificationSettingsButton.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-notification-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'notificationPermissionsLearnMore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-notification-pause'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'pauseNotifications.label',
- {
- '%S': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'pauseNotifications.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-block-popups'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'blockPopups.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'blockPopups.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-block-popups-exceptions'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'popupExceptions.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'popupExceptions.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-addon-install-warning'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'warnOnAddonInstall2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'warnOnAddonInstall2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-addon-exceptions'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'addonExceptions.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'addonExceptions.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-a11y-privacy-checkbox'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'a11yPrivacy.checkbox.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'a11yPrivacy.checkbox.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-a11y-privacy-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'a11yPrivacy.learnmore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-header'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'dataCollection.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-description'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'dataCollectionDesc.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-privacy-notice'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'dataCollectionPrivacyNotice.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-health-report'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'enableHealthReport2.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name'),
- 'Mozilla': MESSAGE_REFERENCE('-vendor-short-name'),
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'enableHealthReport2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('collection-health-report-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'healthReportLearnMore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-health-report-disabled'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'healthReportingDisabled.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-browser-errors'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'collectBrowserErrors.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name'),
- 'Mozilla': MESSAGE_REFERENCE('-vendor-short-name'),
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'collectBrowserErrors.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('collection-browser-errors-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'collectBrowserErrorsLearnMore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('collection-backlogged-crash-reports'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'sendBackloggedCrashReports.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'sendBackloggedCrashReports.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('collection-backlogged-crash-reports-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'crashReporterLearnMore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('security-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'security.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('security-browsing-protection'),
- value=COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'browsingProtection.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('security-enable-safe-browsing'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'enableSafeBrowsing.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'enableSafeBrowsing.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('security-enable-safe-browsing-link'),
- value=COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'enableSafeBrowsingLearnMore.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('security-block-downloads'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'blockDownloads.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'blockDownloads.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('security-block-uncommon-software'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'blockUncommonAndUnwanted.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/security.dtd',
- 'blockUncommonAndUnwanted.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('certs-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'certificateTab.label',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('certs-personal-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'certPersonal2.description',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('certs-select-auto-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'selectCerts.auto',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'selectCerts.auto.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('certs-select-ask-option'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'selectCerts.ask',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'selectCerts.ask.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('certs-enable-ocsp'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'enableOCSP.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'enableOCSP.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('certs-view'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'viewCerts2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'viewCerts2.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('certs-devices'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'viewSecurityDevices2.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'viewSecurityDevices2.accesskey',
- ),
- ),
- ],
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_applicationManager.py
+++ /dev/null
@@ -1,116 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import EXTERNAL_ARGUMENT
-from fluent.migrate import COPY, REPLACE
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::ApplicationManager to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/applicationManager.ftl',
- 'browser/browser/preferences/applicationManager.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('app-manager-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/applicationManager.dtd',
- 'appManager.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- COPY(
- 'browser/chrome/browser/preferences/applicationManager.dtd',
- 'appManager.style',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-remove'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/applicationManager.dtd',
- 'remove.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/applicationManager.dtd',
- 'remove.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-handle-webfeeds'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'descriptionApplications',
- {
- '%S': COPY(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'handleWebFeeds',
- )
- }
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-handle-protocol'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'descriptionApplications',
- {
- '%S': REPLACE(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'handleProtocol',
- {
- '%S': EXTERNAL_ARGUMENT('type')
- }
- )
- }
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-handle-file'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'descriptionApplications',
- {
- '%S': REPLACE(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'handleFile',
- {
- '%S': EXTERNAL_ARGUMENT('type')
- }
- )
- }
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-web-app-info'),
- value=COPY(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'descriptionWebApp',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('app-manager-local-app-info'),
- value=COPY(
- 'browser/chrome/browser/preferences/applicationManager.properties',
- 'descriptionLocalApp',
- ),
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_blocklists.py
+++ /dev/null
@@ -1,113 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE
-from fluent.migrate import COPY, CONCAT, REPLACE
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Blocklists to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/blocklists.ftl',
- 'browser/browser/preferences/blocklists.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('blocklist-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'window.title',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'window.width'
- )
- )
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('blocklist-desc'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'blockliststext',
- {
- 'Firefox': MESSAGE_REFERENCE('-brand-short-name')
- },
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('blocklist-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'windowClose.key',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('blocklist-treehead-list'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'treehead.list.label',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('blocklist-button-cancel'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'button.cancel.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'button.cancel.accesskey',
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('blocklist-button-ok'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'button.ok.label',
- ),
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/blocklists.dtd',
- 'button.ok.accesskey',
- ),
- ),
- ],
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_clearSiteData.py
+++ /dev/null
@@ -1,115 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE
-from fluent.migrate import COPY, CONCAT, REPLACE
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::ClearSiteData to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/clearSiteData.ftl',
- 'browser/browser/preferences/clearSiteData.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('clear-site-data-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'window.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'window.width'
- )
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-description'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'window.description',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-cookies-info'),
- value=COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'clearSiteData.description'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-cache-info'),
- value=COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'clearCache.description'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-cancel'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'button.cancel.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'button.cancel.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('clear-site-data-clear'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'button.clear.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/clearSiteData.dtd',
- 'button.clear.accesskey'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_colors.py
+++ /dev/null
@@ -1,248 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Colors to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/colors.ftl',
- 'browser/browser/preferences/colors.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('colors-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'colorsDialog.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- FTL.Pattern(
- elements=[
- FTL.Placeable(
- expression=FTL.SelectExpression(
- expression=FTL.CallExpression(
- callee=FTL.Function('PLATFORM')
- ),
- variants=[
- FTL.Variant(
- key=FTL.VariantName('macos'),
- default=False,
- value=CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'window.macWidth'
- )
- )
- ),
- FTL.Variant(
- key=FTL.VariantName('other'),
- default=True,
- value=CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'window.width'
- )
- )
- )
- ]
- )
- )
- ]
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'toolkit/chrome/global/preferences.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-page-override'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'overrideDefaultPageColors2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'overrideDefaultPageColors2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-page-override-option-always'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'overrideDefaultPageColors.always.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-page-override-option-auto'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'overrideDefaultPageColors.auto.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-page-override-option-never'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'overrideDefaultPageColors.never.label'
- ),
- ),
- ],
- ),
- FTL.Message(
- id=FTL.Identifier('colors-text-and-background'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'color'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('colors-text-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'textColor2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'textColor2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-background'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'backgroundColor2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'backgroundColor2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-use-system'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'useSystemColors.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'useSystemColors.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-underline-links'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'underlineLinks.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'underlineLinks.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-links-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'links'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('colors-unvisited-links'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'linkColor2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'linkColor2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('colors-visited-links'),
- value=COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'visitedLinkColor2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/colors.dtd',
- 'visitedLinkColor2.accesskey'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_connection.py
+++ /dev/null
@@ -1,466 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Connection to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/connection.ftl',
- 'browser/browser/preferences/connection.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('connection-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'connectionsDialog.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- FTL.Pattern(
- elements=[
- FTL.Placeable(
- expression=FTL.SelectExpression(
- expression=FTL.CallExpression(
- callee=FTL.Function('PLATFORM')
- ),
- variants=[
- FTL.Variant(
- key=FTL.VariantName('macos'),
- default=False,
- value=CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'window.macWidth2'
- )
- )
- ),
- FTL.Variant(
- key=FTL.VariantName('other'),
- default=True,
- value=CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'window.width2'
- )
- )
- )
- ]
- )
- )
- ]
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'toolkit/chrome/global/preferences.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-disable-extension'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/main.dtd',
- 'disableExtension.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-configure'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'proxyTitle.label2'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-option-no'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'noProxyTypeRadio.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'noProxyTypeRadio.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-option-system'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'systemTypeRadio.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'systemTypeRadio.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-option-auto'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'WPADTypeRadio.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'WPADTypeRadio.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-option-manual'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'manualTypeRadio2.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'manualTypeRadio2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-http'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'http2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'http2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-http-port'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'port2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'HTTPport.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-http-share'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'shareproxy.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'shareproxy.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-ssl'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'ssl2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'ssl2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-ssl-port'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'port2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'SSLport.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-ftp'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'ftp2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'ftp2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-ftp-port'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'port2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'FTPport.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-socks'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-socks-port'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'port2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'SOCKSport.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-socks4'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks4.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks4.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-socks5'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks5.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socks5.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-noproxy'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'noproxy2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'noproxy2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-noproxy-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'noproxyExplain.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-autotype'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'autoTypeRadio2.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'autoTypeRadio2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-reload'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'reload.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'reload.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-autologin'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'autologinproxy.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'autologinproxy.accesskey'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('tooltip'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'autologinproxy.tooltip'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('connection-proxy-socks-remote-dns'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socksRemoteDNS.label2'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/connection.dtd',
- 'socksRemoteDNS.accesskey'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_fonts.py
+++ /dev/null
@@ -1,796 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Fonts to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/fonts.ftl',
- 'browser/browser/preferences/fonts.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('fonts-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'fontsDialog.title'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-window-close'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'toolkit/chrome/global/preferences.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'fonts.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'fonts.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-arabic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.arabic'
- )
- )
- ]
- ),
-
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-armenian'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.armenian'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-bengali'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.bengali'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-simpl-chinese'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.simpl-chinese'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-trad-chinese-hk'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.trad-chinese-hk'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-trad-chinese'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.trad-chinese'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-cyrillic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.cyrillic'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-devanagari'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.devanagari'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-ethiopic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.ethiopic'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-georgian'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.georgian'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-el'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.el'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-gujarati'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.gujarati'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-gurmukhi'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.gurmukhi'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-japanese'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.japanese'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-hebrew'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.hebrew'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-kannada'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.kannada'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-khmer'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.khmer'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-korean'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.korean'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-latin'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.latin'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-malayalam'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.malayalam'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-math'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.math'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-odia'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.odia'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-sinhala'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.sinhala'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-tamil'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.tamil'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-telugu'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.telugu'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-thai'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.thai'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-tibetan'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.tibetan'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-canadian'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.canadian'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-langgroup-other'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'font.langGroup.other'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-proportional-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'proportional2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'proportional2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-default-serif'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'useDefaultFontSerif.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-default-sans-serif'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'useDefaultFontSansSerif.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-proportional-size'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'size2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'sizeProportional.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-serif'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'serif2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'serif2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-sans-serif'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'sans-serif2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'sans-serif2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-monospace'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'monospace2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'monospace2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-monospace-size'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'size2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'sizeMonospace.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-minsize'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'minSize2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'minSize2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-minsize-none'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'minSize.none'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-allow-own'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'allowPagesToUseOwn.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'allowPagesToUseOwn.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback2.grouplabel'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback2.desc'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-label'),
- value=COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback3.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback3.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-auto'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.auto'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-arabic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.arabic'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-baltic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.baltic'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-ceiso'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.ceiso'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-cewindows'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.cewindows'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-simplified'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.simplified'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-traditional'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.traditional'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-cyrillic'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.cyrillic'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-greek'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.greek'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-hebrew'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.hebrew'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-japanese'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.japanese'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-korean'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.korean'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-thai'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.thai'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-turkish'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.turkish'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-vietnamese'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.vietnamese'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('fonts-languages-fallback-name-other'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/fonts.dtd',
- 'languages.customize.Fallback.other'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_languages.py
+++ /dev/null
@@ -1,159 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Languages to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/languages.ftl',
- 'browser/browser/preferences/languages.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('languages-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.Header'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'window.width'
- )
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'toolkit/chrome/global/preferences.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-description'),
- value=COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize2.description'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-spoof-english'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.spoofEnglish'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-moveup'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.moveUp.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.moveUp.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-movedown'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.moveDown.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.moveDown.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-remove'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.deleteButton.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.deleteButton.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-select-language'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('placeholder'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.selectLanguage.label'
- )
- ),
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('languages-customize-add'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.addButton.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/languages.dtd',
- 'languages.customize.addButton.accesskey'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_permissions.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Permissions to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/permissions.ftl',
- 'browser/browser/preferences/permissions.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('permissions-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'window.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'window.width'
- )
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-address'),
- value=COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'address2.label'
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'address2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-block'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'block.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'block.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-session'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'session.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'session.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-allow'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'allow.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'allow.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-site-name'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'treehead.sitename2.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-status'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'treehead.status.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-remove'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'removepermission2.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'removepermission2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-remove-all'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'removeallpermissions2.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'removeallpermissions2.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-button-cancel'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'button.cancel.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'button.cancel.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-button-ok'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'button.ok.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'button.ok.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('permissions-searchbox'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('placeholder'),
- COPY(
- 'browser/chrome/browser/preferences/permissions.dtd',
- 'searchbox.placeholder'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_selectbookmark.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Select Bookmark to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/selectBookmark.ftl',
- 'browser/browser/preferences/selectBookmark.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('select-bookmark-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/selectBookmark.dtd',
- 'selectBookmark.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: 32em;')
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('select-bookmark-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/selectBookmark.dtd',
- 'selectBookmark.label'
- )
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_sitedata.py
+++ /dev/null
@@ -1,187 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Site Data to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/siteDataSettings.ftl',
- 'browser/browser/preferences/siteDataSettings.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('site-data-settings-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'window2.title'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-search-textbox'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('placeholder'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'searchTextboxPlaceHolder'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'searchTextboxPlaceHolder.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-column-host'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'hostCol.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-column-cookies'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'cookiesCol.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-column-storage'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'usageCol.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-column-last-used'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'lastAccessedCol.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-remove-selected'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'removeSelected.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'removeSelected.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-button-cancel'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'cancel.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'cancel.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-button-save'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'save.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'save.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-removing-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- CONCAT(
- MESSAGE_REFERENCE('site-data-removing-header'),
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-removing-header'),
- value=COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'removingDialog1.title'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-removing-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'removingSelected1.description'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('site-data-removing-table'),
- value=COPY(
- 'browser/chrome/browser/preferences/siteDataSettings.dtd',
- 'siteTree3.label'
- )
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1451992_preferences_translation.py
+++ /dev/null
@@ -1,185 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate import COPY, CONCAT
-
-def migrate(ctx):
- """Bug 1451992 - Migrate Preferences::Subdialogs::Translation to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/translation.ftl',
- 'browser/browser/preferences/translation.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('translation-window'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('title'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'window.title'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('style'),
- CONCAT(
- FTL.TextElement('width: '),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'window.width'
- )
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-close-key'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('key'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'windowClose.key'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-languages-disabled-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'noTranslationForLanguages2.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('translation-languages-column'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'treehead.languageName.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-languages-button-remove'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeLanguage.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeLanguage.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-languages-button-remove-all'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeAllLanguages.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeAllLanguages.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-sites-disabled-desc'),
- value=COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'noTranslationForSites2.label'
- )
- ),
- FTL.Message(
- id=FTL.Identifier('translation-sites-column'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'treehead.siteName2.label'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-sites-button-remove'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeSite.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeSite.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-sites-button-remove-all'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeAllSites.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'removeAllSites.accesskey'
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('translation-button-close'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'button.close.label'
- )
- ),
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/translation.dtd',
- 'button.close.accesskey'
- )
- )
- ]
- )
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1453480_preferences_dom2_resources.py
+++ /dev/null
@@ -1,130 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import MESSAGE_REFERENCE, EXTERNAL_ARGUMENT
-from fluent.migrate import COPY, CONCAT, REPLACE
-
-def migrate(ctx):
- """Bug 1453480 - Migrate Fluent resources to use DOM Overlays, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('search-results-empty-message'),
- value=FTL.Pattern(
- elements=[
- FTL.Placeable(
- expression=FTL.SelectExpression(
- expression=FTL.CallExpression(
- callee=FTL.Function('PLATFORM')
- ),
- variants=[
- FTL.Variant(
- key=FTL.VariantName('windows'),
- default=False,
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchResults.sorryMessageWin',
- {
- '%S': FTL.TextElement('<span data-l10n-name="query"></span>')
- }
- )
- ),
- FTL.Variant(
- key=FTL.VariantName('other'),
- default=True,
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchResults.sorryMessageUnix',
- {
- '%S': FTL.TextElement('<span data-l10n-name="query"></span>')
- }
- )
- )
- ]
- )
- )
- ]
- )
- ),
- FTL.Message(
- id=FTL.Identifier('search-results-help-link'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchResults.needHelp3',
- {
- '%S': CONCAT(
- FTL.TextElement('<a data-l10n-name="url">'),
- REPLACE(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'searchResults.needHelpSupportLink',
- {
- '%S': MESSAGE_REFERENCE('-brand-short-name'),
- }
- ),
- FTL.TextElement('</a>')
- )
- }
- )
- ),
- FTL.Message(
- id=FTL.Identifier('update-application-version'),
- value=CONCAT(
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'updateApplication.version.pre'
- ),
- EXTERNAL_ARGUMENT('version'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'updateApplication.version.post'
- ),
- FTL.TextElement(' <a data-l10n-name="learn-more">'),
- COPY(
- 'browser/chrome/browser/aboutDialog.dtd',
- 'releaseNotes.link'
- ),
- FTL.TextElement('</a>')
- )
- ),
- FTL.Message(
- id=FTL.Identifier('performance-limit-content-process-blocked-desc'),
- value=CONCAT(
- REPLACE(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'limitContentProcessOption.disabledDescription',
- {
- '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name')
- }
- ),
- FTL.TextElement(' <a data-l10n-name="learn-more">'),
- COPY(
- 'browser/chrome/browser/preferences/advanced.dtd',
- 'limitContentProcessOption.disabledDescriptionLink'
- ),
- FTL.TextElement('</a>')
- )
- ),
- FTL.Message(
- id=FTL.Identifier('tracking-desc'),
- value=CONCAT(
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtection3.description'
- ),
- FTL.TextElement(' <a data-l10n-name="learn-more">'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'trackingProtectionLearnMore2.label'
- ),
- FTL.TextElement('</a>')
- )
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1453540_preferences_remaining_dtd.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.transforms import REPLACE
-from fluent.migrate.helpers import MESSAGE_REFERENCE
-from fluent.migrate import COPY, CONCAT
-
-
-# Custom extension of the CONCAT migration tailored to concat
-# two strings separated by a placeable.
-class CONCAT_BEFORE_AFTER(CONCAT):
- def __call__(self, ctx):
- assert len(self.elements) == 3
- pattern_before, middle, pattern_after = self.elements
- elem_before = pattern_before.elements[0]
- elem_after = pattern_after.elements[0]
-
- if isinstance(elem_before, FTL.TextElement) and \
- len(elem_before.value) > 0 and \
- elem_before.value[-1] != " ":
- elem_before.value += " "
- if isinstance(elem_after, FTL.TextElement) and \
- len(elem_after.value) > 0 and \
- elem_after.value[0] != " ":
- elem_after.value = " " + elem_after.value
- return super(CONCAT_BEFORE_AFTER, self).__call__(ctx)
-
-def migrate(ctx):
- """Bug 1453540 - Migrate remaining DTDs in Preferences to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('translate-attribution'),
- value=CONCAT_BEFORE_AFTER(
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'translation.options.attribution.beforeLogo',
- ),
- FTL.TextElement('<img data-l10n-name="logo"/>'),
- COPY(
- 'browser/chrome/browser/preferences/content.dtd',
- 'translation.options.attribution.afterLogo',
- ),
- )
- ),
- FTL.Message(
- id=FTL.Identifier('sync-mobile-promo'),
- value=CONCAT(
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilePromo3.start',
- ),
- FTL.TextElement('<img data-l10n-name="android-icon"/> <a data-l10n-name="android-link">'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilePromo3.androidLink',
- ),
- FTL.TextElement('</a>'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilePromo3.iOSBefore',
- ),
- FTL.TextElement('<img data-l10n-name="ios-icon"/> <a data-l10n-name="ios-link">'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilePromo3.iOSLink',
- ),
- FTL.TextElement('</a>'),
- COPY(
- 'browser/chrome/browser/preferences/sync.dtd',
- 'mobilePromo3.end',
- ),
- )
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-label'),
- value=REPLACE(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'historyHeader2.pre.label',
- {
- '&brandShortName;': MESSAGE_REFERENCE(
- '-brand-short-name'
- )
- }
- ),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('accesskey'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'historyHeader2.pre.accesskey',
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-option-all'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'historyHeader.remember.label',
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-option-never'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'historyHeader.dontremember.label',
- )
- )
- ]
- ),
- FTL.Message(
- id=FTL.Identifier('history-remember-option-custom'),
- attributes=[
- FTL.Attribute(
- FTL.Identifier('label'),
- COPY(
- 'browser/chrome/browser/preferences/privacy.dtd',
- 'historyHeader.custom.label',
- )
- )
- ]
- ),
- ]
- )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1453800_container_removal.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import EXTERNAL_ARGUMENT
-from fluent.migrate import COPY
-from fluent.migrate.transforms import PLURALS, REPLACE_IN_TEXT
-
-
-def migrate(ctx):
- """Bug 1453800 - Migrate Container removal strings to Fluent, part {index}."""
-
- ctx.add_transforms(
- 'browser/browser/preferences/preferences.ftl',
- 'browser/browser/preferences/preferences.ftl',
- [
- FTL.Message(
- id=FTL.Identifier('containers-remove-alert-title'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'removeContainerAlertTitle',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('containers-remove-alert-msg'),
- value=PLURALS(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'removeContainerMsg',
- EXTERNAL_ARGUMENT('count'),
- lambda text: REPLACE_IN_TEXT(
- text,
- {
- '#S': EXTERNAL_ARGUMENT('count')
- }
- )
- )
- ),
- FTL.Message(
- id=FTL.Identifier('containers-remove-ok-button'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'removeContainerOkButton',
- ),
- ),
- FTL.Message(
- id=FTL.Identifier('containers-remove-cancel-button'),
- value=COPY(
- 'browser/chrome/browser/preferences/preferences.properties',
- 'removeContainerButton2',
- ),
- ),
- ]
- )