Skip to content

Commit 6752ab3

Browse files
committed
add l18n-friendly text for individual image tooltips
1 parent 4f5fefe commit 6752ab3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

data/ui.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,5 @@ contributor_callout: This article is contributed and maintained by
176176
toggle_images:
177177
hide: Hide images on page
178178
show: Show images on page
179+
hide_single: Hide image
180+
show_single: Show image

includes/toggle-images.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<button class="toggle-images tooltipped tooltipped-n" id="js-toggle-images">
22
<span id="js-hide-icon" aria-label="{% data ui.toggle_images.hide %}">{% octicon "eye-closed" %}</span>
33
<span id="js-show-icon" aria-label="{% data ui.toggle_images.show %}">{% octicon "eye" %}</span>
4+
<span id="js-hide-single-image" aria-label="{% data ui.toggle_images.hide_single %}" style="display: none;"></span>
5+
<span id="js-show-single-image" aria-label="{% data ui.toggle_images.show_single %}" style="display: none;"></span>
46
</button>

0 commit comments

Comments
 (0)