summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPatrick G <geek1011@users.noreply.github.com>2017-03-11 01:28:25 +0000
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-11 09:28:25 +0800
commitccc15b9e1a3ddaa2fdf82970d574c9f84449aa3d (patch)
treec50a916e9e06b47aa62aac1b8e35e7dded537ef1 /templates
parent74cde12677bc548487ed1caf192eb19b0b7cf99c (diff)
downloadgitea-ccc15b9e1a3ddaa2fdf82970d574c9f84449aa3d.tar.gz
gitea-ccc15b9e1a3ddaa2fdf82970d574c9f84449aa3d.zip
Make strings translatable (#1188) (#1198)
* Add strings to ini * Make strings translatable (#1188)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/branches.tmpl12
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl
index 79dd05392e..46ecac37fc 100644
--- a/templates/repo/settings/branches.tmpl
+++ b/templates/repo/settings/branches.tmpl
@@ -14,9 +14,7 @@
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="default_branch">
<div class="item">
- The default branch is considered the "base" branch in your repository,
- against which all pull requests and code commits are automatically made,
- unless you specify a different branch.
+ {{.i18n.Tr "settings.default_branch_desc"}}
</div>
{{if not .Repository.IsBare}}
<div class="ui grid padded">
@@ -53,11 +51,11 @@
<div class="ui fluid dropdown selection visible" tabindex="0">
<select id="protectedBranch" name="branch" data-url="{{.Repository.Link}}/settings/branches?action=protected_branch">
{{range .LeftBranches}}
- <option value="">Choose a branch...</option>
+ <option value="">{{.i18n.Tr "settings.choose_branch"}}</option>
<option value="{{.}}">{{.}}</option>
{{end}}
</select><i class="dropdown icon"></i>
- <div class="default text">Choose a branch...</div>
+ <div class="default text">{{.i18n.Tr "settings.choose_branch"}}</div>
<div class="menu transition hidden" tabindex="-1" style="display: block !important;">
{{range .LeftBranches}}
<div class="item" data-value="{{.}}">{{.}}</div>
@@ -77,7 +75,7 @@
<td class="right aligned"><button class="rm ui red button" data-url="{{$.Repository.Link}}/settings/branches?action=protected_branch&id={{.ID}}" data-val="{{.BranchName}}">Delete</button></td>
</tr>
{{else}}
- <tr class="center aligned"><td>There is no protected branch</td></tr>
+ <tr class="center aligned"><td>{{.i18n.Tr "settings.no_protected_branch"}}</td></tr>
{{end}}
</tbody>
</table>
@@ -88,4 +86,4 @@
</div>
</div>
</div>
-{{template "base/footer" .}} \ No newline at end of file
+{{template "base/footer" .}}