Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Chinese translation #631

Merged
merged 1 commit into from
May 16, 2017
Merged
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
11 changes: 10 additions & 1 deletion app/assets/javascripts/camaleon_cms/admin/tinymce/langs/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ tinymce.addI18n('zh-CN',{
"Poster": "\u5c01\u9762",
"Alternative source": "\u955c\u50cf",
"Paste your embed code below:": "\u5c06\u5185\u5d4c\u4ee3\u7801\u7c98\u8d34\u5728\u4e0b\u9762:",
"Insert file": "插入文件",
"Media": "媒体文件",
"Image": "图片",
"Link": "链接",
"New line at the end": "在末尾插入新行",
"New line": "新行",
"Date/time": "日期/时间",
"Template": "模板",
"Insert/edit media": "插入/编辑媒体文件",
"Insert video": "\u63d2\u5165\u89c6\u9891",
"Embed": "\u5185\u5d4c",
"Nonbreaking space": "\u4e0d\u95f4\u65ad\u7a7a\u683c",
Expand Down Expand Up @@ -216,4 +225,4 @@ tinymce.addI18n('zh-CN',{
"View": "\u89c6\u56fe",
"Table": "\u8868\u683c",
"Format": "\u683c\u5f0f"
});
});
16 changes: 8 additions & 8 deletions app/helpers/camaleon_cms/admin/custom_fields_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def cama_custom_field_elements
}
items[:radio] = {
key: 'radio',
label: 'Radio',
label: t('camaleon_cms.admin.custom_field.fields.radio', default: 'Radio'),
options: {
required: true,
multiple: false,
Expand All @@ -57,7 +57,7 @@ def cama_custom_field_elements

items[:checkbox] = {
key: 'checkbox',
label: 'Checkbox',
label: t('camaleon_cms.admin.custom_field.fields.checkbox', default: 'Checkbox'),
options: {
required: true,
multiple: false,
Expand All @@ -67,7 +67,7 @@ def cama_custom_field_elements
}
items[:checkboxes] = {
key: 'checkboxes',
label: 'Checkboxes',
label: t('camaleon_cms.admin.custom_field.fields.checkboxes', default: 'Checkboxes'),
options: {
required: false,
multiple: false,
Expand All @@ -80,7 +80,7 @@ def cama_custom_field_elements
}
items[:audio] = {
key: 'audio',
label: 'Audio',
label: t('camaleon_cms.admin.custom_field.fields.audio', default: 'Audio'),
options: {
required: true,
multiple: true,
Expand Down Expand Up @@ -147,7 +147,7 @@ def cama_custom_field_elements
}
items[:editor] = {
key: 'editor',
label: 'Editor',
label: t('camaleon_cms.admin.custom_field.fields.editor', default: 'Editor'),
options: {
required: false,
multiple: true,
Expand Down Expand Up @@ -229,7 +229,7 @@ def cama_custom_field_elements
}
items[:url] = {
key: 'url',
label: 'URL',
label: t('camaleon_cms.admin.custom_field.fields.url', default: 'URL'),
options: {
required: true,
multiple: true,
Expand All @@ -240,7 +240,7 @@ def cama_custom_field_elements
}
items[:video] = {
key: 'video',
label: 'Video',
label: t('camaleon_cms.admin.custom_field.fields.video', default: 'Video'),
options: {
required: true,
multiple: true,
Expand Down Expand Up @@ -292,7 +292,7 @@ def cama_custom_field_elements
multiple: true
}
}

# evaluate the content of command value on listing
# sample command: options_from_collection_for_select(current_site.the_posts("commerce").decorate, :id, :the_title)
items[:select_eval] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>

<div class="form-group">
<%= f.label t('.status', default: 'Site Status') %><br>
<%= f.label t('camaleon_cms.admin.table.status', default: 'Site Status') %><br>
<%= f.select :status, current_site.the_status_options, {}, :class => "form-control" %>
</div>
<div class="hidden site_options_for_status status_maintenance">
Expand Down Expand Up @@ -68,4 +68,4 @@
form.find('.site_options_for_status').hide().removeClass('hidden').filter('.status_'+$(this).val()).slideDown();
}).trigger('change');
})
</script>
</script>
37 changes: 24 additions & 13 deletions config/locales/camaleon_cms/admin/zh-CH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ zh-CN:
page_not_exist: "<h1>此页面不存在 :(...</h1><h5>您访问的页面不存在.</h5>"
page_error_500: "<h1>ooops...</h1><h5>内部服务器500错误。 请联系管理员。</h5>"
admin:
request_error_message: "发生错误,请联系管理员。"
request_error_message: "发生错误请联系管理员。"
authorization_error: "你没有授权。"
header:
member_since: "成员开始日期: %{time}"
Expand Down Expand Up @@ -77,9 +77,9 @@ zh-CN:
approved: '批准'
change_status: '该评论状态已经被修改 '
created: '评论已经被创建.'
destroy: '回复经被删除.'
destroy: '回复已经被删除.'
destroy_comments: '评论已经被删除.'
deleted: '回复经被删除.'
deleted: '回复已经被删除.'
error: '没发现该评论'
pending: '处理中'
responses: '回复已经被创建.'
Expand Down Expand Up @@ -118,10 +118,18 @@ zh-CN:
phone: '号码'
users: '用户'
posts: '文章'
video: '视频'
audio: '音频'
editor: '编辑器'
radio: '单选按钮'
checkbox: '复选框'
checkboxes: '多选复选框'
url: '链接'
private_file: '私有文件'
select_eval: '选择评估'
field_attrs: '字段属性'
website: '网站'
multiple_choice: '单选按钮'
multiple_choice: '多选按钮'


login:
Expand All @@ -146,7 +154,7 @@ zh-CN:
invalid_caption: '验证码错误'
email_not_validated: '邮箱未被激活.'
confirm_email_token_incorrect: '激活链接错误'
confirm_email_token_expired: '激活链接已过去'
confirm_email_token_expired: '激活链接已失效'
confirm_email_success: '账户成功激活!'
personal_info: '个人信息'
please_login: '请登录'
Expand Down Expand Up @@ -180,9 +188,10 @@ zh-CN:
home: "主页"
info: "信息"
external: "上传从URL"
folder_name: '文件夾名稱'
reload: '重新加載'
clear_cache: '清除緩存'
folder_name: '文件夹名称'
folder_file_name: '文件夹或文件名'
reload: '重新加载'
clear_cache: '清除缓存'
menus:
link_url: '链接网址'
target: '目标'
Expand All @@ -206,12 +215,12 @@ zh-CN:
data_found_list: '没有数据列表中找到'
delete: '确定删除该记录?'
delete_item: '真的要删除吗?'
edit_menu: '选中您要操作的地方。点击铅笔的图标编辑条目,单击图标的形式x删除条目.'
edit_menu: '选中您要操作的地方。点击铅笔的图标编辑条目单击图标的形式x删除条目'
add_menus: '从左列添加菜单项.'
press_no_continue_work_press_yes_logout: '如果不需要继续操作,请按登出按钮.'
press_no_continue_work_press_yes_logout: '如果不需要继续操作请按登出按钮'
updated_success: '更新成功'
remove_items_submenu: '真的删除此项目及其子菜单项?'
you_must_upload_image: '必须上传图片格式'
you_must_upload_image: '必须上传图片'
you_must_upload_video: '必须上传视频'
so_their_data_has_not_been_saved: '数据还未保存'
no_response_fields: '无响应字段'
Expand All @@ -223,7 +232,7 @@ zh-CN:
was_removed: '被移除.'
processing: '处理中...'
change_photo: '使用下面的形式上传文件。只允许图像文件。'
change_password: '修改你的密码先输入旧密码,然后输入新密码和重复新密码.'
change_password: '修改你的密码先输入旧密码然后输入新密码和重复新密码'
you_must_upload_json_file: '你必须上传一个json文件'
import_process: '导入中'
unauthorized: "拒绝访问"
Expand Down Expand Up @@ -311,7 +320,7 @@ zh-CN:
permission_add_tags: '添加标签权限'
permission_add_content: '允许添加内容'
permission_add_content_summary: '允许添加内容总结'
permission_reviews: '启用该选项以指示是否可以注释帖子内容'
permission_reviews: '启用该选项以指示是否可以评论帖子内容'
permission_add_image_presentation: '允许编辑图片'
permission_manage_template: '允许选择模板。 (template:将用于呈现内容的文件)'
permission_manage_layout: '允许选择字段在内容中布局。 (布局:文件包装器将在其中呈现模板)'
Expand All @@ -329,6 +338,8 @@ zh-CN:
type_contents: '种类内容'
upgrade_to: "升级到"
settings:
comment_anonymous: '允许匿名评论?'
custom_fields_show_shortcodes: '显示自定义字段的短代码?'
activate_create_account: '激活该账户'
activate_login_social_networks: '允许登录'
add_field_group: '添加字段组'
Expand Down