Skip to content

Commit 9f3faae

Browse files
authored
Add localization to the tooltip-porcentage-mode fields with the Spanish translation (#1090)
* Add localization to the tooltip-porcentage-mode fields, as well the Spanish translation * Fix Spanish translation for showTooltipPercentage * Fix plural Spanish translation
1 parent c92d589 commit 9f3faae

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

Extensions/combined/_locales/en/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,17 @@
130130
},
131131
"colorTheme": {
132132
"message": "Color theme:"
133+
},
134+
"showTooltipPercentage": {
135+
"message": "Percentage in like/dislike bar tooltip."
136+
},
137+
"showTooltipPercentageHover": {
138+
"message": "Display percentage in like/dislike bar tooltip."
139+
},
140+
"tooltipPercentageMode": {
141+
"message": "Percent mode:"
142+
},
143+
"tooltipPercentageModeHover": {
144+
"message": "Use custom percentage display on hover."
133145
}
134146
}

Extensions/combined/_locales/es/messages.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,17 @@
130130
},
131131
"colorTheme": {
132132
"message": "Combinación de colores:"
133+
},
134+
"showTooltipPercentage": {
135+
"message": "Porcentaje en el tooltip de la barra de like/dislike."
136+
},
137+
"showTooltipPercentageHover": {
138+
"message": "Mostrar porcentaje en el tooltip de la barra de like/dislike."
139+
},
140+
"tooltipPercentageMode": {
141+
"message": "Modo de porcentaje:"
142+
},
143+
"tooltipPercentageModeHover": {
144+
"message": "Usar visualización de porcentaje personalizada al pasar el puntero."
133145
}
134146
}

Extensions/combined/popup.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ <h1 style="margin-bottom: 0.75rem" title="__MSG_extensionName__">
178178
<br />
179179
<label
180180
class="switch"
181-
data-hover="Display percentage in like/dislike bar tooltip."
181+
data-hover="__MSG_showTooltipPercentageHover__"
182182
>
183183
<input type="checkbox" id="show_tooltip_percentage" />
184184
<span class="slider"></span>
185-
<span class="switchLabel">Percentage in like/dislike bar tooltip.</span>
185+
<span class="switchLabel">__MSG_showTooltipPercentage__</span>
186186
</label>
187187
<div class="custom-select">
188188
<label
189189
for="tooltip_percentage_mode"
190-
data-hover="Use custom percentage display on hover."
191-
>Percent mode:</label
190+
data-hover="__MSG_tooltipPercentageModeHover__"
191+
>__MSG_tooltipPercentageMode__</label
192192
>
193193
<select name="tooltip_percentage_mode" id="tooltip_percentage_mode">
194194
<option value="dash_like" id="tooltip_percentage_mode_dash_like">

0 commit comments

Comments
 (0)