[I18N] Allow custom repo size format

Following https://codeberg.org/forgejo/forgejo/pulls/2528#issuecomment-1721846

- simplify the code
- allow to have custom format in translations
- provide proper Russian translation because test depends on it
This commit is contained in:
0ko 2024-04-02 18:43:12 +05:00
parent 7e575603ee
commit 2f38c2220f
4 changed files with 6 additions and 11 deletions

View file

@ -1011,6 +1011,7 @@ owner_helper = Some organizations may not show up in the dropdown due to a maxim
repo_name = Repository name
repo_name_helper = Good repository names use short, memorable and unique keywords.
repo_size = Repository Size
size_format = %[1]s: %[2]s, %[3]s: %[4]s
template = Template
template_select = Select a template.
template_helper = Make repository a template

View file

@ -993,6 +993,7 @@ owner_helper=Некоторые организации могут не отоб
repo_name=Название репозитория
repo_name_helper=Лучшие названия репозиториев состоят из коротких, легко запоминаемых и уникальных ключевых слов.
repo_size=Размер репозитория
size_format = `%[1]s: %[2]s; %[3]s: %[4]s`
template=Шаблон
template_select=Выбрать шаблон.
template_helper=Сделать репозиторий шаблоном
@ -3773,4 +3774,4 @@ keyword_search_unavailable = Поиск по ключевым словам не
match_tooltip = Включать только результаты, точно соответствующие запросу
code_search_unavailable = Поиск по коду сейчас недоступен. Уточните подробности у администратора.
runner_kind = Поиск раннеров...
code_search_by_git_grep = Эти результаты получены через «git grep». Результатов может быть больше, если администратор сервера включит индексатор кода.
code_search_by_git_grep = Эти результаты получены через «git grep». Результатов может быть больше, если администратор сервера включит индексатор кода.