summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-06-27 13:22:30 -0300
committer无闻 <u@gogs.io>2016-06-28 00:22:30 +0800
commit6efb1e5626b8ef5578d56f81ca898fb666bbbe89 (patch)
tree873112b30f06a077269d649f5c70dd6739bd17b0 /templates
parent73b4acbb639e6564f2a47e995f21ee50d78b283a (diff)
downloadgitea-6efb1e5626b8ef5578d56f81ca898fb666bbbe89.tar.gz
gitea-6efb1e5626b8ef5578d56f81ca898fb666bbbe89.zip
Localize collaboration settings. (#3100)
Closes #2764
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/collaboration.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl
index 0ad48f8c90..104e92ceb4 100644
--- a/templates/repo/settings/collaboration.tmpl
+++ b/templates/repo/settings/collaboration.tmpl
@@ -21,12 +21,12 @@
<div class="ui eight wide column">
<span class="octicon octicon-shield"></span>
<div class="ui inline dropdown">
- <div class="text">{{.Collaboration.ModeName}}</div>
+ <div class="text">{{$.i18n.Tr .Collaboration.ModeI18nKey}}</div>
<i class="dropdown icon"></i>
<div class="access-mode menu" data-url="{{$.Link}}/access_mode" data-uid="{{.Id}}">
- <div class="item" data-text="Admin" data-value="3">Admin</div>
- <div class="item" data-text="Write" data-value="2">Write</div>
- <div class="item" data-text="Read" data-value="1">Read</div>
+ <div class="item" data-text="{{$.i18n.Tr "repo.settings.collaboration.admin"}}" data-value="3">{{$.i18n.Tr "repo.settings.collaboration.admin"}}</div>
+ <div class="item" data-text="{{$.i18n.Tr "repo.settings.collaboration.write"}}" data-value="2">{{$.i18n.Tr "repo.settings.collaboration.write"}}</div>
+ <div class="item" data-text="{{$.i18n.Tr "repo.settings.collaboration.read"}}" data-value="1">{{$.i18n.Tr "repo.settings.collaboration.read"}}</div>
</div>
</div>
</div>