mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset 32f45689f033 (bug 1445084) for frequently failing browser-chrome's browser_search_within_preferences_1.js (bug 1446186), remove obsolete file. a=backout
This commit is contained in:
parent
e5572f6407
commit
cbbe5a1135
@ -1,128 +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 1445084 - Migrate search results pane of Preferences to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/preferences/preferences.ftl',
|
||||
'browser/locales/en-US/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.Identifier('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'
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier('search-results-sorry-message'),
|
||||
value=FTL.Pattern(
|
||||
elements=[
|
||||
FTL.Placeable(
|
||||
expression=FTL.SelectExpression(
|
||||
expression=FTL.CallExpression(
|
||||
callee=FTL.Identifier('PLATFORM')
|
||||
),
|
||||
variants=[
|
||||
FTL.Variant(
|
||||
key=FTL.VariantName('windows'),
|
||||
default=False,
|
||||
value=REPLACE(
|
||||
'browser/chrome/browser/preferences/preferences.properties',
|
||||
'searchResults.sorryMessageWin',
|
||||
{
|
||||
'%S': EXTERNAL_ARGUMENT('query')
|
||||
},
|
||||
)
|
||||
),
|
||||
FTL.Variant(
|
||||
key=FTL.VariantName('other'),
|
||||
default=True,
|
||||
value=REPLACE(
|
||||
'browser/chrome/browser/preferences/preferences.properties',
|
||||
'searchResults.sorryMessageUnix',
|
||||
{
|
||||
'%S': EXTERNAL_ARGUMENT('query')
|
||||
},
|
||||
)
|
||||
)
|
||||
]
|
||||
)
|
||||
)
|
||||
]
|
||||
),
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier('search-results-need-help'),
|
||||
value=REPLACE(
|
||||
'browser/chrome/browser/preferences/preferences.properties',
|
||||
'searchResults.needHelp3',
|
||||
{
|
||||
'%S': CONCAT(
|
||||
FTL.TextElement('<a>'),
|
||||
REPLACE(
|
||||
'browser/chrome/browser/preferences/preferences.properties',
|
||||
'searchResults.needHelpSupportLink',
|
||||
{
|
||||
'%S': MESSAGE_REFERENCE('-brand-short-name'),
|
||||
},
|
||||
),
|
||||
FTL.TextElement('</a>'),
|
||||
),
|
||||
},
|
||||
),
|
||||
),
|
||||
]
|
||||
)
|
Loading…
Reference in New Issue
Block a user