Przeglądaj źródła

[repo/create] Reword helper and tooltip text

- Moved tooltip text to i18n files
- Repository name help text: More information about how it defines the
  repository path. Suggests it should be specific.
- Gitignore tooltip: Better explanation of what it is (but still
  suggests ignoring for data repositories).
- License tooltip: "Essential".
- Readme tooltip: Explains the purpose of a README to encourage users to
  use it for more information.
Achilleas Koutsou 5 lat temu
rodzic
commit
aa53a88d56

+ 4 - 1
conf/locale/locale_en-GB.ini

@@ -400,7 +400,7 @@ delete_account_desc=This account is going to be deleted permanently, do you want
 [repo]
 owner=Owner
 repo_name=Repository Name
-repo_name_helper=Repository names should be short, memorable and unique. It must be one word (no spaces) and can contain letters (a-z), numbers (0-9), dash (-), underscore (_), or dot (.) characters.
+repo_name_helper=Will be used to define the URL (path) of the repository. It must be one word (no spaces) and can contain letters (a-z, A-Z), numbers (0-9), dash (-), underscore (_), or dot (.) characters. Repository names should be short, unique and specific (do not use a generic name like "dataset", "plos_paper", etc).
 visibility=Private
 visiblity_helper=Accessible only to owner and assigned collaborators
 visiblity_helper_forced=New repositories are private by default. You can change the state later.
@@ -412,10 +412,13 @@ fork_visiblity_helper=You cannot alter the visibility of a forked repository.
 repo_desc=Description
 repo_lang=Language
 repo_gitignore_helper=Select .gitignore templates
+repo_gitignore_tooltip = Files to exclude from versioning. In the case of data repositories you probably don't need this. If in doubt, ignore.
 license=Licence
 license_helper=Select a licence file
+license_tooltip=A license is essential for a data or code publication. You can choose a license now, or add a license file to the repository later.
 readme=Readme
 readme_helper=Select a readme template
+readme_tooltip=The file to enter a description of your repository with information to understand and use it. The README file contents will be displayed when accessing your repository through a web browser.
 auto_init=Initialise this repository with selected files and template
 create_repo=Create Repository
 default_branch=Default Branch

+ 4 - 1
conf/locale/locale_en-US.ini

@@ -400,7 +400,7 @@ delete_account_desc = This account is going to be deleted permanently, do you wa
 [repo]
 owner = Owner
 repo_name = Repository Name
-repo_name_helper = Repository names should be short, memorable and unique. It must be one word (no spaces) and can contain letters (a-z), numbers (0-9), dash (-), underscore (_), or dot (.) characters.
+repo_name_helper = Will be used to define the URL (path) of the repository. It must be one word (no spaces) and can contain letters (a-z, A-Z), numbers (0-9), dash (-), underscore (_), or dot (.) characters. Repository names should be short, unique and specific (do not use a generic name like "dataset", "plos_paper", etc).
 visibility = Private
 visiblity_helper = Accessible only to owner and assigned collaborators
 visiblity_helper_forced = New repositories are private by default. You can change the state later.
@@ -415,10 +415,13 @@ fork_visiblity_helper = You cannot alter the visibility of a forked repository.
 repo_desc = Description
 repo_lang = Language
 repo_gitignore_helper = Select .gitignore templates
+repo_gitignore_tooltip = Files to exclude from versioning. In the case of data repositories you probably don't need this. If in doubt, ignore.
 license = License
 license_helper = Select a license file
+license_tooltip = A license is essential for a data or code publication. You can choose a license now, or add a license file to the repository later.
 readme = Readme
 readme_helper = Select a readme template
+readme_tooltip = The file to enter a description of your repository with information to understand and use it. The README file contents will be displayed when accessing your repository through a web browser.
 auto_init = Initialize this repository with selected files and template
 create_repo = Create Repository
 default_branch = Default Branch

+ 3 - 3
templates/repo/create.tmpl

@@ -62,7 +62,7 @@
 					Initial Files
 				</h3>
 				<div class="ui attached segment">
-					<div class="inline field" data-tooltip="In the case of data repositories you probably don't need this">
+					<div class="inline field" data-tooltip={{.i18n.Tr "repo.repo_gitignore_tooltip"}}>
 						<label>.gitignore</label>
 						<a target="_blank" href="https://git-scm.com/docs/gitignore"><span class="octicon octicon-question"></span></a>
 						<div class="ui multiple search normal selection dropdown">
@@ -75,7 +75,7 @@
 							</div>
 						</div>
 					</div>
-					<div class="inline field" data-tooltip="You can choose a license now, or add one to the repository later">
+					<div class="inline field" data-tooltip={{.i18n.Tr "repo.license_tooltip"}}>
 						<label>{{.i18n.Tr "repo.license"}}</label>
 						<a target="_blank" href="/G-Node/Info/wiki/Licensing"><span class="octicon octicon-question"></span></a>
 						<div class="ui search selection dropdown">
@@ -90,7 +90,7 @@
 						</div>
 					</div>
 
-					<div class="inline field">
+					<div class="inline field" data-tooltip={{.i18n.Tr "repo.readme_tooltip"}}>
 						<label>{{.i18n.Tr "repo.readme"}}</label>
 						<div class="ui selection dropdown">
 							<input type="hidden" name="readme" value="{{.readme}}">