From 425e2db10a07fb7eb3c5dad95b96b41ba65a1e83 Mon Sep 17 00:00:00 2001 From: Lifan Zeng lifanfzeng Date: Thu, 20 Feb 2020 14:36:15 +0000 Subject: [PATCH] Bug 1608199 - Port devtools/client/styleeditor.dtd to Fluent, r=fluent-reviewers,flod,Gijs,jdescottes Differential Revision: https://phabricator.services.mozilla.com/D59607 --HG-- extra : moz-landing-system : lando --- devtools/client/locales/en-US/styleeditor.dtd | 54 --------------- devtools/client/locales/en-US/styleeditor.ftl | 27 ++++++++ devtools/client/styleeditor/index.xhtml | 41 ++++++------ .../bug_1608199_styleeditor.py | 66 +++++++++++++++++++ 4 files changed, 112 insertions(+), 76 deletions(-) delete mode 100644 devtools/client/locales/en-US/styleeditor.dtd create mode 100644 devtools/client/locales/en-US/styleeditor.ftl create mode 100644 python/l10n/fluent_migrations/bug_1608199_styleeditor.py diff --git a/devtools/client/locales/en-US/styleeditor.dtd b/devtools/client/locales/en-US/styleeditor.dtd deleted file mode 100644 index c0bd570db1e9..000000000000 --- a/devtools/client/locales/en-US/styleeditor.dtd +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/devtools/client/locales/en-US/styleeditor.ftl b/devtools/client/locales/en-US/styleeditor.ftl new file mode 100644 index 000000000000..f2102e8d2cb1 --- /dev/null +++ b/devtools/client/locales/en-US/styleeditor.ftl @@ -0,0 +1,27 @@ +# 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/. + +styleeditor-new-button = + .tooltiptext = Create and append a new style sheet to the document + .accesskey = N +styleeditor-import-button = + .tooltiptext = Import and append an existing style sheet to the document + .accesskey = I +styleeditor-visibility-toggle = + .tooltiptext = Toggle style sheet visibility + .accesskey = S +styleeditor-save-button = Save + .tooltiptext = Save this style sheet to a file + .accesskey = S +styleeditor-options-button = + .tooltiptext = Style Editor options +styleeditor-media-rules = Media Queries +styleeditor-editor-textbox = + .data-placeholder = Type CSS here. +styleeditor-no-stylesheet = This page has no style sheet. +styleeditor-no-stylesheet-tip = Perhaps you’d like to append a new style sheet? +styleeditor-open-link-new-tab = + .label = Open Link in New Tab +styleeditor-copy-url = + .label = Copy URL diff --git a/devtools/client/styleeditor/index.xhtml b/devtools/client/styleeditor/index.xhtml index ac1ae76f480f..1df57fa1a185 100644 --- a/devtools/client/styleeditor/index.xhtml +++ b/devtools/client/styleeditor/index.xhtml @@ -3,8 +3,6 @@ - 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/. --> - %styleEditorDTD; %editMenuStrings; @@ -25,6 +23,7 @@ +