Browse Source

repo/settings/options: take naming style examples out of locale string

Unknwon 6 years ago
parent
commit
2295fafb34
3 changed files with 24 additions and 24 deletions
  1. 2 2
      conf/locale/locale_en-US.ini
  2. 20 20
      modules/bindata/bindata.go
  3. 2 2
      templates/repo/settings/options.tmpl

+ 2 - 2
conf/locale/locale_en-US.ini

@@ -586,8 +586,8 @@ settings.issues_desc = Enable builtin lightweight issue tracker
 settings.use_external_issue_tracker = Use external issue tracker
 settings.tracker_url_format = External Issue Tracker URL Format
 settings.tracker_issue_style = External Issue Tracker Naming Style:
-settings.tracker_issue_style.numeric = Numeric <span class="ui light grey text">(1234)</span>
-settings.tracker_issue_style.alphanumeric = Alphanumeric <span class="ui light grey text">(ABC-123, DEFG-234, ...)</span>
+settings.tracker_issue_style.numeric = Numeric
+settings.tracker_issue_style.alphanumeric = Alphanumeric
 settings.tracker_url_format_desc = You can use placeholder <code>{user} {repo} {index}</code> for user name, repository name and issue index.
 settings.pulls_desc = Enable pull requests to accept public contributions
 settings.danger_zone = Danger Zone

File diff suppressed because it is too large
+ 20 - 20
modules/bindata/bindata.go


+ 2 - 2
templates/repo/settings/options.tmpl

@@ -128,13 +128,13 @@
 							<div class="field">
 								<div class="ui radio checkbox">
 									<input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="numeric"  {{if eq .Repository.ExternalTrackerStyle "numeric"}}checked=""{{end}}/>
-									<label>{{.i18n.Tr "repo.settings.tracker_issue_style.numeric" | Safe}}</label>
+									<label>{{.i18n.Tr "repo.settings.tracker_issue_style.numeric"}} <span class="ui light grey text">(#1234)</span></label>
 								</div>
 							</div>
 							<div class="field">
 								<div class="ui radio checkbox">
 									<input class="hidden" tabindex="0" name="tracker_issue_style" type="radio" value="alphanumeric"  {{if eq .Repository.ExternalTrackerStyle "alphanumeric"}}checked=""{{end}}/>
-									<label>{{.i18n.Tr "repo.settings.tracker_issue_style.alphanumeric" | Safe}}</label>
+									<label>{{.i18n.Tr "repo.settings.tracker_issue_style.alphanumeric"}} <span class="ui light grey text">(ABC-123, DEFG-234)</span></label>
 								</div>
 							</div>
 						</div>