Browse Source

修改英文翻译

pull/1425/head
wangjr 3 years ago
parent
commit
c387aaf3e3
8 changed files with 27 additions and 20 deletions
  1. +5
    -4
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +5
    -6
      templates/base/head.tmpl
  4. +4
    -2
      templates/base/head_fluid.tmpl
  5. +4
    -2
      templates/base/head_home.tmpl
  6. +4
    -2
      templates/base/head_pro.tmpl
  7. +1
    -1
      templates/org/header.tmpl
  8. +3
    -3
      templates/org/home_courses.tmpl

+ 5
- 4
options/locale/locale_en-US.ini View File

@@ -221,6 +221,7 @@ show_only_public = Showing only public

issues.in_your_repos = In your repositories
contributors = Contributors
contributor = Contributor

page_title=Explore Better AI
page_small_title=OpenI AI Development Cooperation Platform
@@ -2041,7 +2042,7 @@ org_full_name_holder = Organization Full Name
org_name_helper = Organization names should be short and memorable.
create_org = Create Organization
repo_updated = Updated
repo_released = Released
repo_released = Post
home = Home
people = People
teams = Teams
@@ -2058,8 +2059,8 @@ team_access_desc = Repository access
team_permission_desc = Permission
team_unit_desc = Allow Access to Repository Sections
team_unit_disabled = (Disabled)
selected_couse=Selected course
release_course = Contributors
selected_couse=Selected courses
release_course = Publish course
all_keywords=All keywords
max_selectedPro= Selected up to nine public projects
custom_select_courses = Custom selected courses
@@ -2153,7 +2154,7 @@ teams.all_repositories_helper = Team has access to all repositories. Selecting t
teams.all_repositories_read_permission_desc = This team grants <strong>Read</strong> access to <strong>all repositories</strong>: members can view and clone repositories.
teams.all_repositories_write_permission_desc = This team grants <strong>Write</strong> access to <strong>all repositories</strong>: members can read from and push to repositories.
teams.all_repositories_admin_permission_desc = This team grants <strong>Admin</strong> access to <strong>all repositories</strong>: members can read from, push to and add collaborators to repositories.
teams.join_teams=Join the organization
teams.join_teams=Join in

[admin]
dashboard = Dashboard


+ 1
- 0
options/locale/locale_zh-CN.ini View File

@@ -223,6 +223,7 @@ show_only_public=只显示公开的
issues.in_your_repos=属于该用户项目的

contributors=贡献者
contributor=贡献者

page_title=探索更好的AI
page_small_title=启智AI开发协作平台


+ 5
- 6
templates/base/head.tmpl View File

@@ -200,8 +200,8 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar" .}}
</div><!-- end bar -->
{{if not .IsCourse}}
<div class="notic_content" id ="notic_content" >
<!-- {{if not .IsCourse}} -->
<div class="notic_content" id ="notic_content" style="display: none;">
<a href={{.notice.Link}} class="a_width">
<marquee behavior="scroll" direction="left">
{{.notice.Title}}
@@ -209,7 +209,7 @@ var _hmt = _hmt || [];
</a>
<i class="ri-close-fill x_icon" onclick="closeNoice()"></i>
</div>
{{end}}
<!-- {{end}} -->
{{end}}
{{/*
</div>
@@ -249,8 +249,7 @@ var _hmt = _hmt || [];
document.getElementById("notic_content").style.display='none'
}
}

if(! ".PageIsInstall") {
if( !"{{.IsCourse}}") {
isShowNotice();
}
</script>
</script>

+ 4
- 2
templates/base/head_fluid.tmpl View File

@@ -201,7 +201,7 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar_fluid" .}}
</div><!-- end bar -->
<div class="notic_content" id ="notic_content" >
<div class="notic_content" id ="notic_content" style="display: none;">
<a href={{.notice.Link}} class="a_width">
<marquee behavior="scroll" direction="left">
{{.notice.Title}}
@@ -248,5 +248,7 @@ var _hmt = _hmt || [];
document.getElementById("notic_content").style.display='none'
}
}
isShowNotice();
if( !"{{.IsCourse}}") {
isShowNotice();
}
</script>

+ 4
- 2
templates/base/head_home.tmpl View File

@@ -205,7 +205,7 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar" .}}
</div><!-- end bar -->
<div class="notic_content" id ="notic_content" >
<div class="notic_content" id ="notic_content" style="display: none;" >
<a href={{.notice.Link}} class="a_width">
<marquee behavior="scroll" direction="left">
{{.notice.Title}}
@@ -252,5 +252,7 @@ var _hmt = _hmt || [];
document.getElementById("notic_content").style.display='none'
}
}
isShowNotice();
if( !"{{.IsCourse}}") {
isShowNotice();
}
</script>

+ 4
- 2
templates/base/head_pro.tmpl View File

@@ -201,7 +201,7 @@ var _hmt = _hmt || [];
<div class="ui top secondary stackable main menu following bar dark">
{{template "base/head_navbar_pro" .}}
</div><!-- end bar -->
<div class="notic_content" id ="notic_content" >
<div class="notic_content" id ="notic_content" style="display: none;" >
<a href={{.notice.Link}} class="a_width">
<marquee behavior="scroll" direction="left">
{{.notice.Title}}
@@ -249,5 +249,7 @@ var _hmt = _hmt || [];
document.getElementById("notic_content").style.display='none'
}
}
isShowNotice();
if( !"{{.IsCourse}}") {
isShowNotice();
}
</script>

+ 1
- 1
templates/org/header.tmpl View File

@@ -43,7 +43,7 @@
success:function(json){
data = json;
if (data.code==0) {
$('.alert').html('{{.i18n.Tr "repo.computing.success"}}').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut();
$('.alert').html('{{.i18n.Tr "repo.computing.success"}}').removeClass('alert-danger').addClass('alert-success').show().delay(2000).fadeOut();
} else {
$('.alert').html(data.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut();
}


+ 3
- 3
templates/org/home_courses.tmpl View File

@@ -176,9 +176,9 @@
<a href="{{.Link}}"><strong class="team-name">{{.Alias}}</strong></a>
<p class="text grey">
{{if ne .CreatorID 0}}
{{$.i18n.Tr "home.contributors"}} : {{.Creator.Name}}
{{$.i18n.Tr "home.contributor"}} : {{.Creator.Name}}
{{else}}
{{$.i18n.Tr "home.contributors"}}:{{.Owner.Name}}
{{$.i18n.Tr "home.contributor"}}:{{.Owner.Name}}
{{end}}
</p>
</div>
@@ -433,7 +433,7 @@
success:function(json){
data = json;
if (data.code==0) {
$('.alert').html('{{.i18n.Tr "repo.computing.success"}}').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut();
$('.alert').html('{{.i18n.Tr "repo.computing.success"}}').removeClass('alert-danger').addClass('alert-success').show().delay(2000).fadeOut();
} else {
$('.alert').html(data.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut();
}


Loading…
Cancel
Save