Skip to content

Commit

Permalink
add Russian and Ukrainian pluralization strings
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Feb 14, 2024
1 parent 3fe4ca5 commit 67de5ea
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
24 changes: 19 additions & 5 deletions i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ language_name = "Русский" # Shown in language picker for multi-language
date_locale = "ru_RU"
full-stop = "." # Used at the end of a sentence.

# Note on pluralization prefixes:
# - few_: for numbers ending in 2-4, except 12-14, in genitive singular.
# - many_: for all others, including 5-9, 0, and teens (11-14), in genitive plural.

# Menu items.
# Should match the names in config.extra.menu and config.extra.footer_menu.
blog = "блог"
Expand All @@ -18,13 +22,17 @@ sitemap = "карта сайта"
search = "Поиск"
search_icon_title = "Нажмите или используйте $SHORTCUT для открытия поиска" # $SHORTCUT will be replaced with the actual keyboard shortcut.
clear_search = "Очистить поиск" # Title of the X icon next to search input.
result = "результат" # "1 result"
results = "результаты" # "3 results" (also used for 0 results).
zero_results = "Нет результатов"
one_results = "$NUMBER результат"
few_results = "$NUMBER результата" # 2, 3, 4 but not 12-14
many_results = "$NUMBER результатов" # 5-9, 0, 11-14, and others

# Navigation.
read_more = "Читать далее"
post = "пост"
posts = "посты" # Plural of "post".
one_posts = "$NUMBER пост"
few_posts = "$NUMBER поста" # 2, 3, 4 but not 12-14
many_posts = "$NUMBER постов" # 5-9, 0, 11-14, and others
prev = "Пред." # As in "Previous" page.
next = "След." # As in "Next" page.
of = "из" # E.g. Page 1 "of" 3
Expand All @@ -43,8 +51,14 @@ go_to_comments = "Перейти к комментариям"

# Post metadata.
draft = "ЧЕРНОВИК"
min_read = "мин чтения"
words = "слова"
zero_min_read = "<1 мин чтения"
one_min_read = "$NUMBER мин чтения"
few_min_read = "$NUMBER мин чтения" # 2, 3, 4 but not 12-14
many_min_read = "$NUMBER мин чтения" # 5-9, 0, 11-14, and others
zero_words = "Нет слов"
one_words = "$NUMBER слово"
few_words = "$NUMBER слова" # 2, 3, 4 but not 12-14
many_words = "$NUMBER слов" # 5-9, 0, 11-14, and others
last_updated_on = "Последнее обновление"
see_changes = "Смотреть изменения"

Expand Down
26 changes: 20 additions & 6 deletions i18n/uk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# If you would like to help correct errors or improve the translation,
# please open an issue or submit a pull request.
# https://github.com/welpo/tabi

# Note on pluralization prefixes:
# - few_: for numbers ending in 2-4, except 12-14, in genitive singular.
# - many_: for all others, including 5-9, 0, and teens (11-14), in genitive plural.

language_name = "Українська" # Shown in language picker for multi-language sites.
date_locale = "uk_UA"
full-stop = "." # Used at the end of a sentence.
Expand All @@ -22,13 +27,16 @@ sitemap = "карта сайту"
search = "Пошук"
search_icon_title = "Натисніть або використовуйте $SHORTCUT, щоб відкрити пошук" # $SHORTCUT will be replaced with the actual keyboard shortcut.
clear_search = "Очистити пошук" # Title of the X icon next to search input.
result = "результат" # "1 result"
results = "результати" # "3 results" (also used for 0 results).
zero_results = "Немає результатів"
one_results = "$NUMBER результат"
few_results = "$NUMBER результати"
many_results = "$NUMBER результатів"

# Navigation.
read_more = "Читати далі"
post = "пост"
posts = "пости" # Plural of "post".
one_posts = "$NUMBER пост"
few_posts = "$NUMBER пости" # 2, 3, 4 but not 12-14
many_posts = "$NUMBER постів" # 5-9, 0, 11-14, and others
prev = "Попер." # As in "Previous" page.
next = "Наст." # As in "Next" page.
of = "з" # E.g. Page 1 "of" 3
Expand All @@ -47,8 +55,14 @@ go_to_comments = "Перейти до коментарів"

# Post metadata.
draft = "ЧЕРНЕТКА"
min_read = "хв. читання"
words = "слова"
zero_min_read = "<1 хв. читання"
one_min_read = "$NUMBER хв. читання"
few_min_read = "$NUMBER хв. читання" # 2, 3, 4 but not 12-14
many_min_read = "$NUMBER хв. читання" # 5-9, 0, 11-14, and others
zero_words = "Без слів"
one_words = "$NUMBER слово"
few_words = "$NUMBER слова" # 2, 3, 4 but not 12-14
many_words = "$NUMBER слів" # 5-9, 0, 11-14, and others
last_updated_on = "Останнє оновлення"
see_changes = "Переглянути зміни"

Expand Down

0 comments on commit 67de5ea

Please sign in to comment.