mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 05:45:33 +00:00
Bug 1786055 - Migrate styleeditor DTD localization to Fluent. r=nchevobbe,fluent-reviewers,flod
After the preceding change, the editMenuOverlay strings are only used by the styleeditor. Therefore it makes sense to migrate them here specifically to its localization file. Differential Revision: https://phabricator.services.mozilla.com/D155449
This commit is contained in:
parent
7fc8beef67
commit
fc7b79586e
@ -27,6 +27,12 @@ styleeditor-open-link-new-tab =
|
||||
.label = Open Link in New Tab
|
||||
styleeditor-copy-url =
|
||||
.label = Copy URL
|
||||
styleeditor-find =
|
||||
.label = Find
|
||||
.accesskey = F
|
||||
styleeditor-find-again =
|
||||
.label = Find Again
|
||||
.accesskey = g
|
||||
styleeditor-go-to-line =
|
||||
.label = Jump to Line…
|
||||
.accesskey = J
|
||||
|
@ -2,10 +2,7 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<!DOCTYPE window [
|
||||
<!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
|
||||
%editMenuStrings;
|
||||
]>
|
||||
<!DOCTYPE window>
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://devtools/content/shared/widgets/widgets.css" type="text/css"?>
|
||||
@ -61,9 +58,9 @@
|
||||
data-l10n-id="text-action-select-all" command="cmd_selectAll"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="se-menu-find"
|
||||
label="&findCmd.label;" accesskey="&findCmd.accesskey;" command="cmd_find"/>
|
||||
<menuitem id="cMenu_findAgain" label="&findAgainCmd.label;"
|
||||
accesskey="&findAgainCmd.accesskey;" command="cmd_findAgain"/>
|
||||
data-l10n-id="styleeditor-find" command="cmd_find"/>
|
||||
<menuitem id="cMenu_findAgain"
|
||||
data-l10n-id="styleeditor-find-again" command="cmd_findAgain"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="se-menu-gotoLine"
|
||||
data-l10n-id="styleeditor-go-to-line"
|
||||
|
30
python/l10n/fluent_migrations/bug_1786055_migration.py
Normal file
30
python/l10n/fluent_migrations/bug_1786055_migration.py
Normal file
@ -0,0 +1,30 @@
|
||||
# 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 transforms_from
|
||||
from fluent.migrate.helpers import COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1786055 - Migrate styleeditor from DTD to Fluent, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"devtools/client/styleeditor.ftl",
|
||||
"devtools/client/styleeditor.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
|
||||
styleeditor-find =
|
||||
.label = { COPY(path1, "findCmd.label") }
|
||||
.accesskey = { COPY(path1, "findCmd.accesskey") }
|
||||
styleeditor-find-again =
|
||||
.label = { COPY(path1, "findAgainCmd.label") }
|
||||
.accesskey = { COPY(path1, "findAgainCmd.accesskey") }
|
||||
""",
|
||||
path1="toolkit/chrome/global/editMenuOverlay.dtd",
|
||||
),
|
||||
)
|
@ -1,11 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<!ENTITY findCmd.label "Find">
|
||||
<!ENTITY findCmd.key "F">
|
||||
<!ENTITY findCmd.accesskey "F">
|
||||
<!ENTITY findAgainCmd.label "Find Again">
|
||||
<!ENTITY findAgainCmd.key "G">
|
||||
<!ENTITY findAgainCmd.key2 "VK_F3">
|
||||
<!ENTITY findAgainCmd.accesskey "g">
|
@ -16,9 +16,6 @@
|
||||
locale/@AB_CD@/global/browser.properties (%chrome/global/browser.properties)
|
||||
locale/@AB_CD@/global/commonDialogs.properties (%chrome/global/commonDialogs.properties)
|
||||
locale/@AB_CD@/global/contentAreaCommands.properties (%chrome/global/contentAreaCommands.properties)
|
||||
#ifndef MOZ_FENNEC
|
||||
locale/@AB_CD@/global/editMenuOverlay.dtd (%chrome/global/editMenuOverlay.dtd)
|
||||
#endif
|
||||
locale/@AB_CD@/global/extensions.properties (%chrome/global/extensions.properties)
|
||||
locale/@AB_CD@/global/fallbackMenubar.properties (%chrome/global/fallbackMenubar.properties)
|
||||
locale/@AB_CD@/global/filepicker.properties (%chrome/global/filepicker.properties)
|
||||
|
Loading…
x
Reference in New Issue
Block a user