From 0525c2b2b87294f61ebf21db53a5746c55e99866 Mon Sep 17 00:00:00 2001 From: prprnya Date: Tue, 22 Feb 2022 15:22:48 +0800 Subject: [PATCH 1/4] Generate language file `ca.toml` from `en.toml` --- i18n/ca.toml | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 i18n/ca.toml diff --git a/i18n/ca.toml b/i18n/ca.toml new file mode 100644 index 0000000..6f5a428 --- /dev/null +++ b/i18n/ca.toml @@ -0,0 +1,195 @@ +# Translations for English +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "Back to Top" + +[viewComments] +other = "View Comments" +# === baseof == + +# === Post === +[posts] +other = "Posts" +# === Post === + +# === Taxonomy === +[allSome] +other = "All {{ .Some }}" + +[tag] +other = "Tag" + +[tags] +other = "Tags" + +[category] +other = "Category" + +[categories] +other = "Categories" +# === Taxonomy === + +# === Pagination === +[more] +other = "More" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "Select Language" + +[switchTheme] +other = "Switch Theme" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "Powered by {{ .Hugo }} | Theme - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "en" + +[valinePlaceholder] +other = "Your comment ..." + +[facebookLanguageCode] +other = "en_US" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "Search" + +[searchPlaceholder] +other = "Search titles or contents..." + +[clear] +other = "Clear" + +[cancel] +other = "Cancel" + +[noResultsFound] +other = "No results found" + +[lunrLanguageCode] +other = "en" + +[copyToClipboard] +other = "Copy to clipboard" + +[cookieconsentMessage] +other = "This website uses Cookies to improve your experience." + +[cookieconsentDismiss] +other = "Got it!" + +[cookieconsentLink] +other = "Learn more" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "Share on" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "Contents" + +[publishedOnDate] +other = "published on {{ .Date }}" + +[includedInCategories] +other = "included in {{ .Categories }}" + +[wordCount] +one = "One word" +other = "{{ .Count }} words" + +[readingTime] +one = "One minute" +other = "{{ .Count }} minutes" + +[views] +other = "views" + +[author] +other = "Author" + +[updatedOnDate] +other = "Updated on {{ .Date }}" + +[readMarkdown] +other = "Read Markdown" + +[back] +other = "Back" + +[home] +other = "Home" + +[readMore] +other = "Read More" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "Page not found" + +[pageNotFoundText] +other = "The page you're looking for doesn't exist. Sorry." +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "Note" + +[abstract] +other = "Abstract" + +[info] +other = "Info" + +[tip] +other = "Tip" + +[success] +other = "Success" + +[question] +other = "Question" + +[warning] +other = "Warning" + +[failure] +other = "Failure" + +[danger] +other = "Danger" + +[bug] +other = "Bug" + +[example] +other = "Example" + +[quote] +other = "Quote" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "NEW" + +[changed] +other = "CHANGED" + +[deleted] +other = "DELETED" +# === shortcodes/version.html === From f9bb4b1ac92096a20c959db98e54dc8e6ffd20e7 Mon Sep 17 00:00:00 2001 From: prprnya Date: Tue, 22 Feb 2022 15:24:36 +0800 Subject: [PATCH 2/4] Translate `ca.toml` to Catalan --- i18n/ca.toml | 115 ++++++++++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/i18n/ca.toml b/i18n/ca.toml index 6f5a428..68748fc 100644 --- a/i18n/ca.toml +++ b/i18n/ca.toml @@ -1,31 +1,32 @@ -# Translations for English +# Translations for Catalan +# Traducció al Català # https://gohugo.io/content-management/multilingual/#translation-of-strings # === baseof == [backToTop] -other = "Back to Top" +other = "Torna a L'inici" [viewComments] -other = "View Comments" +other = "Visualitza Comentaris" # === baseof == # === Post === [posts] -other = "Posts" +other = "Publicacions" # === Post === # === Taxonomy === [allSome] -other = "All {{ .Some }}" +other = "Tot {{ .Some }}" [tag] -other = "Tag" +other = "Etiqueta" [tags] -other = "Tags" +other = "Etiquetes" [category] -other = "Category" +other = "Categoria" [categories] other = "Categories" @@ -33,163 +34,163 @@ other = "Categories" # === Pagination === [more] -other = "More" +other = "Més" # === Pagination === # === partials/header.html === [selectLanguage] -other = "Select Language" +other = "Escolliu L'idioma" [switchTheme] -other = "Switch Theme" +other = "Canvia Tema" # === partials/header.html === # === partials/footer.html === [poweredBySome] -other = "Powered by {{ .Hugo }} | Theme - {{ .Theme }}" +other = "Amb la tecnologia de {{ .Hugo }} | Tema - {{ .Theme }}" # === partials/footer.html === # === partials/comment.html === [valineLang] -other = "en" +other = "ca" [valinePlaceholder] -other = "Your comment ..." +other = "El teu comentari ..." [facebookLanguageCode] -other = "en_US" +other = "ca_ES" # === partials/comment.html === # === partials/assets.html === [search] -other = "Search" +other = "Buscar" [searchPlaceholder] -other = "Search titles or contents..." +other = "Buscar títols o continguts..." [clear] -other = "Clear" +other = "Esborra" [cancel] -other = "Cancel" +other = "Cancel·lar" [noResultsFound] -other = "No results found" +other = "Sense resultats" [lunrLanguageCode] -other = "en" +other = "ca" [copyToClipboard] -other = "Copy to clipboard" +other = "Copiar al portapapers" [cookieconsentMessage] -other = "This website uses Cookies to improve your experience." +other = "Aquest lloc web utilitza cookies per millorar la teva experiència." [cookieconsentDismiss] -other = "Got it!" +other = "Entenc!" [cookieconsentLink] -other = "Learn more" +other = "Més informació" # === partials/assets.html === # === partials/plugin/share.html === [shareOn] -other = "Share on" +other = "Comparteix a" # === partials/plugin/share.html === # === posts/single.html === [contents] -other = "Contents" +other = "Continguts" [publishedOnDate] -other = "published on {{ .Date }}" +other = "publicat el {{ .Date }}" [includedInCategories] -other = "included in {{ .Categories }}" +other = "inclòs en {{ .Categories }}" [wordCount] -one = "One word" -other = "{{ .Count }} words" +one = "Una paraula" +other = "{{ .Count }} paraules" [readingTime] -one = "One minute" -other = "{{ .Count }} minutes" +one = "Un minut" +other = "{{ .Count }} minuts" [views] -other = "views" +other = "vistes" [author] -other = "Author" +other = "Autor" [updatedOnDate] -other = "Updated on {{ .Date }}" +other = "Actualitzat el {{ .Date }}" [readMarkdown] -other = "Read Markdown" +other = "Llegeix Markdown" [back] -other = "Back" +other = "Tornar" [home] -other = "Home" +other = "Inici" [readMore] -other = "Read More" +other = "Llegeix Més" # === posts/single.html === # === 404.html === [pageNotFound] -other = "Page not found" +other = "Pàgina no trobada" [pageNotFoundText] -other = "The page you're looking for doesn't exist. Sorry." +other = "La pàgina que estàs buscant no existeix. Ho sento." # === 404.html === # === shortcodes/admonition.html === [note] -other = "Note" +other = "Nota" [abstract] -other = "Abstract" +other = "Resum" [info] -other = "Info" +other = "Informació" [tip] -other = "Tip" +other = "Consell" [success] -other = "Success" +other = "Èxit" [question] -other = "Question" +other = "Pregunta" [warning] -other = "Warning" +other = "Advertència" [failure] -other = "Failure" +other = "Fracàs" [danger] -other = "Danger" +other = "Perill" [bug] -other = "Bug" +other = "Microbi" [example] -other = "Example" +other = "Exemple" [quote] -other = "Quote" +other = "Citar" # === shortcodes/admonition.html === # === shortcodes/version.html === [new] -other = "NEW" +other = "NOVA" [changed] -other = "CHANGED" +other = "CANVIAT" [deleted] -other = "DELETED" +other = "SUPRIMIT" # === shortcodes/version.html === From 846bb33101660471d0cdb27aa0ee0ca3ce6cfc52 Mon Sep 17 00:00:00 2001 From: prprnya Date: Tue, 22 Feb 2022 20:05:04 +0800 Subject: [PATCH 3/4] Update i18n info in readme --- README.md | 1 + README.zh-cn.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 76a9d14..01ad40b 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ LoveIt supports the following languages: * Russian * Romanian * Vietnamese +* Catalan * [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls) [Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility) diff --git a/README.zh-cn.md b/README.zh-cn.md index f3368b8..f0ea2f5 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -135,6 +135,7 @@ LoveIt 支持下列语言: * 俄语 * 罗马尼亚语 * 越南语 +* 加泰罗尼亚语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) From b683ef5ccda661235ebe2c2c440564ef3171b796 Mon Sep 17 00:00:00 2001 From: prprnya Date: Tue, 22 Feb 2022 20:43:25 +0800 Subject: [PATCH 4/4] fix(i18n): typo in `ca.toml` --- i18n/ca.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/ca.toml b/i18n/ca.toml index 68748fc..097b05c 100644 --- a/i18n/ca.toml +++ b/i18n/ca.toml @@ -47,7 +47,7 @@ other = "Canvia Tema" # === partials/footer.html === [poweredBySome] -other = "Amb la tecnologia de {{ .Hugo }} | Tema - {{ .Theme }}" +other = "Impulsat per {{ .Hugo }} | Tema - {{ .Theme }}" # === partials/footer.html === # === partials/comment.html ===