🌐 feat(i18n): translate quick navigation buttons' titles

main
welpo 1 year ago
parent afbf4017e2
commit c0a07cb467
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -28,6 +28,11 @@ dark = "obscur"
light = "clar"
reset_mode = "Restableix el mode als valors predeterminats del sistema"
# Quick navigation buttons.
toggle_toc = "Mostrar/ocultar la taula de continguts"
go_to_top = "Vés a l'inici de la pàgina"
go_to_comments = "Vés a la secció de comentaris"
# Post metadata.
draft = "ESBORRANY"
min_read = "min de lectura"

@ -32,6 +32,11 @@ dark = "dunkel"
light = "hell"
reset_mode = "Modus auf Betriebssystemstandard zurücksetzen"
# Quick navigation buttons.
toggle_toc = "Inhaltsverzeichnis ein-/ausblenden"
go_to_top = "Zum Seitenanfang"
go_to_comments = "Zum Kommentarbereich"
# Post metadata.
draft = "ENTWURF"
min_read = "min. lesedauer"

@ -28,6 +28,11 @@ dark = "dark"
light = "light"
reset_mode = "Reset mode to OS default"
# Quick navigation buttons.
toggle_toc = "Toggle Table of Contents"
go_to_top = "Go to the top of the page"
go_to_comments = "Go to the comments section"
# Post metadata.
draft = "DRAFT"
min_read = "min read"

@ -28,6 +28,11 @@ dark = "oscuro"
light = "claro"
reset_mode = "Restablecer modo a configuración predeterminada del SO"
# Quick navigation buttons.
toggle_toc = "Mostrar/ocultar la tabla de contenidos"
go_to_top = "Ir al inicio de la página"
go_to_comments = "Ir a la sección de comentarios"
# Post metadata.
draft = "BORRADOR"
min_read = "min de lectura"

@ -32,6 +32,11 @@ dark = "sombre"
light = "clair"
reset_mode = "Réinitialiser le mode aux paramètres par défaut du système"
# Quick navigation buttons.
toggle_toc = "Afficher/Masquer la table des matières"
go_to_top = "Aller en haut de la page"
go_to_comments = "Aller à la section des commentaires"
# Post metadata.
draft = "BROUILLON"
min_read = "min de lecture"

@ -30,6 +30,11 @@ dark = "अंधेरा"
light = "रोशनी"
reset_mode = "मोड को ओएस डिफ़ॉल्ट पर रीसेट करें"
# Quick navigation buttons.
toggle_toc = "विषय-सूची टॉगल करें"
go_to_top = "पृष्ठ के शीर्ष पर जाएं"
go_to_comments = "टिप्पणी अनुभाग में जाएं"
# Post metadata.
draft = "मसौदा"
min_read = "मिनट पठन समय"

@ -28,6 +28,11 @@ dark = "scuro"
light = "chiaro"
reset_mode = "Reimposta la modalità alle impostazioni predefinite del sistema operativo"
# Quick navigation buttons.
toggle_toc = "Attiva/Disattiva indice"
go_to_top = "Vai in cima alla pagina"
go_to_comments = "Vai alla sezione commenti"
# Post metadata.
draft = "BOZZA"
min_read = "min di lettura"

@ -32,6 +32,11 @@ dark = "暗い"
light = "明るい"
reset_mode = "モードをOSデフォルトにリセット"
# Quick navigation buttons.
toggle_toc = "目次を切り替え"
go_to_top = "ページの先頭へ"
go_to_comments = "コメントセクションへ"
# Post metadata.
draft = "ドラフト"
min_read = "読了時間(分)"

@ -32,6 +32,11 @@ dark = "어두운"
light = "밝은"
reset_mode = "모드를 OS 기본값으로 재설정"
# Quick navigation buttons.
toggle_toc = "목차 토글"
go_to_top = "페이지 상단으로"
go_to_comments = "댓글 섹션으로"
# Post metadata.
draft = "임시 저장"
min_read = "분 읽기"

@ -28,6 +28,11 @@ dark = "escuro"
light = "claro"
reset_mode = "Repor o modo para o padrão do SO"
# Quick navigation buttons.
toggle_toc = "Alternar Índice"
go_to_top = "Ir para o topo da página"
go_to_comments = "Ir para a seção de comentários"
# Post metadata.
draft = "RASCUNHO"
min_read = "min de leitura"

@ -28,6 +28,11 @@ dark = "тёмный"
light = "светлый"
reset_mode = "Сбросить режим к настройкам ОС по умолчанию"
# Quick navigation buttons.
toggle_toc = "Показать/Скрыть оглавление"
go_to_top = "Перейти в начало страницы"
go_to_comments = "Перейти к комментариям"
# Post metadata.
draft = "ЧЕРНОВИК"
min_read = "мин чтения"

@ -32,6 +32,11 @@ dark = "темний"
light = "світлий"
reset_mode = "Скинути режим до типових параметрів ОС"
# Quick navigation buttons.
toggle_toc = "Показати/Сховати зміст"
go_to_top = "Перейти на початок сторінки"
go_to_comments = "Перейти до коментарів"
# Post metadata.
draft = "ЧЕРНЕТКА"
min_read = "хв. читання"

@ -28,6 +28,11 @@ dark = "暗" # Machine translated.
light = "亮" # Machine translated.
reset_mode = "重置为操作系统默认模式" # Machine translated.
# Quick navigation buttons.
toggle_toc = "切换目录" # Machine translated.
go_to_top = "返回页面顶部" # Machine translated.
go_to_comments = "转到评论区" # Machine translated.
# Post metadata.
draft = "草稿"
min_read = "分钟阅读"

@ -28,6 +28,11 @@ dark = "暗" # Machine translated.
light = "亮" # Machine translated.
reset_mode = "重置為操作系統預設模式" # Machine translated.
# Quick navigation buttons.
toggle_toc = "切換目錄" # Machine translated.
go_to_top = "返回頁面頂部" # Machine translated.
go_to_comments = "轉到評論區" # Machine translated.
# Post metadata.
draft = "草稿"
min_read = "分鐘閱讀"

@ -6,7 +6,7 @@
<div id="toc-floating-container">
<input type="checkbox" id="toc-toggle" class="toggle"/>
<label for="toc-toggle" class="overlay"></label>
<label for="toc-toggle" id="toc-button" class="button" title="Toggle Table of Contents" aria-label="toggle Table of Contents">
<label for="toc-toggle" id="toc-button" class="button" title="{{ macros_translate::translate(key="toggle_toc", default="Toggle Table of Contents", language_strings=language_strings) }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M414.82-193.094q-18.044 0-30.497-12.32-12.453-12.319-12.453-30.036t12.453-30.086q12.453-12.37 30.497-12.37h392.767q17.237 0 29.927 12.487 12.69 12.486 12.69 30.203 0 17.716-12.69 29.919t-29.927 12.203H414.82Zm0-244.833q-18.044 0-30.497-12.487Q371.87-462.9 371.87-480.45t12.453-29.92q12.453-12.369 30.497-12.369h392.767q17.237 0 29.927 12.511 12.69 12.512 12.69 29.845 0 17.716-12.69 30.086-12.69 12.37-29.927 12.37H414.82Zm0-245.167q-18.044 0-30.497-12.32t-12.453-30.037q0-17.716 12.453-30.086 12.453-12.369 30.497-12.369h392.767q17.237 0 29.927 12.486 12.69 12.487 12.69 30.203 0 17.717-12.69 29.92-12.69 12.203-29.927 12.203H414.82ZM189.379-156.681q-32.652 0-55.878-22.829t-23.226-55.731q0-32.549 23.15-55.647 23.151-23.097 55.95-23.097 32.799 0 55.313 23.484 22.515 23.484 22.515 56.246 0 32.212-22.861 54.893-22.861 22.681-54.963 22.681Zm0-245.167q-32.652 0-55.878-23.134-23.226-23.135-23.226-55.623 0-32.487 23.467-55.517t56.12-23.03q32.102 0 54.721 23.288 22.62 23.288 22.62 55.775 0 32.488-22.861 55.364-22.861 22.877-54.963 22.877Zm-.82-244.833q-32.224 0-55.254-23.288-23.03-23.289-23.03-55.623 0-32.333 23.271-55.364 23.272-23.03 55.495-23.03 32.224 0 55.193 23.288 22.969 23.289 22.969 55.622 0 32.334-23.21 55.364-23.21 23.031-55.434 23.031Z"/></svg>
</label>
<div class="toc-content">
@ -17,13 +17,13 @@
{# Button to go to the comment section #}
{% if comment_system %}
<a href="#comments" id="comments-button" title="Go to comment section">
<a href="#comments" id="comments-button" title="{{ macros_translate::translate(key="go_to_comments", default="Go to comments section", language_strings=language_strings) }}">
<svg viewBox="0 0 20 20" fill="currentColor"><path d="M18 10c0 3.866-3.582 7-8 7a8.841 8.841 0 01-4.083-.98L2 17l1.338-3.123C2.493 12.767 2 11.434 2 10c0-3.866 3.582-7 8-7s8 3.134 8 7zM7 9H5v2h2V9zm8 0h-2v2h2V9zM9 9h2v2H9V9z" clip-rule="evenodd" fill-rule="evenodd"/></svg>
</a>
{% endif %}
{# Button to go to the top of the page #}
<a href="#" id="top-button" title="Go to top of page">
<a href="#" id="top-button" title="{{ macros_translate::translate(key="go_to_top", default="Go to the top of the page", language_strings=language_strings) }}">
<svg viewBox="0 0 20 20" fill="currentColor"><path d="M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z"/></svg>
</a>
</div>

Loading…
Cancel
Save