mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1731353 - Migrate commonDialog strings from DTD to FTL. r=fluent-reviewers,mossop,flod
This migrates only the strings used by commonDialog.xhtml Differential Revision: https://phabricator.services.mozilla.com/D154422
This commit is contained in:
parent
a5b61e18d6
commit
a23d23117d
30
python/l10n/fluent_migrations/bug_1731353_commonDialog.py
Normal file
30
python/l10n/fluent_migrations/bug_1731353_commonDialog.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 1731353 - Migrate commonDialog strings from DTD to FTL, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"toolkit/toolkit/global/commonDialog.ftl",
|
||||
"toolkit/toolkit/global/commonDialog.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
|
||||
common-dialog-copy-cmd =
|
||||
.label = { COPY(path1, "copyCmd.label") }
|
||||
.accesskey = { COPY(path1, "copyCmd.accesskey") }
|
||||
common-dialog-select-all-cmd =
|
||||
.label = { COPY(path1, "selectAllCmd.label") }
|
||||
.accesskey = { COPY(path1, "selectAllCmd.accesskey") }
|
||||
""",
|
||||
path1="toolkit/chrome/global/commonDialog.dtd",
|
||||
),
|
||||
)
|
@ -8,7 +8,7 @@
|
||||
<?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/commonDialog.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://global/locale/commonDialog.dtd">
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window id="commonDialogWindow"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
@ -45,13 +45,11 @@
|
||||
<menupopup id="contentAreaContextMenu"
|
||||
onpopupshowing="goUpdateCommand('cmd_copy')">
|
||||
<menuitem id="context-copy"
|
||||
label="©Cmd.label;"
|
||||
accesskey="©Cmd.accesskey;"
|
||||
data-l10n-id="common-dialog-copy-cmd"
|
||||
command="cmd_copy"
|
||||
disabled="true"/>
|
||||
<menuitem id="context-selectall"
|
||||
label="&selectAllCmd.label;"
|
||||
accesskey="&selectAllCmd.accesskey;"
|
||||
data-l10n-id="common-dialog-select-all-cmd"
|
||||
command="cmd_selectAll"/>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
|
@ -5,7 +5,7 @@
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<!DOCTYPE window SYSTEM "chrome://global/locale/commonDialog.dtd">
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<dialog>
|
||||
|
@ -4,7 +4,3 @@
|
||||
|
||||
<!ENTITY editfield0.label "User Name:">
|
||||
<!ENTITY editfield1.label "Password:">
|
||||
<!ENTITY copyCmd.label "Copy">
|
||||
<!ENTITY copyCmd.accesskey "C">
|
||||
<!ENTITY selectAllCmd.label "Select All">
|
||||
<!ENTITY selectAllCmd.accesskey "A">
|
||||
|
@ -11,3 +11,10 @@ common-dialog-username =
|
||||
.value = Username
|
||||
common-dialog-password =
|
||||
.value = Password
|
||||
|
||||
common-dialog-copy-cmd =
|
||||
.label = Copy
|
||||
.accesskey = C
|
||||
common-dialog-select-all-cmd =
|
||||
.label = Select All
|
||||
.accesskey = A
|
||||
|
Loading…
Reference in New Issue
Block a user