Skip to content

Commit

Permalink
add-chinese-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
baqianxin committed Jan 3, 2018
2 parents 8f36eca + c646acd commit 09d10d8
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 84 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/.settings/
/.buildpath
/phpunit.xml
/.idea
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. This projec

## 1.0.1 (in progress)

### Support
- Support The Chinese Language

### Fixed

[#30](https://github.com/luyadev/luya-module-admin/issues/30) Fixed non-unique input fields in account overview.
Expand Down
82 changes: 41 additions & 41 deletions src/messages/cn/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
return [
'language_name' => '中文',
'button_save' => '保存',
'button_confirm' => 'Yes',
'button_abort' => 'Cancel',
'button_send' => 'Send',
'button_confirm' => '确认',
'button_abort' => '取消',
'button_send' => '发送',
'login_pre_title' => 'Login for {title}',
'login_mail' => 'Email',
'login_password' => 'Password',
Expand Down Expand Up @@ -108,29 +108,29 @@

'model_loginform_email_label' => 'Email',
'model_loginform_password_label' => 'Password',
'model_loginform_wrong_user_or_password' => 'Wrong email or password.',
'ngrest_select_no_selection' => 'Nothing selected',
'js_ngrest_error' => 'An error occurred while loading.',
'js_ngrest_rm_page' => 'Do you really want to delete this entry? This can not be undone.',
'js_ngrest_rm_confirm' => 'The record was deleted successfully.',
'js_ngrest_rm_update' => 'The record was updated successfully.',
'js_ngrest_rm_success' => 'The new record was inserted successfully.',
'js_tag_exists' => 'exists already and can not be added.',
'js_tag_success' => 'Tag information was saved.',
'js_admin_reload' => 'The system was updated and has to be reloaded. Please save your changes in the current form. (Clicking "cancel" will display this dialog again in 30 seconds.)',
'model_loginform_wrong_user_or_password' => '密码或用户名错误.',
'ngrest_select_no_selection' => '没有选中项',
'js_ngrest_error' => '加载时发生错误.',
'js_ngrest_rm_page' => '你确认想要删除这一项吗? 此操作无法撤销.',
'js_ngrest_rm_confirm' => '这条记录删除成功.',
'js_ngrest_rm_update' => '这条记录更新成功.',
'js_ngrest_rm_success' => '这条新纪录插入成功.',
'js_tag_exists' => '已存在,不可添加.',
'js_tag_success' => '标签信息已保存.',
'js_admin_reload' => '系统已更新,必须重新加载. 请将您的更改保存在当前表单中. (点击“取消”将在30秒内再次显示该对话框.)',
'js_dir_till' => 'to',
'js_dir_set_date' => 'Set current date',
'js_dir_table_add_row' => 'Add row',
'js_dir_table_add_column' => 'Add column',
'js_dir_image_description' => 'Description',
'js_dir_no_selection' => 'No entries available yet. Add new entries by clicking the <span class="green-text">+</span> below to the left.',
'js_dir_image_upload_ok' => 'The image was created successfully.',
'js_dir_image_filter_error' => 'There was an error while applying the filter to the file.',
'js_dir_upload_wait' => 'Your data is being uploaded and processed. This can take several minutes.',
'js_dir_manager_upload_image_ok' => 'The file was uploaded successfully.',
'js_dir_manager_rm_file_confirm' => 'Do you really want to delete this file?',
'js_dir_manager_rm_file_ok' => 'The file was deleted successfully.',
'js_zaa_server_proccess' => 'Please wait while the server is processing your data.',
'js_dir_set_date' => '设置当前日期',
'js_dir_table_add_row' => '添加行',
'js_dir_table_add_column' => '添加列',
'js_dir_image_description' => '描述',
'js_dir_no_selection' => '没有可用条目. 点击左侧下方的 <span class="green-text">+</span> 添加新条目.',
'js_dir_image_upload_ok' => '图片上传成功.',
'js_dir_image_filter_error' => '将过滤器应用于文件时发生错误.',
'js_dir_upload_wait' => '您的数据正在上传和处理。这可能需要几分钟的时间.',
'js_dir_manager_upload_image_ok'=>'文件上传成功',
'js_dir_manager_rm_file_confirm'=>'你真的要删除这个文件吗?',
'js_dir_manager_rm_file_ok'=>'文件已成功删除',
'js_zaa_server_proccess'=>'请等待服务器正在处理您的数据',

// added translation in 1.0.0-beta4:

Expand All @@ -140,8 +140,8 @@

'aws_gallery_empty' => 'Please select some images to the left to add them to the gallery album.',
'aws_gallery_images' => 'Album images',
'layout_useronline_name' => 'Name',
'layout_useronline_mail' => 'Email',
'layout_useronline_name' => '昵称',
'layout_useronline_mail' => '账号',
'layout_useronline_inactivesince' => 'Inactive since',

// added translations in 1.0.0-beta6
Expand All @@ -156,10 +156,10 @@
'login_securetoken_mail' => '<h1>LUYA Security code</h1><p>Use the following security code to log into your administration at {url}:</p><span style="font-size:22px; letter-spacing:2px; padding:5px 10px; display:inline-block; background-color:#F0F0F0;">{token}</span>',
'login_async_token_error' => 'The provided security code is invalid.',
'login_async_token_globalerror' => 'A Server error occurred, please contact your site administrator.',
'ngrest_crud_csv_export_btn' => 'Generate CSV',
'ngrest_crud_csv_export_btn_dl' => 'Download CSV',
'layout_filemanager_search_text' => 'Enter search term...',
'layout_filemanager_file_captions' => 'File caption',
'ngrest_crud_csv_export_btn' => '生成 CSV',
'ngrest_crud_csv_export_btn_dl' => '下载 CSV',
'layout_filemanager_search_text' => '输入搜索词...',
'layout_filemanager_file_captions' => '文件标题',
'layout_filemanager_file_captions_save_btn' => '保存',
'mode_user_title' => '称呼',
'mode_user_firstname' => '姓氏',
Expand Down Expand Up @@ -259,20 +259,20 @@
'link_dir_target_blank' => 'New window',
'view_index_redirect_file' => 'file',
'view_index_redirect_mail' => 'e-mail address',
'view_index_redirect_mail_help' => 'Please enter a valid e-mail address.',
'view_index_redirect_mail_help' => '请输入一个有效的邮箱地址.',
'menu_button_search' => '搜索',
'layout_btn_user_settings' => 'Preference',
'upload_err_message_0' => 'There is no error, the file uploaded with success.',
'upload_err_message_1' => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
'upload_err_message_2' => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
'upload_err_message_3' => 'The uploaded file was only partially uploaded.',
'upload_err_message_4' => 'No file was uploaded.',
'upload_err_message_6' => 'Missing a temporary folder.',
'upload_err_message_7' => 'Failed to write file to disk.',
'upload_err_message_8' => 'A PHP extension stopped the file upload.',
'upload_err_message_0'=>'没有错误,文件上传成功',
'upload_err_message_1'=>'上传的文件超过了php.ini中的upload_max_filesize设置',
'upload_err_message_2'=>'上传的文件超出了HTML表单中指定的MAX_FILE_SIZE设置。',
'upload_err_message_3'=>'部分文件上传成功',
'upload_err_message_4'=>'没有文件上传成功',
'upload_err_message_6'=>'缺少临时文件夹',
'upload_err_message_7'=>'无法将文件写入磁盘',
'upload_err_message_8'=>'一个PHP扩展阻止了文件上传',
'model_config_atr_name' => 'Identifier',
'model_config_atr_name_hint' => 'Unique identifier for this variable. You can access system config with Config::get(identifier) in your application.',
'model_config_atr_value' => 'Value',
'model_config_atr_is_system' => 'Is system',
'menu_system_item_config' => 'Config variables'
'menu_system_item_config' => '系统变量'
];
86 changes: 43 additions & 43 deletions src/resources/angular-i18n/angular-locale_cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ function getVF(n, opt_precision) {
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
"上午",
"下午"
],
"DAY": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六"
],
"ERANAMES": [
"Before Christ",
Expand All @@ -44,45 +44,45 @@ $provide.value("$locale", {
],
"FIRSTDAYOFWEEK": 6,
"MONTH": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
"一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"冬月",
"腊月"
],
"SHORTDAY": [
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
"",
"",
"",
"",
"",
"",
""
],
"SHORTMONTH": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
"一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"冬月",
"腊月"
],
"WEEKENDRANGE": [
5,
6
6,
0
],
"fullDate": "EEEE, MMMM d, y",
"longDate": "MMMM d, y",
Expand Down Expand Up @@ -122,7 +122,7 @@ $provide.value("$locale", {
}
]
},
"id": "en",
"id": "cn",
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
});
}]);

0 comments on commit 09d10d8

Please sign in to comment.