From 934cbc9260c9833c579d1963fb6451b9b7453348 Mon Sep 17 00:00:00 2001 From: Yurii Onuk Date: Tue, 16 Jan 2024 12:09:42 +0200 Subject: [PATCH] [ONUK-00001] - Added the Ukrainian translation for the FeelIt theme --- README.md | 1 + .../theme-documentation-basics/index.en.md | 2 + .../theme-documentation-basics/index.fr.md | 2 + .../theme-documentation-basics/index.zh-cn.md | 2 + i18n/uk.toml | 207 ++++++++++++++++++ 5 files changed, 214 insertions(+) create mode 100644 i18n/uk.toml diff --git a/README.md b/README.md index 11cc821e..b52410ac 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ FeelIt supports the following languages: * Hungarian * Czech * Persian +* Ukrainian * [Contribute with a new language](https://github.com/khusika/FeelIt/pulls) [Languages Compatibility](https://feelit.khusika.dev/theme-documentation-basics/#language-compatibility) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index dad5c2e3..f76f26fd 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -937,6 +937,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s | Hungarian | `hu` | `hu` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | | Czech | `cs` | `cs` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | | Persian | `fa` | `fa` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | +| Ukrainian | `uk` | `uk` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-check-square fa-fw): | ### 4.2 Basic Configuration @@ -1050,6 +1051,7 @@ Single file `my-page.md` is split in three files: * in English: `my-page.en.md` * in Chinese: `my-page.zh-cn.md` * in French: `my-page.fr.md` +* in Ukrainian: `my-page.uk.md` {{< admonition >}} Be aware that only translated pages are displayed in menu. It’s not replaced with default language content. diff --git a/exampleSite/content/posts/theme-documentation-basics/index.fr.md b/exampleSite/content/posts/theme-documentation-basics/index.fr.md index c7ed7bd3..e149e76d 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.fr.md @@ -942,6 +942,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s | Hungarian | `hu` | `hu` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | | Czech | `cs` | `cs` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | | Persian | `fa` | `fa` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | +| Ukrainian | `uk` | `uk` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-check-square fa-fw): | ### 4.2 Basic Configuration @@ -1055,6 +1056,7 @@ Single file `my-page.md` is split in three files: * in English: `my-page.en.md` * in Chinese: `my-page.zh-cn.md` * in French: `my-page.fr.md` +* in Ukrainian: `my-page.uk.md` {{< admonition >}} Be aware that only translated pages are displayed in menu. It’s not replaced with default language content. diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index ba668d61..79f10921 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -942,6 +942,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac | 越南语 | `vi` | `vi` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-check-square fa-fw): | | 简体中文 | `zh-cn` | `zh-CN` | :(fa-regular fa-check-square fa-fw): | :(fa-regular fa-check-square fa-fw): | | 波斯语 | `fa` | `fa` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-square fa-fw): | +| 乌克兰语 | `uk` | `uk` | :(fa-regular fa-square fa-fw): | :(fa-regular fa-check-square fa-fw): | ### 4.2 基本配置 @@ -1055,6 +1056,7 @@ defaultContentLanguage = "zh-cn" * 英语: `my-page.en.md` * 中文: `my-page.zh-cn.md` * 法语: `my-page.fr.md` +* 乌克兰语: `my-page.uk.md` {{< admonition >}} 请注意, 菜单中仅显示翻译的页面. 它不会替换为默认语言内容. diff --git a/i18n/uk.toml b/i18n/uk.toml new file mode 100644 index 00000000..e82b7dd9 --- /dev/null +++ b/i18n/uk.toml @@ -0,0 +1,207 @@ +# Translations for Ukrainian +# Переклад на українську мову +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "Вгору" + +[viewComments] +other = "Переглянути коментарі" +# === baseof == + +# === Post === +[posts] +other = "Дописи" +# === Post === + +# === Taxonomy === +[allSome] +other = "Всі {{ .Some }}" + +[tag] +other = "Теґ" + +[tags] +other = "Теги" + +[category] +other = "Категорія" + +[categories] +other = "Категорії" +# === Taxonomy === + +# === Pagination === +[more] +other = "Більше" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "Вибір мови" + +[switchTheme] +other = "Змінити Тему" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "Працює на {{ .Hugo }} | Тема - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "en" + +[valinePlaceholder] +other = "Ваш коментар ..." + +[facebookLanguageCode] +other = "uk_UA" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "Пошук" + +[searchPlaceholder] +other = "Пошук заголовків та вмісту ..." + +[clear] +other = "Очистити" + +[cancel] +other = "Скасувати" + +[noResultsFound] +other = "Результатів що відповідають запиту не знайдено" + +[lunrLanguageCode] +other = "uk" + +[lunrLanguageLib] +other = "lib/lunr/lunr.uk.js" + +[copyToClipboard] +other = "Копіювати в буфер обміну" + +[cookieconsentMessage] +other = "Цей сайт використовує Cookies для покращення вашого досвіду." + +[cookieconsentDismiss] +other = "Згоден" + +[cookieconsentLink] +other = "Вчити більше" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "Поділитися у" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "Зміст" + +[publishedOnDate] +other = "Опубліковано {{ .Date }}" + +[publishedInCategories] +other = "опубліковано в {{ .Categories }}" + +[includedInCategories] +other = "доданий у категорію {{ .Categories }}" + +[wordCount] +one = "Одне слово" +other = "{{ .Count }} слів" + +[readingTime] +one = "Одна хвилина" +other = "{{ .Count }} хвилин" + +[views] +other = "переглядів" + +[author] +other = "Автор" + +[updatedOnDate] +other = "Оновлена {{ .Date }}" + +[readMarkdown] +other = "Читати Markdown" + +[improveArticle] +other = "Improve Article" + +[back] +other = "Назад" + +[home] +other = "На головну" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "Сторінку не знайдено" + +[pageNotFoundText] +other = "Сторінка, яку Ви шукаєте, не існує. Вибачте." +# === 404.html === + +# === Offline Page === +[pageOffline] +other = "Ви не в мережі. Перевірте інтернет з'єднання." +# === Offline Page === + +# === shortcodes/admonition.html === +[note] +other = "Зауваження" + +[abstract] +other = "Короткий опис" + +[info] +other = "Інфо" + +[tip] +other = "Порада" + +[success] +other = "Вдало" + +[question] +other = "Питання" + +[warning] +other = "Попередження" + +[failure] +other = "Відмова" + +[danger] +other = "Небезпека" + +[bug] +other = "Помилка" + +[example] +other = "Приклад" + +[quote] +other = "Цитата" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "НОВИЙ" + +[changed] +other = "ЗМІНЕНИЙ" + +[deleted] +other = "ВИДАЛЕНИЙ" +# === shortcodes/version.html ===