From 63c40796ef0b689350285c6aa6b5981e4a0844a9 Mon Sep 17 00:00:00 2001 From: micw Date: Thu, 5 Sep 2019 11:13:51 +0200 Subject: [PATCH] Display description of 'make this repo private' as help text, not as tooltip (#8097) --- options/locale/locale_cs-CZ.ini | 2 +- options/locale/locale_de-DE.ini | 2 +- options/locale/locale_en-US.ini | 2 +- options/locale/locale_pt-BR.ini | 2 +- options/locale/locale_zh-CN.ini | 2 +- templates/repo/create.tmpl | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/options/locale/locale_cs-CZ.ini b/options/locale/locale_cs-CZ.ini index 67b47bd368..9c0a3e69e8 100644 --- a/options/locale/locale_cs-CZ.ini +++ b/options/locale/locale_cs-CZ.ini @@ -566,7 +566,7 @@ owner=Vlastník repo_name=Název repozitáře repo_name_helper=Dobrý název repozitáře většinou používá krátká, zapamatovatelná a unikátní klíčová slova. visibility=Viditelnost -visibility.tooltip=Pouze majitelé nebo členové organizace to budou moci vidět, pokud mají práva. +visibility_description=Pouze majitelé nebo členové organizace to budou moci vidět, pokud mají práva. visibility_helper=Nastavit repozitář jako soukromý visibility_helper_forced=Váš administrátor vynutil, že nové repozitáře budou soukromé. visibility_fork_helper=(Změna tohoto ovlivní všechny rozštěpení repozitáře.) diff --git a/options/locale/locale_de-DE.ini b/options/locale/locale_de-DE.ini index 0094aba8e1..2e044be46d 100644 --- a/options/locale/locale_de-DE.ini +++ b/options/locale/locale_de-DE.ini @@ -566,7 +566,7 @@ owner=Besitzer repo_name=Repository-Name repo_name_helper=Ein guter Repository-Name besteht normalerweise aus kurzen, unvergesslichen und einzigartigen Schlagwörtern. visibility=Sichtbarkeit -visibility.tooltip=Nur der Eigentümer oder Organisationsmitglieder mit entsprechenden Rechten werden es sehen können. +visibility_description=Nur der Eigentümer oder Organisationsmitglieder mit entsprechenden Rechten werden es sehen können. visibility_helper=In privates Repository umwandeln visibility_helper_forced=Auf dieser Gitea-Instanz können nur private Repositories angelegt werden. visibility_fork_helper=(Eine Änderung dieses Wertes wirkt sich auf alle Forks aus) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b76d82ca86..e577727314 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -567,7 +567,7 @@ owner = Owner repo_name = Repository Name repo_name_helper = Good repository names use short, memorable and unique keywords. visibility = Visibility -visibility.tooltip = Only the owner or the organization members if they have rights, will be able to see it. +visibility_description = Only the owner or the organization members if they have rights, will be able to see it. visibility_helper = Make Repository Private visibility_helper_forced = Your site administrator forces new repositories to be private. visibility_fork_helper = (Changing this will affect all forks.) diff --git a/options/locale/locale_pt-BR.ini b/options/locale/locale_pt-BR.ini index 2275ee5bb2..9841d9ea76 100644 --- a/options/locale/locale_pt-BR.ini +++ b/options/locale/locale_pt-BR.ini @@ -566,7 +566,7 @@ owner=Proprietário repo_name=Nome do repositório repo_name_helper=Um bom nome de repositório é composto por palavras curtas, memorizáveis e únicas. visibility=Visibilidade -visibility.tooltip=Somente o proprietário ou os membros da organização, se tiverem direitos, poderão vê-lo. +visibility_description=Somente o proprietário ou os membros da organização, se tiverem direitos, poderão vê-lo. visibility_helper=Tornar este repositório privado visibility_helper_forced=O administrador do site força novos repositórios a serem privados. visibility_fork_helper=(Esta alteração irá afetar todos os forks.) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 85b2057424..08d6fa9f0b 100644 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -566,7 +566,7 @@ owner=拥有者 repo_name=仓库名称 repo_name_helper=好的存储库名称使用简短、深刻和独特的关键字。 visibility=可见性 -visibility.tooltip=只有组织所有人或拥有权利的组织成员才能看到。 +visibility_description=只有组织所有人或拥有权利的组织成员才能看到。 visibility_helper=将仓库设为私有 visibility_helper_forced=站点管理员强制要求新仓库为私有。 visibility_fork_helper=(修改该值将会影响到所有派生仓库) diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 46289719e8..8163aaefa6 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -38,7 +38,7 @@ {{.i18n.Tr "repo.repo_name_helper"}} -
+
{{if .IsForcedPrivate}} @@ -49,6 +49,7 @@ {{end}}
+ {{.i18n.Tr "repo.visibility_description"}}