mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1763312 - [devtools] Remove sourceeditor.dtd. r=jdescottes,flod.
It was only used in the style editor, so we migrate the existing string to styleeditor.ftl. Differential Revision: https://phabricator.services.mozilla.com/D143011
This commit is contained in:
parent
e6dfcbd9ab
commit
abb6e53e32
@ -1,17 +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/. -->
|
||||
|
||||
<!-- LOCALIZATION NOTE : FILE This file contains the Source Editor component
|
||||
- strings. The source editor component is used within the Style Editor. -->
|
||||
|
||||
<!-- LOCALIZATION NOTE : FILE Do not translate commandkeys -->
|
||||
|
||||
<!-- LOCALIZATION NOTE : FILE The correct localization of this file might be to
|
||||
- keep it in English, or another language commonly spoken among web developers.
|
||||
- You want to make that choice consistent across the developer tools.
|
||||
- A good criteria is the language in which you'd find the best
|
||||
- documentation on web development on the web. -->
|
||||
|
||||
<!ENTITY gotoLineCmd.label "Jump to Line…">
|
||||
<!ENTITY gotoLineCmd.accesskey "J">
|
@ -25,3 +25,6 @@ styleeditor-open-link-new-tab =
|
||||
.label = Open Link in New Tab
|
||||
styleeditor-copy-url =
|
||||
.label = Copy URL
|
||||
styleeditor-go-to-line =
|
||||
.label = Jump to Line…
|
||||
.accesskey = J
|
||||
|
@ -5,8 +5,6 @@
|
||||
<!DOCTYPE window [
|
||||
<!ENTITY % editMenuStrings SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
|
||||
%editMenuStrings;
|
||||
<!ENTITY % sourceEditorStrings SYSTEM "chrome://devtools/locale/sourceeditor.dtd">
|
||||
%sourceEditorStrings;
|
||||
]>
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
@ -69,9 +67,7 @@
|
||||
accesskey="&findAgainCmd.accesskey;" command="cmd_findAgain"/>
|
||||
<menuseparator/>
|
||||
<menuitem id="se-menu-gotoLine"
|
||||
label="&gotoLineCmd.label;"
|
||||
accesskey="&gotoLineCmd.accesskey;"
|
||||
key="key_gotoLine"
|
||||
data-l10n-id="styleeditor-go-to-line"
|
||||
command="cmd_gotoLine"/>
|
||||
</menupopup>
|
||||
<menupopup id="sidebar-context" incontentshell="false">
|
||||
|
@ -0,0 +1,24 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from fluent.migrate.transforms import COPY
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1763312 - Move sourceeditor.dtd to fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
"devtools/client/styleeditor.ftl",
|
||||
"devtools/client/styleeditor.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
styleeditor-go-to-line =
|
||||
.label = { COPY(from_path, "gotoLineCmd.label") }
|
||||
.accesskey = { COPY(from_path, "gotoLineCmd.accesskey") }
|
||||
""",
|
||||
from_path="devtools/client/sourceeditor.dtd",
|
||||
),
|
||||
)
|
Loading…
Reference in New Issue
Block a user