aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2020-12-21 13:12:13 +0000
committerGitHub <noreply@github.com>2020-12-21 21:12:13 +0800
commit7a3c71433ac2da102fa852287c65d7617af127e9 (patch)
tree0edb3ac2f5926752cdd2ec15c4c1f7ff3141baf7
parent7dd32276b7a86655ea8fe0e73dce51138d5a0bd4 (diff)
downloadgitea-7a3c71433ac2da102fa852287c65d7617af127e9.tar.gz
gitea-7a3c71433ac2da102fa852287c65d7617af127e9.zip
expose translation of previously hardcoded string (#14087)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/repo/create.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 41325dafbd..1d43c03017 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -654,6 +654,7 @@ email_notifications.submit = Set Email Preference
[repo]
owner = Owner
+owner_helper = Some organizations may not show up in the dropdown due to a maximum repository count limit.
repo_name = Repository Name
repo_name_helper = Good repository names use short, memorable and unique keywords.
repo_size = Repository Size
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 82c1b038b4..7d71043c34 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -31,7 +31,7 @@
{{end}}
</div>
</div>
- <span class="help">Some organizations may not show up in the dropdown due to a maximum repository count limit</span>
+ <span class="help">{{.i18n.Tr "repo.owner_helper"}}</span>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}">