1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-10 18:51:01 +00:00

Improve translation of hidden aria elements

This commit is contained in:
Frédéric Guillot 2024-02-04 12:51:04 -08:00
parent 8367413e84
commit f203326a29
28 changed files with 489 additions and 193 deletions

View file

@ -7,7 +7,6 @@
>
<header class="item-header" dir="auto">
<h2 id="feed-title-{{ .ID }}" class="item-title">
<a href="{{ route "feedEntries" "feedID" .ID }}">
{{ if and (.Icon) (gt .Icon.IconID 0) }}
<img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16" loading="lazy" alt="">
@ -18,21 +17,17 @@
</h2>
<span class="feed-entries-counter">
<span aria-hidden="true">(</span>
<span class="sr-only">
{{ t "page.feeds.unread_counter" }}:
</span>
<span>{{ .UnreadCount }}</span>
<span class="sr-only">{{ plural "page.unread_entry_count" .UnreadCount .UnreadCount }}</span>
<span aria-hidden="true">{{ .UnreadCount }}</span>
<span aria-hidden="true">/</span>
<span class="sr-only">
{{ t "page.categories.all_counter" }}:
</span>
<span>{{ .NumberOfVisibleEntries }}</span>
<span class="sr-only">{{ plural "page.total_entry_count" .NumberOfVisibleEntries .NumberOfVisibleEntries }}</span>
<span aria-hidden="true">{{ .NumberOfVisibleEntries }}</span>
<span aria-hidden="true">)</span>
</span>
<span class="category">
<a id="feed-category-{{ .ID }}"
href="{{ route "categoryEntries" "categoryID" .Category.ID }}"
aria-label="{{ t "page.feeds.category" }}: {{ .Category.Title }}"
aria-label="{{ t "page.category_label" .Category.Title }}"
>
{{ .Category.Title }}
</a>

View file

@ -61,9 +61,7 @@
{{ if .user }}
<a class="skip-to-content-link" href="#main">
Skip to content
</a>
<a class="skip-to-content-link" href="#main">{{ t "skip_to_content" }}</a>
<header class="header">
<nav>
<div class="logo">
@ -81,7 +79,7 @@
<a href="{{ route "unread" }}"
data-page="unread"
{{ if gt .countUnread 0 }}
aria-label="{{ t "menu.unread" }}, {{ t "page.unread.total" }}: {{ .countUnread }}"
aria-label="{{ t "menu.unread" }}, {{ plural "page.unread_entry_count" .countUnread .countUnread }}"
{{ end }}
>
{{ t "menu.unread" }}