Bug 1294186 - Migrate inspector.xul from .dtd to .properties
authorAxel Hecht <axel@pike.org>
Mon, 14 Nov 2016 13:57:00 +0100
changeset 283 139232e7298c1cd36385d3d87b1149ace116a113
parent 282 6157e4df84dba5f83f6e703a2056208bbc141dc7
child 284 98e4a5fccc3a5064bd015717d034568be0a39396
push id229
push useraxel@mozilla.com
push dateMon, 14 Nov 2016 12:57:07 +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,37 @@
+# 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.title) This is the title of the box model panel and is
+# displayed as a label.
+boxmodel.title=Modelo de caixa
+
+# 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=marguin
+
+# 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=espaciau
+
+# 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=canto
+
+# 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=conteniu
+
+# LOCALIZATION NOTE: (boxmodel.geometryButton.tooltip) This label is displayed as a
+# tooltip that appears when hovering over the button that allows users to edit the
+# position of an element in the page.
+boxmodel.geometryButton.tooltip=Editar posición
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 showAllFonts "Amostrar todas as fuents emplegadas en ista pachina">
-
-<!ENTITY usedAs "Emplegadas 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 de 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=Amostrar todas as fuents emplegadas en ista pachina
+
+# LOCALIZATION NOTE (fontinspector.usedAs) This label introduces the name used to refer to
+# the font in a stylesheet.
+fontinspector.usedAs=Emplegadas 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 de previsualización
deleted file mode 100644
--- a/devtools/client/inspector.dtd
+++ /dev/null
@@ -1,22 +0,0 @@
-<!-- LOCALIZATION NOTE (inspectorRemoveAttribute.label): This is the label shown in
-     the inspector contextual-menu for the item that lets users delete attribute
-     from current node -->
-<!ENTITY inspectorRemoveAttribute.label        "Sacar l'atributo">
-<!ENTITY inspectorRemoveAttribute.accesskey    "r">
-
-<!ENTITY inspector.selectButton.tooltip     "Seleccionar un elemento con o ratet">
-<!-- LOCALIZATION NOTE (inspectorSearchHTML.label3): This is the label that is
-     shown as the placeholder for the markup view search in the inspector. -->
-
-<!ENTITY inspectorSearchHTML.label3 "Mirar en l'HTML">
-<!-- LOCALIZATION NOTE (inspectorAddNode.label): This is the label shown in
-     the inspector toolbar for the button that lets users add elements to the
-     DOM (as children of the currently selected element). -->
-
-<!ENTITY inspectorAddNode.label       "Creyar un Nuevo Nodo">
-<!ENTITY inspectorAddNode.accesskey   "C">
-<!-- LOCALIZATION NOTE (inspectorEyeDropper.label): A string displayed as the tooltip of
-     a button in the inspector which toggles the Eyedropper tool -->
-<!-- LOCALIZATION NOTE (inspectorBreadcrumbsGroup): A string visible only to a
-     screen reader and is used to label (using aria-label attribute) a container
-     for inspector breadcrumbs -->
--- a/devtools/client/inspector.properties
+++ b/devtools/client/inspector.properties
@@ -268,8 +268,32 @@ markupView.scrollInto.key=s
 
 # 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 d'o 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=Estilos de Filtrau
+
+# 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=Anyadir nueva regla
+
+# 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=Conmutar pseudo-clases
+
+# 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=No s'ha trobau garra propiedat CSS.
deleted file mode 100644
--- a/devtools/client/layoutview.dtd
+++ /dev/null
@@ -1,28 +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 layoutViewTitle          "Modelo de caixa">
-<!ENTITY margin.tooltip           "marguin">
-<!ENTITY border.tooltip           "canto">
-<!ENTITY padding.tooltip          "espaciau">
-<!ENTITY content.tooltip          "conteniu">
-<!-- LOCALIZATION NOTE: This label is displayed as a tooltip that appears when
-  -  hovering over the button that allows users to edit the position of an
-  -  element in the page. -->
-
-<!ENTITY geometry.button.tooltip  "Editar posición">
deleted file mode 100644
--- a/devtools/client/styleinspector.dtd
+++ /dev/null
@@ -1,38 +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 d'o navegador">
-<!-- LOCALIZATION NOTE (filterStylesPlaceholder): This is the placeholder that goes in
-  -  the search box when no search term has been entered. -->
-
-<!ENTITY filterStylesPlaceholder      "Estilos de Filtrau">
-<!-- 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  "Anyadir nueva regla">
-<!-- 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 seleccionau:">
-<!-- LOCALIZATION NOTE (togglePseudoClassPanel): This is the tooltip
-  -  shown when hovering over the `Toggle Pseudo Class Panel` button in the
-  -  rule view toolbar. -->
-
-<!ENTITY togglePseudoClassPanel  "Conmutar pseudo-clases">
-<!-- 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     "No s'ha trobau garra propiedat CSS.">