From 5dac03a90dca0c33d308eac68e0998ae846d98b9 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 29 Aug 2024 22:22:28 +0800 Subject: [PATCH] :globe_with_meridians: Feat: add translations for alerts --- i18n/de.toml | 9 +++++++++ i18n/en.toml | 9 +++++++++ i18n/es.toml | 9 +++++++++ i18n/fr.toml | 9 +++++++++ i18n/hi.toml | 9 +++++++++ i18n/it.toml | 9 +++++++++ i18n/pl.toml | 9 +++++++++ i18n/pt-BR.toml | 9 +++++++++ i18n/ro.toml | 9 +++++++++ i18n/ru.toml | 9 +++++++++ i18n/sr.toml | 9 +++++++++ i18n/vi.toml | 9 +++++++++ i18n/zh-CN.toml | 9 +++++++++ i18n/zh-TW.toml | 9 +++++++++ layouts/_default/_markup/render-blockquote.html | 2 +- 15 files changed, 127 insertions(+), 1 deletion(-) diff --git a/i18n/de.toml b/i18n/de.toml index c60024de1..d473aef3f 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -173,6 +173,15 @@ other = "Offline" other = "Sie sind nicht mit dem Internet verbunden, es stehen nur zwischengespeicherte Seiten zur Verfügung." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Notiz" diff --git a/i18n/en.toml b/i18n/en.toml index aeee9c2e0..c87b63951 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -172,6 +172,15 @@ other = "Offline" other = "You are not connected to the Internet, only cached pages will be available." # === offline === +# === GitHub Alert === +[alert] +note = "Note" +tip = "Tip" +important = "Important" +warning = "Warning" +caution = "Caution" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Note" diff --git a/i18n/es.toml b/i18n/es.toml index 2afe09141..4cda041e7 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -173,6 +173,15 @@ other = "desconectado" other = "No está conectado a Internet, solo estarán disponibles las páginas almacenadas en caché." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Nota" diff --git a/i18n/fr.toml b/i18n/fr.toml index 06ed922e3..10a3437d6 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -172,6 +172,15 @@ other = "Hors ligne" other = "Vous n'êtes pas connecté à Internet, seules les pages mises en cache seront disponibles." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Remarque" diff --git a/i18n/hi.toml b/i18n/hi.toml index 67d21e224..dc48801e4 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -173,6 +173,15 @@ other = "ऑफलाइन" other = "आप इंटरनेट से कनेक्ट नहीं हैं, केवल कैश्ड पेज ही उपलब्ध होंगे।" # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "ध्यान दें" diff --git a/i18n/it.toml b/i18n/it.toml index 075f82068..2d74d5204 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -173,6 +173,15 @@ other = "disconnesso" other = "Non sei connesso a Internet, saranno disponibili solo le pagine memorizzate nella cache." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Note" diff --git a/i18n/pl.toml b/i18n/pl.toml index 94e0e7977..076ecb65d 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -173,6 +173,15 @@ other = "Offline" other = "Nie masz połączenia z Internetem, dostępne będą tylko strony z pamięci podręcznej." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Notka" diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index 0c1c0c3ac..34bd6ba15 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -173,6 +173,15 @@ other = "Offline" other = "Você não está conectado à Internet, apenas as páginas em cache estarão disponíveis." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Nota" diff --git a/i18n/ro.toml b/i18n/ro.toml index 9f2d2a1dc..c6422dc77 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -173,6 +173,15 @@ other = "Deconectat" other = "Nu sunteți conectat la Internet, vor fi disponibile doar paginile stocate în cache." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Notă" diff --git a/i18n/ru.toml b/i18n/ru.toml index cee3425f6..73eb947a4 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -173,6 +173,15 @@ other = "Не в сети" other = "Вы не подключены к интернету, будут доступны только кешированные страницы." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Замечание" diff --git a/i18n/sr.toml b/i18n/sr.toml index 52777c75c..84ec9dd03 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -173,6 +173,15 @@ other = "Оффлине" other = "Нисте повезани на Интернет, биће доступне само кеширане странице." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Напомена" diff --git a/i18n/vi.toml b/i18n/vi.toml index 91c3f15a0..2b2b9b71f 100644 --- a/i18n/vi.toml +++ b/i18n/vi.toml @@ -172,6 +172,15 @@ other = "ngoại tuyến" other = "Bạn chưa kết nối với Internet, chỉ các trang được lưu trong bộ nhớ cache sẽ khả dụng." # === offline === +# === GitHub Alert === +[alert] +note = "" +tip = "" +important = "" +warning = "" +caution = "" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "Ghi chú" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 0e9743920..53c719390 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -168,6 +168,15 @@ other = "离线" other = "您没有连接到 Internet,只有缓存的页面可用。" # === offline === +# === GitHub Alert === +[alert] +note = "注意" +tip = "提示" +important = "重要" +warning = "警告" +caution = "小心" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "注意" diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index bcc4f80e1..4af6c3bec 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -168,6 +168,15 @@ other = "離線" other = "您沒有連接到 Internet,只有緩存的頁面可用。" # === offline === +# === GitHub Alert === +[alert] +note = "注意" +tip = "提示" +important = "重要" +warning = "警告" +caution = "小心" +# === GitHub Alert === + # === shortcodes/admonition.html === [admonition] note = "注意" diff --git a/layouts/_default/_markup/render-blockquote.html b/layouts/_default/_markup/render-blockquote.html index c8bfdd735..c418ac2d2 100644 --- a/layouts/_default/_markup/render-blockquote.html +++ b/layouts/_default/_markup/render-blockquote.html @@ -24,7 +24,7 @@ {{- $icon := index $icons .AlertType -}}
{{- dict "Src" $icon | partial "plugin/icon.html" }} - {{- or (T .AlertType) (title .AlertType) -}} + {{- or (T (printf "alert.%v" .AlertType)) (title .AlertType) -}}
{{- .Text | safeHTML -}}