From 3e5fdfe654d74b5a8edb7f59717a8d0ae1d81fe8 Mon Sep 17 00:00:00 2001 From: Gurkengewuerz Date: Tue, 22 Oct 2024 00:39:44 +0200 Subject: [PATCH] feat: added i18n to email protection --- i18n/de.toml | 1 + i18n/en.toml | 1 + i18n/es.toml | 1 + i18n/fr.toml | 1 + i18n/hi.toml | 33 ------------------------- i18n/jp.toml | 33 ------------------------- i18n/nl.toml | 1 + i18n/pl.toml | 1 + i18n/ru.toml | 33 ------------------------- i18n/zh-CN.toml | 33 ------------------------- layouts/shortcodes/protected-email.html | 2 +- 11 files changed, 7 insertions(+), 133 deletions(-) delete mode 100644 i18n/hi.toml delete mode 100644 i18n/jp.toml delete mode 100644 i18n/ru.toml delete mode 100644 i18n/zh-CN.toml diff --git a/i18n/de.toml b/i18n/de.toml index e36138a..ca4a430 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -1,6 +1,7 @@ table_of_contents = "Inhaltsverzeichnis" open_main_menu = "Hauptmenü öffnen" open_lang_switcher = "Sprache wechseln öffnen" +email_protection = "E-Mail Adresse anzeigen" [reading_time] one = "Lesezeit eine Minute" other = "Lesezeit {{ .Count }} Minuten" diff --git a/i18n/en.toml b/i18n/en.toml index 41fc14f..3a896cc 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,6 +1,7 @@ table_of_contents = "Table of Contents" open_main_menu = "Open main menu" open_lang_switcher = "Open language switcher" +email_protection = "Reveal email" [reading_time] one = "One minute to read" other = "{{ .Count }} minutes to read" diff --git a/i18n/es.toml b/i18n/es.toml index 0b596c5..bbfde31 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -1,6 +1,7 @@ table_of_contents = "Tabla de contenido" open_main_menu = "Abrir menú principal" open_lang_switcher = "Abrir cambiador de idioma" +email_protection = "Mostrar dirección de correo electrónico" [reading_time] one = "Un minuto de lectura" other = "{{ .Count }} minutos de lectura" diff --git a/i18n/fr.toml b/i18n/fr.toml index 71216c8..b9105d2 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -1,6 +1,7 @@ table_of_contents = "Table des matières" open_main_menu = "Ouvrir le menu principal" open_lang_switcher = "Ouvrir le sélecteur de langue" +email_protection = "Afficher l'adresse e-mail" [reading_time] one = "Une minute de lecture" other = "{{ .Count }} minutes de lecture" diff --git a/i18n/hi.toml b/i18n/hi.toml deleted file mode 100644 index c72da88..0000000 --- a/i18n/hi.toml +++ /dev/null @@ -1,33 +0,0 @@ -table_of_contents = "विषय-सूची" -open_main_menu = "मुख्य मेनू खोलें" -open_lang_switcher = "भाषा स्विचर खोलें" -[reading_time] - one = "पढ़ने में एक मिनट का समय लगेगा।" - other = "पढ़ने में {{ .Count }} मिनट का समय लगेगा।" - -[search] -title = "खोजें" -empty_result = "कोई परिणाम नहीं मिला।" -placeholder = "खोजें..." - -[header] -darkmode_toggle = "डार्क मोड टॉगल करें" - -[404] -go_back_home = "होम पर वापस जाएं" -sorry = "क्षमा करें, हम आपके द्वारा खोजे गए पेज को नहीं ढूँढ पाए।" -page_not_found = "पेज नहीं मिला" - -[footer] -powered_by = "{{ .Generator }} {{ .Heart }} {{ .Theme }} द्वारा संचालित" -copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear}} {{ .Copyright }}" -copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear}} {{ .Copyright }}" - -[paginator] -newer_posts = "नई पोस्ट्स" -older_posts = "पुरानी पोस्ट्स" - -[taxonomies] -categories = "श्रेणियाँ" -tags = "टैग्स" -series = "श्रृंखला" diff --git a/i18n/jp.toml b/i18n/jp.toml deleted file mode 100644 index 61d8ca2..0000000 --- a/i18n/jp.toml +++ /dev/null @@ -1,33 +0,0 @@ -table_of_contents = "目次" -open_main_menu = "メインメニューを開く" -open_lang_switcher = "言語スイッチャーを開く" -[reading_time] - one = "1分読む" - other = "{{ .Count }}分読む" - -[search] -title = "検索" -empty_result = "結果なし" -placeholder = "検索..." - -[header] -darkmode_toggle = "ダークモードを切り替える" - -[404] -go_back_home = "ホームに戻る" -sorry = "申し訳ありませんが、ご希望のページが見つかりませんでした。" -page_not_found = "ページが見つかりません" - -[footer] -powered_by = "Powered by {{ .Generator }} {{ .Heart }} {{ .Theme }}" -copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear }} {{ .Copyright }}" -copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear }} {{ .Copyright }}" - -[paginator] -newer_posts = "新しい投稿" -older_posts = "古い投稿" - -[taxonomies] -categories = "カテゴリー" -tags = "タグ" -series = "シリーズ" diff --git a/i18n/nl.toml b/i18n/nl.toml index cda6d79..44b5713 100644 --- a/i18n/nl.toml +++ b/i18n/nl.toml @@ -1,6 +1,7 @@ table_of_contents = "Inhoudsopgave" open_main_menu = "Hoofdmenu openen" open_lang_switcher = "Taalwisseler openen" +email_protection = "E-mailadres tonen" [reading_time] one = "Eén minuut lezen" other = "{{ .Count }} minuten om te lezen" diff --git a/i18n/pl.toml b/i18n/pl.toml index 146d7ea..b239ae3 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -1,6 +1,7 @@ table_of_contents = "Spis treści" open_main_menu = "Otwórz menu główne" open_lang_switcher = "Zmień język" +email_protection = "Pokaż adres e-mail" [reading_time] one = "Jedna minuta czytania" many = "{{ .Count }} minut czytania" diff --git a/i18n/ru.toml b/i18n/ru.toml deleted file mode 100644 index b546aa0..0000000 --- a/i18n/ru.toml +++ /dev/null @@ -1,33 +0,0 @@ -table_of_contents = "Содержание" -open_main_menu = "Открыть главное меню" -open_lang_switcher = "Открыть переключатель языка" -[reading_time] - one = "Одну минуту для чтения" - other = "{{ .Count }} минут для чтения" - -[search] -title = "Поиск" -empty_result = "Ничего не найдено." -placeholder = "Поиск..." - -[header] -darkmode_toggle = "Включить темный режим" - -[404] -go_back_home = "Вернуться на главную" -sorry = "Извините, мы не смогли найти страницу, которую вы ищете." -page_not_found = "Страница не найдена" - -[footer] -powered_by = "Работает на {{ .Generator }} {{ .Heart }} {{ .Theme }}" -copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear }} {{ .Copyright }}" -copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear }} {{ .Copyright }}" - -[paginator] -newer_posts = "Более новые сообщения" -older_posts = "Более старые сообщения" - -[taxonomies] -categories = "Категории" -tags = "Теги" -series = "Серии" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml deleted file mode 100644 index 13517d2..0000000 --- a/i18n/zh-CN.toml +++ /dev/null @@ -1,33 +0,0 @@ -table_of_contents = "目录" -open_main_menu = "打开菜单" -open_lang_switcher = "打开语言切换" -[reading_time] - one = "阅读时长{{ .Count }}分钟" - other = "阅读时长{{ .Count }}分钟" - -[search] -title = "搜索" -empty_result = "无结果。" -placeholder = "搜索..." - -[header] -darkmode_toggle = "切换夜间模式" - -[404] -go_back_home = "回到首页" -sorry = "对不起,暂未找到您请求的页面" -page_not_found = "页面未找到" - -[footer] -powered_by = "Powered by {{ .Generator }} {{ .Heart }} {{ .Theme }}" -copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear}} {{ .Copyright }}" -copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear}} {{ .Copyright }}" - -[paginator] -newer_posts = "新文章" -older_posts = "旧文章" - -[taxonomies] -categories = "分类" -tags = "标签" -series = "系列" diff --git a/layouts/shortcodes/protected-email.html b/layouts/shortcodes/protected-email.html index 881c118..77e0857 100644 --- a/layouts/shortcodes/protected-email.html +++ b/layouts/shortcodes/protected-email.html @@ -10,7 +10,7 @@ data-domain="{{ $domain }}" data-tld="{{ $tld }}" onclick="decodeEmail(this);return false;"> - Click to reveal email + {{ T "email_protection" }} {{ if not (.Page.Scratch.Get "protectedEmailJS") }}