Compare commits
5 Commits
6b93ae1bbb
...
master
Author | SHA1 | Date | |
---|---|---|---|
6065d24348
|
|||
ca48a10ee9
|
|||
c60a4178de
|
|||
be1a68b0e4 | |||
983693bc03 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@
|
||||
*.doc
|
||||
*.docx
|
||||
public
|
||||
.hugo_build.lock
|
||||
|
@@ -8,4 +8,7 @@
|
||||
LanguageName = "Português"
|
||||
weight = 2
|
||||
|
||||
# tip: assign the default language the lowest Weight
|
||||
[sr]
|
||||
title = "Доместос" # just for the sake of showing this is possible
|
||||
LanguageName = "Српски"
|
||||
weight = 2
|
||||
|
13
i18n/autolang.sh
Executable file
13
i18n/autolang.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# This script attempts to automatically generate a language file.
|
||||
# It produces ugly results with strange grammar, but it might save a translator some time.
|
||||
|
||||
[ -z "$1" ] && echo 'Start this script with a language code, e.g. "./autolang.sh el"'
|
||||
|
||||
cat en.toml | while read -r line; do
|
||||
echo "$line" | grep '=' -q && \
|
||||
old="$(echo "$line" | cut -d= -f2)" && \
|
||||
new="$(echo "$old" | trans en:$1 -b -e google)" && \
|
||||
echo "$line" | sed "s/$old/ $new/" >> $1.toml || \
|
||||
echo "$line" >> $1.toml
|
||||
done
|
72
i18n/sr.toml
Normal file
72
i18n/sr.toml
Normal file
@@ -0,0 +1,72 @@
|
||||
[read_more]
|
||||
other = "Још..."
|
||||
|
||||
[copyright]
|
||||
other = "Јавно добро"
|
||||
|
||||
[all_rights]
|
||||
other = "Без задржаних права"
|
||||
|
||||
[share_on]
|
||||
other = "Подели на"
|
||||
|
||||
[featured_posts]
|
||||
other = "Истакнути постови"
|
||||
|
||||
[recent_posts]
|
||||
other = "Скорашњи постови"
|
||||
|
||||
[404_title]
|
||||
other = "Изгубљено"
|
||||
|
||||
[could_not_find]
|
||||
other = "Страница коју тражите није пронађена"
|
||||
|
||||
[go_back]
|
||||
other = "Назад"
|
||||
|
||||
[translations]
|
||||
other = "Преводи"
|
||||
|
||||
[categories]
|
||||
other = "Категорије"
|
||||
|
||||
[tags]
|
||||
other = "Тагови"
|
||||
|
||||
[series]
|
||||
other = "Серијали"
|
||||
|
||||
[all_categories]
|
||||
other = "Све категорије"
|
||||
|
||||
[all_tags]
|
||||
other = "Сви тагови"
|
||||
|
||||
[all_series]
|
||||
other = "Сви серијали"
|
||||
|
||||
[overview]
|
||||
other = "Преглед"
|
||||
|
||||
[reading_time]
|
||||
other = "{{ .ReadingTime }} минута читања"
|
||||
|
||||
[series_posts]
|
||||
other = "Постови у серијалу"
|
||||
|
||||
# search
|
||||
[quick_links]
|
||||
other = "Резултати"
|
||||
[no_matches]
|
||||
other = "Нису пронађени резултати"
|
||||
[search_field_placeholder]
|
||||
other = "Претрага базе знања"
|
||||
[blog_search_field_placeholder]
|
||||
other = "Претрага..."
|
||||
[search_results_label]
|
||||
other = "Резултати претраге"
|
||||
[short_search_query]
|
||||
other = "Упит је прекратак"
|
||||
[type_to_search]
|
||||
other = "Куцај за претрагу"
|
Reference in New Issue
Block a user