Skip to content

Commit

Permalink
Merge pull request #51 from holywen/l10n
Browse files Browse the repository at this point in the history
user interface i18n and l10n
  • Loading branch information
virusdefender authored Oct 30, 2019
2 parents d8a94a6 + 6e9d022 commit 214f83c
Show file tree
Hide file tree
Showing 35 changed files with 652 additions and 316 deletions.
16 changes: 15 additions & 1 deletion src/i18n/admin/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ export const m = {
Score: 'Score',
Hint: 'Hint',
Source: 'Source',
Edit_Problem: 'Edit Problme',
Add_Problme: 'Add Problem',
High: 'High',
Mid: 'Mid',
Low: 'Low',
Tag: 'Tag',
New_Tag: 'New Tag',
// ProblemList.vue
Contest_Problem_List: 'Contest Problem List',
// Contest.vue
ContestTitle: 'Title',
ContestDescription: 'Description',
Expand All @@ -106,5 +115,10 @@ export const m = {
DashBoardJudge_Server: 'Judge Server',
HTTPS_Status: 'HTTPS Status',
Force_HTTPS: 'Force HTTPS',
CDN_HOST: 'CDN HOST'
CDN_HOST: 'CDN HOST',
// Login.vue
Welcome_to_Login: 'Welcome to Login',
GO: 'GO',
username: 'username',
password: 'password'
}
40 changes: 27 additions & 13 deletions src/i18n/admin/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const m = {
Announcement_Content: '内容',
Announcement_visible: '是否可见',
// Conf.vue
SMTP_Config: 'SMTP Config',
SMTP_Config: 'SMTP 设置',
Server: '服务器',
Port: '端口',
Email: '邮箱',
Password: '授权码',
Website_Config: 'Web Config',
Base_Url: 'Base Url',
Website_Config: '网站设置',
Base_Url: '基础 Url',
Name: '名称',
Shortcut: '简称',
Footer: '页脚',
Expand All @@ -54,13 +54,13 @@ export const m = {
Judge_Server_Info: '判题服务器',
IP: 'IP',
Judger_Version: '判题机版本',
Service_URL: '服务器URL',
Service_URL: '服务器 URL',
Last_Heartbeat: '上一次心跳',
Create_Time: '创建时间',
// PruneTestCase
Test_Case_Prune_Test_Case: '精简测试用例',
// Problem.vue
Display_ID: 'Display ID',
Display_ID: '显示 ID',
Title: '题目',
Description: '描述',
Input_Description: '输入描述',
Expand All @@ -75,9 +75,9 @@ export const m = {
Add_Sample: '添加样例',
Code_Template: '代码模板',
Special_Judge: 'Special Judge',
Use_Special_Judge: '使用Special Judge',
Special_Judge_Code: 'Special Judge Code',
SPJ_language: 'SPJ language',
Use_Special_Judge: '使用 Special Judge',
Special_Judge_Code: 'Special Judge 代码',
SPJ_language: 'SPJ 语言',
Compile: '编译',
TestCase: '测试用例',
IOMode: 'IO 类型',
Expand All @@ -89,22 +89,36 @@ export const m = {
Score: '分数',
Hint: '提示',
Source: '来源',
Edit_Problem: '编辑问题',
Add_Problem: '添加问题',
High: '高',
Mid: '中',
Low: '低',
Tag: '标签',
New_Tag: '新增标签',
// ProblemList.vue
Contest_Problem_List: '比赛问题列表',
// Contest.vue
ContestTitle: '标题',
ContestDescription: '描述',
Contest_Start_Time: '开始时间',
Contest_End_Time: '结束时间',
Contest_Password: '密码',
Contest_Rule_Type: '规则',
Real_Time_Rank: '实时Rank',
Real_Time_Rank: '实时排名',
Contest_Status: '状态',
Allowed_IP_Ranges: '允许的IP范围',
CIDR_Network: 'CIDR Network',
Allowed_IP_Ranges: '允许的 IP 范围',
CIDR_Network: 'CIDR 网络',
// Dashboard.vue
Last_Login: '最后登录状态',
System_Overview: '系统状况',
DashBoardJudge_Server: '判题服务器',
HTTPS_Status: 'HTTPS 状态',
Force_HTTPS: '强制 HTTPS',
CDN_HOST: 'CDN HOST'
Force_HTTPS: '强制使用 HTTPS',
CDN_HOST: 'CDN 主机',
// Login.vue
Welcome_to_Login: '欢迎登录',
GO: '进入',
username: '用户名',
password: '密码'
}
174 changes: 165 additions & 9 deletions src/i18n/oj/en-US.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export const m = {
// 404.vue
Go_Home: 'Go Home',
// Problem.vue
Description: 'Description',
Input: 'Input',
Expand All @@ -16,28 +18,131 @@ export const m = {
Score: 'Score',
Tags: 'Tags',
Show: 'Show',
Submit: 'Submit',
Submitting: 'Submitting',
Judging: 'Judging',
Wrong_Answer: 'Wrong Answer',
Statistic: 'Statistic',
Close: 'Close',
View_Contest: 'View Contest',
Are_you_sure_you_want_to_reset_your_code: 'Are you sure you want to reset your code?',
Code_can_not_be_empty: 'Code can not be empty',
Submit_code_successfully: 'Submit code successfully',
You_have_solved_the_problem: 'You have solved the problem',
Submitted_successfully: 'Submitted successfully',
You_have_submitted_a_solution: 'You have submitted a solution.',
Contest_has_ended: 'Contest has ended',
You_have_submission_in_this_problem_sure_to_cover_it: 'You have submission in this problem, sure to cover it?',
// About.vue
Compiler: 'Compiler',
Result_Explanation: 'Result Explanation',
Pending_Juding: 'You solution will be judged soon, please wait for result.',
Compile_Error: "Failed to compile your source code. Click on the link to see compiler's output.",
Accepted: 'Congratulations. Your solution is correct.',
Wrong_Answer: "Your program's output doesn't match judger's answer.",
Runtime_Error: 'Your program terminated abnormally. Possible reasons are: segment fault, divided by zero or exited with code other than 0.',
Time_Limit_Exceeded: 'The CPU time your program used has exceeded limit. Java has a triple time limit.',
Memory_Limit_Exceeded: 'The memory your program actually used has exceeded limit.',
System_Error: 'Oops, something has gone wrong with the judger. Please report this to administrator.',
Pending_Judging_Description: 'You solution will be judged soon, please wait for result.',
Compile_Error_Description: "Failed to compile your source code. Click on the link to see compiler's output.",
Accepted_Description: 'Congratulations. Your solution is correct.',
Wrong_Answer_Description: "Your program's output doesn't match judger's answer.",
Runtime_Error_Description: 'Your program terminated abnormally. Possible reasons are: segment fault, divided by zero or exited with code other than 0.',
Time_Limit_Exceeded_Description: 'The CPU time your program used has exceeded limit. Java has a triple time limit.',
Memory_Limit_Exceeded_Description: 'The memory your program actually used has exceeded limit.',
System_Error_Description: 'Oops, something has gone wrong with the judger. Please report this to administrator.',
// ACMContestRank.vue
Menu: 'Menu',
Chart: 'Chart',
Auto_Refresh: 'Auto Refresh',
RealName: 'RealName',
Force_Update: 'Force Update',
download_csv: 'download csv',
TotalTime: 'TotalTime',
Top_10_Teams: 'Top 10 Teams',
save_as_image: 'save as image',
// ACMHelper.vue
ACM_Helper: 'ACM Helper',
AC_Time: 'AC Time',
ProblemID: 'ProblemID',
First_Blood: 'First Blood',
Username: 'Username',
Checked: 'Checked',
Not_Checked: 'Not Checked',
Check_It: 'Check It',
// ACMRank.vue
ACM_Ranklist: 'ACM Ranklist',
mood: 'mood',
AC: 'AC',
Rating: 'Rating',
// Announcements.vue
Contest_Announcements: 'Contest Announcements',
By: 'By',
// ApplyResetPassword.vue
The_email_doesnt_exist: 'The email doesn\'t exist',
Success: 'Success',
Password_reset_mail_sent: 'Password reset mail has been sent to your email,',
// FAQ.vue
Frequently_Asked_Questions: 'Frequently Asked Questions',
Where_is_the_input_and_the_output: 'Where is the input and the output?',
Where_is_the_input_and_the_output_answer_part_1: 'Your program shall read input from',
Standard_Input: 'Standard Input',
Where_is_the_input_and_the_output_answer_part_3: 'and write output to',
Standard_Output: 'Standard Output',
Where_is_the_input_and_the_output_answer_part_5: 'For example,you can use',
Where_is_the_input_and_the_output_answer_part_6: 'in C or',
Where_is_the_input_and_the_output_answer_part_7: 'in C++ to read from stdin,and use',
Where_is_the_input_and_the_output_answer_part_8: 'in C or',
Where_is_the_input_and_the_output_answer_part_9: 'in C++ to write to stdout. User programs are not allowed to read or write files, or you will get a',
What_is_the_meaning_of_submission_execution_time: 'What\'s the meaning of the submission execution time?',
What_is_the_meaning_of_submission_execution_time_answer: 'The onlinejudge might test your code multiple times with different input files. If your code gives the correct answer within the time limit for each input file, the execution time displayed is the max of the time spent for each test case. Otherwise, the execution time will have no sense.',
How_Can_I_use_CPP_Int64: 'How can I use C++ Int64?',
How_Can_I_use_CPP_Int64_answer_part_1: 'You should declare as',
How_Can_I_use_CPP_Int64_answer_part_2: 'and use with',
or: 'or',
using: 'using',
How_Can_I_use_CPP_Int64_answer_part_3: 'will result in',
Java_specifications: 'Java specifications?',
Java_specifications_answer_part_1: 'All programs must begin in a static main method in a',
Java_specifications_answer_part_2: 'class. Do not use public classes: even',
Java_specifications_answer_part_3: 'must be non public to avoid compile error.Use buffered I/O to avoid time limit exceeded due to excesive flushing.',
About_presentation_error: 'About presentation error?',
About_presentation_error_answer_part_1: 'There is no presentation error in this oj.The judger will trim the blacks and wraps in your ouput\'s',
last: 'last',
About_presentation_error_answer_part_2: 'line. if it\'s still different with the correct output, the result will be',
How_to_report_bugs: 'How to report bugs about this oj?',
How_to_report_bugs_answer_part_1: 'The onlinejudge is open source, you can open an issue in',
How_to_report_bugs_answer_part_2: 'The details(like env, version..) about a bug is required, which will help us a lot to solve the bug. Certainly, we are very pleased to merge your pull requests.',
// Cancel.vue
Cancel: 'Cancel',
// ContestDetail.vue
Problems: 'Problems',
Announcements: 'Announcements',
Submissions: 'Submissions',
Rankings: 'Rankings',
Overview: 'Overview',
Admin_Helper: 'Admin Helper',
StartAt: 'StartAt',
EndAt: 'EndAt',
ContestType: 'ContestType',
Creator: 'Creator',
Public: 'Public',
Password_Protected: 'Password Protected',
// ContestList.vue
Rule: 'Rule',
OI: 'OI',
ACM: 'ACM',
Underway: 'Underway',
Not_Started: 'Not_Started',
Ended: 'Ended',
No_contest: 'No contest',
Please_login_first: 'Please login first!',
// ContestProblemList
Problems_List: 'Problems List',

No_Problems: 'No Problems',
// CodeMirror.vue
Language: 'Language',
Theme: 'Theme',
Reset_to_default_code_definition: 'Reset to default code definition',
Upload_file: 'Upload file',
Monokai: 'Monokai',
Solarized_Light: 'Solarized Light',
Material: 'Material',
// KatexEditor.vue
Latex_Editor: 'Latex Editor',
// NavBar.vue
Home: 'Home',
NavProblems: 'Problems',
Expand All @@ -56,6 +161,7 @@ export const m = {
Settings: 'Settings',
Management: 'Management',
Logout: 'Logout',
Welcome_to: 'Welcome to',
// announcements.vue
Refresh: 'Refresh',
Back: 'Back',
Expand All @@ -81,6 +187,22 @@ export const m = {
No_Account: 'No account? Register now!',
Forget_Password: 'Forget Password',
UserLogin: 'Login',
Welcome_back: 'Welcome back to OJ',
// OIRank.vue
OI_Ranklist: 'OI Ranklist',
// OIContestRank.vue
Total_Score: 'Total Score',
// ProblemList.vue
Problem_List: 'Problem List',
High: 'High',
Mid: 'Mid',
Low: 'Low',
All: 'All',
Reset: 'Reset',
Pick_One: 'Pick one',
Difficulty: 'Difficulty',
Total: 'Total',
AC_Rate: 'AC Rate',
// Register.vue
RegisterUsername: 'Username',
Email_Address: 'Email Address',
Expand All @@ -89,13 +211,47 @@ export const m = {
Captcha: 'Captcha',
UserRegister: 'Register',
Already_Registed: 'Already registed? Login now!',
The_username_already_exists: 'The username already exists.',
The_email_already_exists: 'The email already exists',
password_does_not_match: 'password does not match',
Thanks_for_registering: 'Thanks for your registering, you can login now',
// ResetPassword.vue and ApplyResetPassword.vue
Reset_Password: 'Lost Password',
RPassword: 'Password',
RPassword_Again: 'Password Again',
RCaptcha: 'Captcha',
ApplyEmail: 'Your Email Address',
Send_Password_Reset_Email: 'Send Password Reset Email',
Your_password_has_been_reset: 'Your password has been reset.',
// Save.vue
Save: 'Save',
// Simditor.vue
Uploading_is_in_progress: 'Uploading is in progress, are you sure to leave this page?',
// SubmissionDetails.vue
Lang: 'Lang',
Share: 'Share',
UnShare: 'UnShare',
Succeeded: 'Succeeded',
Real_Time: 'Real Time',
Singal: 'Singal',
// SubmissionList.vue
When: 'When',
ID: 'ID',
Time: 'Time',
Memory: 'Memory',
Author: 'Author',
Option: 'Option',
Mine: 'Mine',
Search_Author: 'Search Author',
Accepted: 'Accepted',
Time_Limit_Exceeded: 'Time Limit Exceeded',
Memory_Limit_Exceeded: 'Memory Limit Exceeded',
Runtime_Error: 'Runtime Error',
System_Error: 'System Error',
Pending: 'Pending',
Partial_Accepted: 'Partial Accepted',
Compile_Error: 'Compile Error',
Rejudge: 'Rejudge',
// UserHome.vue
UserHomeSolved: 'Solved',
UserHomeserSubmissions: 'Submissions',
Expand Down
Loading

0 comments on commit 214f83c

Please sign in to comment.