Added Serbian translation (#324)

This commit is contained in:
tomaja 2020-05-06 17:50:10 +02:00 committed by GitHub
parent 09e8916138
commit 87923f284c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 223 additions and 23 deletions

View file

@ -134,6 +134,7 @@ LoveIt supports the following languages:
* Italian
* Spanish
* German
* Serbian
* [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls)
[Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility)

View file

@ -129,6 +129,7 @@ LoveIt 支持下列语言:
* 意大利语
* 西班牙语
* 德语
* 塞尔维亚语
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)
[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)

View file

@ -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): |
| 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

View file

@ -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): |
| 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): |
| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
### 4.2 Basic Configuration

View file

@ -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): |
| 西班牙语 | `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): |
| 塞尔维亚语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): |
### 4.2 基本配置

View file

@ -80,12 +80,12 @@ other = "Abbrechen"
[noResultsFound]
other = "Keine Ergebnisse gefunden"
[lunrLanguageLib]
other = "lib/lunr/lunr.de.js"
[lunrLanguageCode]
other = "de"
[lunrLanguageLib]
other = "lib/lunr/lunr.de.js"
[copyToClipboard]
other = "In Zwischenablage kopieren"
# === partials/assets.html ===

View file

@ -79,6 +79,9 @@ other = "Cancel"
[noResultsFound]
other = "No results found"
[lunrLanguageCode]
other = "en"
[copyToClipboard]
other = "Copy to clipboard"
# === partials/assets.html ===

View file

@ -80,12 +80,12 @@ other = "Cancelar"
[noResultsFound]
other = "No se encontraron resultados"
[lunrLanguageLib]
other = "lib/lunr/lunr.es.js"
[lunrLanguageCode]
other = "es"
[lunrLanguageLib]
other = "lib/lunr/lunr.es.js"
[copyToClipboard]
other = "Copiar al portapapeles"
# === partials/assets.html ===

View file

@ -80,12 +80,12 @@ other = "Annuler"
[noResultsFound]
other = "Aucun résultat trouvé"
[lunrLanguageLib]
other = "lib/lunr/lunr.fr.js"
[lunrLanguageCode]
other = "fr"
[lunrLanguageLib]
other = "lib/lunr/lunr.fr.js"
[copyToClipboard]
other = "Copier dans le presse-papiers"
# === partials/assets.html ===

View file

@ -80,12 +80,12 @@ other = "Annulla"
[noResultsFound]
other = "Nessun risultato trovato"
[lunrLanguageLib]
other = "lib/lunr/lunr.it.js"
[lunrLanguageCode]
other = "it"
[lunrLanguageLib]
other = "lib/lunr/lunr.it.js"
[copyToClipboard]
other = "Copia negli appunti"
# === partials/assets.html ===

View file

@ -80,9 +80,6 @@ other = "Anuluj"
[noResultsFound]
other = "Nie znaleziono wyników"
[lunrLanguageLib]
other = "lib/lunr/lunr.pl.js"
[lunrLanguageCode]
other = "pl"

View file

@ -80,12 +80,12 @@ other = "Cancelar"
[noResultsFound]
other = "Nenhum resultado encontrado"
[lunrLanguageLib]
other = "lib/lunr/lunr.pt.js"
[lunrLanguageCode]
other = "pt"
[lunrLanguageLib]
other = "lib/lunr/lunr.pt.js"
[copyToClipboard]
other = "Copiar para a área de transferência"
# === partials/assets.html ===

191
i18n/sr.toml Normal file
View 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 ===

View file

@ -80,11 +80,14 @@ other = "取消"
[noResultsFound]
other = "没有找到结果"
[lunrLanguageCode]
other = "zh"
[lunrLanguageLib]
other = "lib/lunr/lunr.zh.js"
[lunrLanguageCode]
other = "zh"
[lunrSegmentitLib]
other = "lib/lunr/lunr.segmentit.js"
[copyToClipboard]
other = "复制到剪贴板"

View file

@ -19,10 +19,10 @@
{{- end -}}
{{- $source := $cdn.lunrJS | default "lib/lunr/lunr.min.js" -}}
{{- 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 -}}
{{- if eq .Language.Lang "zh-cn" -}}
{{- $config = dict "lunrSegmentitURL" (resources.Get "lib/lunr/lunr.segmentit.js").RelPermalink | dict "search" | merge $config -}}
{{- with T "lunrSegmentitLib" -}}
{{- $config = dict "lunrSegmentitURL" (resources.Get .).RelPermalink | dict "search" | merge $config -}}
{{- end -}}
{{- 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" -}}