Bug 1294186 - Migrate inspector.xul from .dtd to .properties
authorAxel Hecht <axel@pike.org>
Mon, 14 Nov 2016 14:07:47 +0100
changeset 1538 3d431c5456f96a89a835522e956fa00d062d236b
parent 1537 a5fbc48257d4d767a33b63832eebf055c6a0e16e
child 1539 b0174640570db8f893b5bdc0c9ad5b1e7d927c85
push id218
push useraxel@mozilla.com
push dateMon, 14 Nov 2016 13:07:55 +0000
bugs1294186
Bug 1294186 - Migrate inspector.xul from .dtd to .properties
devtools/client/boxmodel.properties
devtools/client/font-inspector.dtd
devtools/client/font-inspector.properties
devtools/client/inspector.dtd
devtools/client/inspector.properties
devtools/client/layoutview.dtd
devtools/client/styleinspector.dtd
new file mode 100644
--- /dev/null
+++ b/devtools/client/boxmodel.properties
@@ -0,0 +1,28 @@
+# 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 Layout View strings.
+# The Layout View is a panel displayed in the computed view tab of the Inspector sidebar.
+
+# 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.
+
+# LOCALIZATION NOTE (boxmodel.margin) This refers to the margin in the box model and
+# might be displayed as a label or as a tooltip.
+boxmodel.margin=marxe
+
+# LOCALIZATION NOTE (boxmodel.padding) This refers to the padding in the box model and
+# might be displayed as a label or as a tooltip.
+boxmodel.padding=recheo
+
+# LOCALIZATION NOTE (boxmodel.border) This refers to the border in the box model and
+# might be displayed as a label or as a tooltip.
+boxmodel.border=bordo
+
+# LOCALIZATION NOTE (boxmodel.content) This refers to the content in the box model and
+# might be displayed as a label or as a tooltip.
+boxmodel.content=contido
deleted file mode 100644
--- a/devtools/client/font-inspector.dtd
+++ /dev/null
@@ -1,16 +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 Font Inspector strings.
-  - The Font Inspector is the panel accessible in the Inspector sidebar. -->
-
-<!ENTITY title "Tipos de letra">
-<!ENTITY showAllFonts "Amosar todos os tipos de letra usados nesta páxina">
-<!ENTITY usedAs "Usada como: ">
-<!ENTITY system "sistema">
-<!ENTITY remote "remoto">
-
-<!-- LOCALIZATION NOTE (previewHint): This is the label shown as the
-     placeholder in font inspector preview text box. -->
-<!ENTITY previewHint "Texto da previsualización">
new file mode 100644
--- /dev/null
+++ b/devtools/client/font-inspector.properties
@@ -0,0 +1,25 @@
+# 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 This file contains the Font Inspector strings.
+# The Font Inspector is a panel accessible in the Inspector sidebar.
+
+# LOCALIZATION NOTE (fontinspector.seeAll.tooltip) see fontinspector.seeAll.
+fontinspector.seeAll.tooltip=Amosar todos os tipos de letra usados nesta páxina
+
+# LOCALIZATION NOTE (fontinspector.usedAs) This label introduces the name used to refer to
+# the font in a stylesheet.
+fontinspector.usedAs=Usada como: 
+
+# LOCALIZATION NOTE (fontinspector.system) This label indicates that the font is a local
+# system font.
+fontinspector.system=sistema
+
+# LOCALIZATION NOTE (fontinspector.remote) This label indicates that the font is a remote
+# font.
+fontinspector.remote=remoto
+
+# LOCALIZATION NOTE (previewHint):
+# This is the label shown as the placeholder in font inspector preview text box.
+fontinspector.previewText=Texto da previsualización
deleted file mode 100644
--- a/devtools/client/inspector.dtd
+++ /dev/null
@@ -1,127 +0,0 @@
-<!-- LOCALIZATION NOTE (inspectorHTMLEdit.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users edit the
-     (outer) HTML of the current node -->
-<!ENTITY inspectorHTMLEdit.label       "Editar como HTML">
-<!ENTITY inspectorHTMLEdit.accesskey   "E">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLCopyInner.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users copy the
-     inner HTML of the current node -->
-<!ENTITY inspectorHTMLCopyInner.label       "Copiar HTML interno">
-<!ENTITY inspectorHTMLCopyInner.accesskey   "i">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLCopyOuter.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users copy the
-     outer HTML of the current node -->
-<!ENTITY inspectorHTMLCopyOuter.label       "Copiar HTML externo">
-<!ENTITY inspectorHTMLCopyOuter.accesskey   "o">
-
-<!-- LOCALIZATION NOTE (inspectorCopyUniqueSelector.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users copy
-     the CSS Selector of the current node -->
-<!ENTITY inspectorCopyUniqueSelector.label       "Copiar selector único">
-<!ENTITY inspectorCopyUniqueSelector.accesskey   "U">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteOuter.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users paste outer
-     HTML in the current node -->
-<!ENTITY inspectorHTMLPasteOuter.label      "Pegar HTML externo">
-<!ENTITY inspectorHTMLPasteOuter.accesskey  "P">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteInner.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users paste inner
-     HTML in the current node -->
-<!ENTITY inspectorHTMLPasteInner.label      "Pegar HTML interno">
-<!ENTITY inspectorHTMLPasteInner.accesskey  "n">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteExtraSubmenu.label): This is the label
-     shown in the inspector contextual-menu for the sub-menu of the other Paste
-     items, which allow to paste HTML:
-     - before the current node
-     - after the current node
-     - as the first child of the current node
-     - as the last child of the current node -->
-<!ENTITY inspectorHTMLPasteExtraSubmenu.label      "Pegar…">
-<!ENTITY inspectorHTMLPasteExtraSubmenu.accesskey  "g">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteBefore.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users paste
-     the HTML before the current node -->
-<!ENTITY inspectorHTMLPasteBefore.label      "Antes">
-<!ENTITY inspectorHTMLPasteBefore.accesskey  "A">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteAfter.label): This is the label shown
-     in the inspector contextual-menu for the item that lets users paste
-     the HTML after the current node -->
-<!ENTITY inspectorHTMLPasteAfter.label       "Despois">
-<!ENTITY inspectorHTMLPasteAfter.accesskey   "D">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteFirstChild.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users paste
-     the HTML as the first child the current node -->
-<!ENTITY inspectorHTMLPasteFirstChild.label      "Como primeiro fillo">
-<!ENTITY inspectorHTMLPasteFirstChild.accesskey  "f">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLPasteLastChild.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users paste
-     the HTML as the last child the current node -->
-<!ENTITY inspectorHTMLPasteLastChild.label       "Como último fillo">
-<!ENTITY inspectorHTMLPasteLastChild.accesskey   "l">
-
-<!-- LOCALIZATION NOTE (inspectorScrollNodeIntoView.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users scroll
-     the current node into view -->
-<!ENTITY inspectorScrollNodeIntoView.label       "Desprazar e facer visíbel">
-<!ENTITY inspectorScrollNodeIntoView.accesskey   "s">
-
-<!-- LOCALIZATION NOTE (inspectorHTMLDelete.label): This is the label shown in
-     the inspector contextual-menu for the item that lets users delete the
-     current node -->
-<!ENTITY inspectorHTMLDelete.label          "Eliminar nodo">
-<!ENTITY inspectorHTMLDelete.accesskey      "d">
-
-<!ENTITY inspector.selectButton.tooltip     "Seleccionar o elemento co rato">
-
-<!-- LOCALIZATION NOTE (inspectorSearchHTML.label2): This is the label shown as
-     the placeholder in inspector search box -->
-<!ENTITY inspectorSearchHTML.label2          "Buscar con selectores CSS">
-<!ENTITY inspectorSearchHTML.key            "F">
-
-<!-- LOCALIZATION NOTE (inspectorSearchHTML.label3): This is the label that will
-     be shown as the placeholder in the future, once the inspector search box
-     supports the full text HTML search in Bug 835896. -->
-<!ENTITY inspectorSearchHTML.label3 "Buscar HTML">
-
-<!-- LOCALIZATION NOTE (inspectorCopyImageDataUri.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users copy
-     the URL embedding the image data encoded in Base 64 (what we name
-     here Image Data URL). For more information:
-     https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs -->
-<!ENTITY inspectorCopyImageDataUri.label       "Copiar a data-URL da imaxe">
-
-<!-- LOCALIZATION NOTE (inspectorShowDOMProperties.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users see
-     the DOM properties of the current node. When triggered, this item
-     opens the split Console and displays the properties in its side panel. -->
-<!ENTITY inspectorShowDOMProperties.label       "Amosar propiedades DOM">
-
-<!-- LOCALIZATION NOTE (inspectorUseInConsole.label): This is the label
-     shown in the inspector contextual-menu for the item that outputs a
-     variable for the current node to the console. When triggered,
-     this item opens the split Console. -->
-<!ENTITY inspectorUseInConsole.label       "Usar na consola">
-
-<!-- LOCALIZATION NOTE (inspectorExpandNode.label): This is the label
-     shown in the inspector contextual-menu for recursively expanding
-     mark-up elements -->
-<!ENTITY inspectorExpandNode.label       "Expandir todo">
-
-<!-- LOCALIZATION NOTE (inspectorCollapseNode.label): This is the label
-     shown in the inspector contextual-menu for recursively collapsing
-     mark-up elements -->
-<!ENTITY inspectorCollapseNode.label       "Contraer">
-
-<!-- LOCALIZATION NOTE (inspectorScreenshotNode.label): This is the label
-     shown in the inspector contextual-menu for the item that lets users take
-     a screenshot of the currently selected node. -->
-<!ENTITY inspectorScreenshotNode.label       "Capturar pantalla do nodo">
--- a/devtools/client/inspector.properties
+++ b/devtools/client/inspector.properties
@@ -261,8 +261,32 @@ inspector.menu.selectElement.label=Selec
 
 # LOCALIZATION NOTE (inspector.sidebar.layoutViewTitle):
 # This is the title shown in a tab in the side panel of the Inspector panel
 # that corresponds to the tool displaying box model of the selected element.
 
 # LOCALIZATION NOTE (inspector.sidebar.animationInspectorTitle):
 # This is the title shown in a tab in the side panel of the Inspector panel
 # that corresponds to the tool displaying animations defined in the page.
+
+# LOCALIZATION NOTE (inspector.browserStyles.label): This is the label for the checkbox
+# that specifies whether the styles that are not from the user's stylesheet should be
+# displayed or not.
+inspector.browserStyles.label=Estilos do navegador
+
+# LOCALIZATION NOTE (inspector.filterStyles.placeholder): This is the placeholder that
+# goes in the search box when no search term has been entered.
+inspector.filterStyles.placeholder=Filtrar estilos
+
+# LOCALIZATION NOTE (inspector.addRule.tooltip): This is the tooltip shown when
+# hovering the `Add new rule` button in the rules view toolbar. This should
+# match ruleView.contextmenu.addNewRule in styleinspector.properties
+inspector.addRule.tooltip=Engadir nova regra
+
+# LOCALIZATION NOTE (inspector.togglePseudo.tooltip): This is the tooltip
+# shown when hovering over the `Toggle Pseudo Class Panel` button in the
+# rule view toolbar.
+inspector.togglePseudo.tooltip=Activa/desactiva pseudo-classes
+
+# LOCALIZATION NOTE (inspector.noProperties): In the case where there are no CSS
+# properties to display e.g. due to search criteria this message is
+# displayed.
+inspector.noProperties=Non se atoparon propiedades CSS.
deleted file mode 100644
--- a/devtools/client/layoutview.dtd
+++ /dev/null
@@ -1,23 +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 Layout View strings.
-  - The Layout View is the panel accessible at the bottom of the Inspector
-  - sidebar. -->
-
-<!-- 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. -->
-
-<!-- LOCALIZATION NOTE (*.tooltip): These tooltips are not regular tooltips.
-  -  The text appears on the bottom right corner of the layout view when
-  -  the corresponding box is hovered. -->
-
-<!ENTITY title                  "Modelo de caixa">
-<!ENTITY margin.tooltip         "marxe">
-<!ENTITY border.tooltip         "bordo">
-<!ENTITY padding.tooltip        "recheo">
-<!ENTITY content.tooltip        "contido">
deleted file mode 100644
--- a/devtools/client/styleinspector.dtd
+++ /dev/null
@@ -1,42 +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 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. -->
-
-<!-- LOCALIZATION NOTE (browserStylesLabel): This is the label for the checkbox
-  -  that specifies whether the styles that are not from the user's stylesheet
-  -  should be displayed or not. -->
-<!ENTITY browserStylesLabel    "Estilos do navegador">
-
-<!-- LOCALIZATION NOTE (filterStylesPlaceholder): This is the placeholder that goes in
-  -  the search box when no search term has been entered. -->
-<!ENTITY filterStylesPlaceholder      "Filtrar estilos">
-
-<!-- LOCALIZATION NOTE (addRuleButtonTooltip): This is the tooltip shown when
-  -  hovering the `Add new rule` button in the rules view toolbar. This should
-  -  match ruleView.contextmenu.addNewRule in styleinspector.properties -->
-<!ENTITY addRuleButtonTooltip  "Engadir nova regra">
-
-<!-- LOCALIZATION NOTE (selectedElementLabel): This is the label for the path of
-  -  the highlighted element in the web page. This path is based on the document
-  -  tree. -->
-<!ENTITY selectedElementLabel  "Elemento seleccionado:">
-
-<!-- LOCALIZATION NOTE (togglePseudoClassPanel): This is the tooltip
-  -  shown when hovering over the `Toggle Pseudo Class Panel` button in the
-  -  rule view toolbar. -->
-<!ENTITY togglePseudoClassPanel  "Activa/desactiva pseudo-classes">
-
-<!-- LOCALIZATION NOTE (noPropertiesFound): In the case where there are no CSS
-  -  properties to display e.g. due to search criteria this message is
-  -  displayed. -->
-<!ENTITY noPropertiesFound     "Non se atoparon propiedades CSS.">
-
-<!-- FIXME: notes -->
-<!ENTITY computedViewTitle     "Calculado">
-<!ENTITY ruleViewTitle         "Regras">