Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

added zh-CN locale files #1218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions config/locales/views/organizations/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
zh-CN:
views:
organizations:
select_organization: '为你的新教室选择一个组织'
no_organizations: '你的Github帐户未关联到任何组织。'
please_create_or_authorize_new_organization: "请 <a href='https://github.com/organizations/new'>在GitHub.com创建一个组织</a> 或 %{authorize_href} 然后返回。"
authorize_organization_access_link: "授权已存在的组织"
grant_organization_access: "授权给未列出的组织"
grant_organization_access_protip: "<strong>提示!</strong> 没看到你的组织?你需要先 %{href} 。"
grant_organization_access_link: '授权给我们'
you_are_not_owner: '由于你不是所有者因此无法添加这个组织到教室。'
already_added: '@%{owner} 已将这个组织添加到GitHub Classroom'
manage_classroom: '管理教室'
edit: '编辑'
invite_administrator: '邀请其他管理员'
add_to_organization: '1. 添加他们到你的GitHub 组织'
must_add_as_owner: '如果想让他们进行访问,你必须添加他们为组织的所有者。'
link_to_add_owner: '你可以在这里做 %{href}'
give_this_link: '2. 给他们这个地址'
give_this_link_desc: '登录后,他们会被自动添加到这个教室。'
copy_to_clipboard: '复制到剪贴板'
copied: '已复制!'
copy_classroom_link: '复制教室链接'
continue: '继续'
individual_assignments: '个人作业'
group_assignments: '小组作业'
are_you_sure: '你绝对确认?'
delete_warning: "如果你不仔细阅读这个,可能会有未知错误发生!"
delete_consequences_html: "这个操作 <strong>无法</strong> 恢复。请注意重置和删除这个教室会删除所有<strong>%{organization}</strong>组织下的库和团队。"
delete_confirm: '请输入组织名称来确认'
delete_submit: '重置并删除这个教室'
classroom_settings: '教室设置'
classroom_profile: '教室信息'
student_identifiers: '学生标识'
team_management: '团队管理'
invite_other_admin: '邀请其他管理员'
profile_information: '用户信息'
save_changes: '保存更改'
theres_no_going_back: '一旦重置教室就无法撤销操作,请慎重。'
new_classroom: '新教室'
classrooms: '教室'
no_classrooms: "你没有管理任何教室。"
no_classrooms_desc: '你需要至少一个教室才能开始创建作业。'
create_first_classroom: '创建你的第一个教室'
new_assignment: '新作业'
individual_assignment: '个人作业'
individual_assignment_desc: '每个参与者在他们的库上独自完成作业。'
create_individual_assignment: '创建个人作业'
group_assignment: '小组作业'
group_assignment_desc: '参与者创建团队并在共享库中协同工作。'
create_group_assignment: '创建一个小组作业'
name_your_classroom: '命名你的教室'
give_descriptive_name: '请给你的教室一个更具描述性的名字'
set_of_teams: '团队'
no_teams: "这个教室目前还没有任何团队。"
assignments: '作业'
no_assignments: "这个组织目前还没有任何作业。"
create_first_assignment: '创建你的第一个作业'
13 changes: 13 additions & 0 deletions config/locales/views/pages/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zh-CN:
views:
pages:
banner_heading: '你在Github上的课程作业'
banner_subheading: 'GitHub 教室会自动化库创建和访问控制,从而使得在Github分发初始代码和收作业变得很容易。'
see_how_it_works: '看一下它如何工作'
sign_in_to_start: '登录你的Github帐户来开始'
create_assignments: '创建作业'
create_assignments_desc: '分发作业的初始代码。学生们使用Github私有库或公共库来开始他们的个人或小组作业。'
invite_students: '邀请学生'
invite_students_desc: '学生们使用独立的邀请链接访问作业,从而无需事先获得学生的Github用户名和人工管理对作业的访问。'
review_progress: '检查进度'
review_progress_desc: '老师和助教可以按照作业浏览学生提交的答案,这样更容易察看学生进度。'
4 changes: 4 additions & 0 deletions config/locales/views/rosters/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
zh-CN:
views:
rosters:
blank_slate_header: '没有未链接的 GitHub 帐户'
17 changes: 17 additions & 0 deletions config/locales/views/shared/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zh-CN:
views:
shared:
sign_in: '登录'
sign_out: '注销'
stop_impersonating: '停止模仿 @%{user}'
view_gh_profile: '察看 GitHub 用户信息'
community_discussion: '社区讨论'
video_tutorials: '视频教程'
report_bug: '报告错误'
copy_to_clipboard: '复制到剪切板'
copy_invitation_link: '复制邀请链接'
give_this_to_students: '把这个给你的学生'
give_this_to_students_short: '或使用这个短链接'
classroom_is_open_source: "GitHub 教室是 %{href}。"
open_source_href: "开源"
with_love_by_github: "%{octicon_mortar_board} 和 %{octicon_heart} 由 %{href}"
13 changes: 13 additions & 0 deletions config/locales/views/stafftools/assignment_invitations/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zh-CN:
views:
stafftools:
assignment_invitations:
invitation_for: '为如下人的作业邀请 '
created: '已创建'
assignment_type: '单独作业邀请'
assignment_invitation_title: '作业邀请信息'
id: 'ID'
assignment: '作业'
owner: '属于'
invitation_url: '邀请网址'
created_on: '创建于'
26 changes: 26 additions & 0 deletions config/locales/views/stafftools/assignment_repos/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
zh-CN:
views:
stafftools:
assignment_repos:
assignment_title: "%{user_login} 的针对 %{title} 的作业库"
created: '已创建'
assignment_repo: '作业库'
assignment_repo_small: '作业库'
general_info: '通用信息'
id: 'ID'
owned_by: '所有者'
created_by: '创建者'
assignment: '作业'
user: '用户'
created_on: '创建日期'
github_repo: 'GitHub库'
repo_id: '库 ID'
source_code: '源代码'
dangerzone: '危险区'
delete_repo_title: '删除这个作业库'
delete_repo_confirmation: '你绝对确认?'
delete_repo_warning: "如果你不仔细读这个可能会发生不可预知行为!"
delete_repo_desc: '这个操作 <strong>不可</strong> 恢复。<br>
请注意这个操作会删除GitHub Classroom <strong>和</strong> GitHub库。'
repo_id_confirmation: '请输入作业库ID (%{assignment_repo_id}) 确认'
delete_repo_link_text: '删除这个作业库'
17 changes: 17 additions & 0 deletions config/locales/views/stafftools/assignments/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zh-CN:
views:
stafftools:
assignments:
assignment_title: "%{organization_login}的作业"
created: '已创建'
assignment_type: '单独作业'
assignment_info: '作业信息'
id: 'ID'
owned_by: '所有者'
created_by: '创建者'
starter_code: '初始代码'
invitation: '邀请'
created_on: '创建日期'
last_updated: '最后更新'
assignment_repo: '作业库'
deadline: '截止日期'
18 changes: 18 additions & 0 deletions config/locales/views/stafftools/group_assignments/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
zh-CN:
views:
stafftools:
group_assignments:
created: '已创建'
group_assignment: '小组作业'
group_assignment_info: '小组作业信息'
id: 'ID'
owned_by: '所有者'
created_by: '创建者'
starter_code: '初始代码'
groupig: '组'
invitation: '邀请'
created_on: '创建日期'
last_updated: '最后更新'
group_assignment_repo: '小组作业库'
deadline: '截止日期'

13 changes: 13 additions & 0 deletions config/locales/views/stafftools/groups/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zh-CN:
views:
stafftools:
groups:
group: '组'
id: 'ID'
owner: '所有者'
grouping: '组'
github_url: 'GitHub 链接'
created_on: '创建日期'
team_members: '小组成员'
group_title: '%{organization_login}的 %{title} 小组'
created: '已创建'
19 changes: 19 additions & 0 deletions config/locales/views/stafftools/organizations/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
zh-CN:
views:
stafftools:
organizations:
added: '已添加'
remove_owner_header: '你确认要删除这个所有者?'
remove_owner_desc: '请注意这不会把用户从组织中删除。'
remove_user_btn_text: '删除用户'
classroom: '教室'
id: 'ID'
joined_on: '加入时间'
last_updated: '最后更新'
github_organization: 'GitHub 组织'
homepage: '首页'
webhook_url: 'WebHook 网址'
webhook_enabled_check: 'WebHook 已激活?'
owners: '所有者'
assignments: '作业'
groupings: '分组'
13 changes: 13 additions & 0 deletions config/locales/views/stafftools/repo_accesses/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zh-CN:
views:
stafftools:
repo_accesses:
repository_access: '库访问'
accesses: '库访问'
id: 'ID'
github_team_id: 'GitHub 团队 ID'
owned_by: '所有者'
organization: '组织'
created_on: '创建日期'
created: '已创建'
repo_access_info: "%{user_login} 在%{organization_login}内的库访问"
81 changes: 81 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t 'hello'
#
# In views, this is aliased to just `t`:
#
# <%= t('hello') %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# The following keys must be escaped otherwise they will not be retrieved by
# the default I18n backend:
#
# true, false, on, off, yes, no
#
# Instead, surround them with single quotes.
#
# en:
# 'true': 'foo'
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.

zh-CN:
assignment_form:
slug_note: '这会在Github中为这个作业创建的库添加前缀。只能包含字母,下划线,和中画线。'
activerecord:
attributes:
grouping:
title: '你的团队'
slug: '你的团队'
group:
title: '你的团队'
slug: '你的团队'
group_assignment:
title: '你的作业标题'
slug: '你作业库的前缀'
grouping: '你的团队'
public_repo: ''
assignment:
title: '你的作业标题'
slug: '你作业库的前缀'
public_repo: ''
roster:
roster_entries: '你的执勤表'
errors:
models:
grouping:
attributes:
title:
blank: '不能为空'
taken: '你所在的学校已经使用'
group_assignment:
attributes:
title:
blank: '不能为空'
slug:
taken: '必须唯一'
assignment:
attributes:
title:
blank: '不能为空'
slug:
taken: '必须唯一'
roster:
attributes:
roster_entries:
blank: '至少有一个学生。'
views:
pagination:
previous: '上一个'
next: '下一个'
truncate: '...'