mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
Added Serbian translation (#324)
This commit is contained in:
parent
09e8916138
commit
87923f284c
15 changed files with 223 additions and 23 deletions
|
@ -134,6 +134,7 @@ LoveIt supports the following languages:
|
||||||
* Italian
|
* Italian
|
||||||
* Spanish
|
* Spanish
|
||||||
* German
|
* German
|
||||||
|
* Serbian
|
||||||
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)
|
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)
|
||||||
|
|
||||||
[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)
|
[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)
|
||||||
|
|
|
@ -129,6 +129,7 @@ LoveIt 支持下列语言:
|
||||||
* 意大利语
|
* 意大利语
|
||||||
* 西班牙语
|
* 西班牙语
|
||||||
* 德语
|
* 德语
|
||||||
|
* 塞尔维亚语
|
||||||
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)
|
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)
|
||||||
|
|
||||||
[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
|
[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
|
||||||
|
|
|
@ -854,6 +854,8 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s
|
||||||
| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
|
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
|
| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
|
||||||
|
|
||||||
### 4.2 Basic Configuration
|
### 4.2 Basic Configuration
|
||||||
|
|
||||||
|
|
|
@ -859,6 +859,7 @@ In `config/css/_custom.scss`, you can add some css style code to customize the s
|
||||||
| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
|
| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
|
||||||
|
|
||||||
### 4.2 Basic Configuration
|
### 4.2 Basic Configuration
|
||||||
|
|
||||||
|
|
|
@ -862,6 +862,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac
|
||||||
| 意大利语 | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| 意大利语 | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| 西班牙语 | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| 西班牙语 | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
| 德语 | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
| 德语 | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): |
|
||||||
|
| 塞尔维亚语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
|
||||||
|
|
||||||
### 4.2 基本配置
|
### 4.2 基本配置
|
||||||
|
|
||||||
|
|
|
@ -80,12 +80,12 @@ other = "Abbrechen"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "Keine Ergebnisse gefunden"
|
other = "Keine Ergebnisse gefunden"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.de.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "de"
|
other = "de"
|
||||||
|
|
||||||
|
[lunrLanguageLib]
|
||||||
|
other = "lib/lunr/lunr.de.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "In Zwischenablage kopieren"
|
other = "In Zwischenablage kopieren"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
|
@ -79,6 +79,9 @@ other = "Cancel"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "No results found"
|
other = "No results found"
|
||||||
|
|
||||||
|
[lunrLanguageCode]
|
||||||
|
other = "en"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "Copy to clipboard"
|
other = "Copy to clipboard"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
|
@ -80,12 +80,12 @@ other = "Cancelar"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "No se encontraron resultados"
|
other = "No se encontraron resultados"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.es.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "es"
|
other = "es"
|
||||||
|
|
||||||
|
[lunrLanguageLib]
|
||||||
|
other = "lib/lunr/lunr.es.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "Copiar al portapapeles"
|
other = "Copiar al portapapeles"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
|
@ -80,12 +80,12 @@ other = "Annuler"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "Aucun résultat trouvé"
|
other = "Aucun résultat trouvé"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.fr.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "fr"
|
other = "fr"
|
||||||
|
|
||||||
|
[lunrLanguageLib]
|
||||||
|
other = "lib/lunr/lunr.fr.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "Copier dans le presse-papiers"
|
other = "Copier dans le presse-papiers"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
|
@ -80,12 +80,12 @@ other = "Annulla"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "Nessun risultato trovato"
|
other = "Nessun risultato trovato"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.it.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "it"
|
other = "it"
|
||||||
|
|
||||||
|
[lunrLanguageLib]
|
||||||
|
other = "lib/lunr/lunr.it.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "Copia negli appunti"
|
other = "Copia negli appunti"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
|
@ -80,9 +80,6 @@ other = "Anuluj"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "Nie znaleziono wyników"
|
other = "Nie znaleziono wyników"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.pl.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "pl"
|
other = "pl"
|
||||||
|
|
||||||
|
|
|
@ -80,12 +80,12 @@ other = "Cancelar"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "Nenhum resultado encontrado"
|
other = "Nenhum resultado encontrado"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
|
||||||
other = "lib/lunr/lunr.pt.js"
|
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrLanguageCode]
|
||||||
other = "pt"
|
other = "pt"
|
||||||
|
|
||||||
|
[lunrLanguageLib]
|
||||||
|
other = "lib/lunr/lunr.pt.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "Copiar para a área de transferência"
|
other = "Copiar para a área de transferência"
|
||||||
# === partials/assets.html ===
|
# === partials/assets.html ===
|
||||||
|
|
191
i18n/sr.toml
Normal file
191
i18n/sr.toml
Normal file
|
@ -0,0 +1,191 @@
|
||||||
|
# Translations for Serbian
|
||||||
|
# Превод на Српски
|
||||||
|
# https://gohugo.io/content-management/multilingual/#translation-of-strings
|
||||||
|
|
||||||
|
# === baseof ==
|
||||||
|
[backToTop]
|
||||||
|
other = "Назад на Врх"
|
||||||
|
|
||||||
|
[viewComments]
|
||||||
|
other = "Погледај Коментаре"
|
||||||
|
# === baseof ==
|
||||||
|
|
||||||
|
# === Post ===
|
||||||
|
[posts]
|
||||||
|
other = "Постови"
|
||||||
|
# === Post ===
|
||||||
|
|
||||||
|
# === Taxonomy ===
|
||||||
|
[allSome]
|
||||||
|
other = "Све %s"
|
||||||
|
|
||||||
|
[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 = "Покреће %s"
|
||||||
|
|
||||||
|
[theme]
|
||||||
|
other = "Тема"
|
||||||
|
# === partials/footer.html ===
|
||||||
|
|
||||||
|
# === partials/comment.html ===
|
||||||
|
[valineLang]
|
||||||
|
other = "sr"
|
||||||
|
|
||||||
|
[valinePlaceholder]
|
||||||
|
other = "Ваш коментар ..."
|
||||||
|
|
||||||
|
[facebookLanguageCode]
|
||||||
|
other = "sr_RS"
|
||||||
|
# === partials/comment.html ===
|
||||||
|
|
||||||
|
# === partials/assets.html ===
|
||||||
|
[search]
|
||||||
|
other = "Претрага"
|
||||||
|
|
||||||
|
[searchPlaceholder]
|
||||||
|
other = "Претражи наслове или садржај..."
|
||||||
|
|
||||||
|
[clear]
|
||||||
|
other = "Очисти"
|
||||||
|
|
||||||
|
[cancel]
|
||||||
|
other = "Поништи"
|
||||||
|
|
||||||
|
[noResultsFound]
|
||||||
|
other = "Без резултата"
|
||||||
|
|
||||||
|
[lunrLanguageCode]
|
||||||
|
other = "sr"
|
||||||
|
|
||||||
|
[copyToClipboard]
|
||||||
|
other = "Копирај на радну таблу"
|
||||||
|
# === partials/assets.html ===
|
||||||
|
|
||||||
|
# === partials/plugin/share.html ===
|
||||||
|
[shareOn]
|
||||||
|
other = "Подели на"
|
||||||
|
# === partials/plugin/share.html ===
|
||||||
|
|
||||||
|
# === posts/single.html ===
|
||||||
|
[contents]
|
||||||
|
other = "Садржаји"
|
||||||
|
|
||||||
|
[publish]
|
||||||
|
other = "објављено"
|
||||||
|
|
||||||
|
[included]
|
||||||
|
other = "укључено"
|
||||||
|
|
||||||
|
[wordCount]
|
||||||
|
other = "око {{ .Count }} речи"
|
||||||
|
|
||||||
|
[readingTime]
|
||||||
|
other = "{{ .Count }} мин"
|
||||||
|
|
||||||
|
[views]
|
||||||
|
other = "прегледа"
|
||||||
|
|
||||||
|
[author]
|
||||||
|
other = "Аутор"
|
||||||
|
|
||||||
|
[lastMod]
|
||||||
|
other = "Чланак је обновљен %s"
|
||||||
|
|
||||||
|
[license]
|
||||||
|
other = "Објављено под условима %s лиценце"
|
||||||
|
|
||||||
|
[seeMarkdown]
|
||||||
|
other = "Читај Markdown"
|
||||||
|
|
||||||
|
[back]
|
||||||
|
other = "Назад"
|
||||||
|
|
||||||
|
[home]
|
||||||
|
other = "Почетна"
|
||||||
|
|
||||||
|
[readMore]
|
||||||
|
other = "Прочитај више"
|
||||||
|
# === posts/single.html ===
|
||||||
|
|
||||||
|
# === 404.html ===
|
||||||
|
[pageNotFound]
|
||||||
|
other = "Страница није пронађена"
|
||||||
|
|
||||||
|
[pageNotFoundText]
|
||||||
|
other = "Страница коју тражите не постоји. Жао нам је."
|
||||||
|
# === 404.html ===
|
||||||
|
|
||||||
|
# === 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 ===
|
|
@ -80,11 +80,14 @@ other = "取消"
|
||||||
[noResultsFound]
|
[noResultsFound]
|
||||||
other = "没有找到结果"
|
other = "没有找到结果"
|
||||||
|
|
||||||
|
[lunrLanguageCode]
|
||||||
|
other = "zh"
|
||||||
|
|
||||||
[lunrLanguageLib]
|
[lunrLanguageLib]
|
||||||
other = "lib/lunr/lunr.zh.js"
|
other = "lib/lunr/lunr.zh.js"
|
||||||
|
|
||||||
[lunrLanguageCode]
|
[lunrSegmentitLib]
|
||||||
other = "zh"
|
other = "lib/lunr/lunr.segmentit.js"
|
||||||
|
|
||||||
[copyToClipboard]
|
[copyToClipboard]
|
||||||
other = "复制到剪贴板"
|
other = "复制到剪贴板"
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $source := $cdn.lunrJS | default "lib/lunr/lunr.min.js" -}}
|
{{- $source := $cdn.lunrJS | default "lib/lunr/lunr.min.js" -}}
|
||||||
{{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
{{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
||||||
{{- if ne .Language.Lang "en" -}}
|
{{- if T "lunrLanguageLib" -}}
|
||||||
{{- $config = T "lunrLanguageCode" | dict "lunrLanguageCode" | dict "search" | merge $config -}}
|
{{- $config = T "lunrLanguageCode" | dict "lunrLanguageCode" | dict "search" | merge $config -}}
|
||||||
{{- if eq .Language.Lang "zh-cn" -}}
|
{{- with T "lunrSegmentitLib" -}}
|
||||||
{{- $config = dict "lunrSegmentitURL" (resources.Get "lib/lunr/lunr.segmentit.js").RelPermalink | dict "search" | merge $config -}}
|
{{- $config = dict "lunrSegmentitURL" (resources.Get .).RelPermalink | dict "search" | merge $config -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- dict "source" "lib/lunr/lunr.stemmer.support.js" "minify" true "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
{{- dict "source" "lib/lunr/lunr.stemmer.support.js" "minify" true "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
||||||
{{- dict "source" (T "lunrLanguageLib") "minify" true "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
{{- dict "source" (T "lunrLanguageLib") "minify" true "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
||||||
|
|
Loading…
Reference in a new issue