Browse Source

学生端多语言

XW 4 years ago
parent
commit
2618115093

+ 2 - 2
TEAMModelOS/ClientApp/src/assets/student-web/component_styles/mission-list-card-new.css

@@ -9,7 +9,7 @@
   cursor: pointer;
 }
 .list-new-icon {
-  width: 10%;
+  width: 9%;
   margin-right: 20px;
 }
 .list-new-icon .svg-icon {
@@ -17,7 +17,7 @@
   height: 40px;
 }
 .list-new-title {
-  width: 70%;
+  width: 68%;
   font-weight: bolder;
   font-size: 14px;
   line-height: 22px;

+ 2 - 2
TEAMModelOS/ClientApp/src/assets/student-web/component_styles/mission-list-card-new.less

@@ -10,7 +10,7 @@
     }
 
     &-icon{
-        width: 10%;
+        width: 9%;
         margin-right: 20px;
 
         .svg-icon{
@@ -20,7 +20,7 @@
     }
 
     &-title{
-        width: 70%;
+        width: 68%;
         font-weight: bolder;
         font-size: 14px;
         line-height: 22px;

+ 1 - 10
TEAMModelOS/ClientApp/src/assets/student-web/component_styles/paper-test.css

@@ -684,21 +684,12 @@
         /* overflow-y: scroll; */
         /* font-size: 18px; */
     }
-}
-@media screen and (max-width: 767px) {
-    
-}
-@media screen and (max-width: 767px) {
-    
-}
-@media screen and (max-width: 767px) {
-    
 }
 @media screen and (max-width: 680px) {
     .lesson-test-pop .myProgressBar {
         display: none;
     }
 }
-@media screen and (max-width: 767px) {
+@media screen and (max-width: 500px) {
     
 }

+ 5 - 1
TEAMModelOS/ClientApp/src/components/student-web/EventView/EventContentTypeTemplate/Vote.vue

@@ -33,7 +33,11 @@
                         <h2 class="title-rect-name">{{ $t("studentWeb.vote.bollotbox") }}</h2>
                         <p v-if="voteInfo.repeat" style="margin-left:15px;margin-top:2px">{{ $t("studentWeb.vote.surplusTickets")}} <span style="font-size:16px">{{voteCount}}</span><span> {{ $t("studentWeb.vote.tickets")}} </span></p>
                     </div>
-                    <Button v-show="isResult" style="float:right;margin-top:-30px" size="small" type="success" @click="showRes">
+                    <Button v-show="isResult"
+                            style="float:right;margin-top:-30px"
+                            size="small" type="success"
+                            @click="showRes"
+                    >
                         <span style="margin-left:5px">{{$t("studentWeb.vote.voteRes")}}</span>
                     </Button>
                 </div>

+ 81 - 13
TEAMModelOS/ClientApp/src/locale/lang/en-US/studentWeb.js

@@ -19,17 +19,8 @@ export default {
         privateVote: 'Personal vote',
         schoolSurvey: 'School Level Questionnaire',
         privateSurvey: 'Personal Questionnaire',
-        search: 'Please enter the query content...'
-    },
-    event: {
-        allStatus: 'All activity status',
-        unFinished: 'Unfinished',
-        Fineshed: 'Completed',
-        Timeout: 'Timeout',
-        makeupExam: 'Can make up the exam',
-        makeupHw: 'Can make up',
-        selectActivity: 'Please select an activity from the list',
-        allSubject: 'Comprehensive subjects'
+        search: 'Please enter the query content...',
+        notice: '此功能暂未开放!'
     },
     state: [
         {
@@ -45,6 +36,16 @@ export default {
             status: 'Completed'
         }
     ],
+    event: {
+        allStatus: 'All activity status',
+        unFinished: 'Unfinished',
+        Fineshed: 'Completed',
+        Timeout: 'Timeout',
+        makeupExam: 'Can make up the exam',
+        makeupHw: 'Can make up',
+        selectActivity: 'Please select an activity from the list',
+        allSubject: 'Comprehensive subjects'
+    },
     'settingView-title': 'Personal settings',
     'teammodel-account-management': {
         'page-title': 'TeamModel account management',
@@ -159,6 +160,52 @@ export default {
     },
     latestNotification: 'Latest notification',
     postAt: 'Posted on',
+    '______________': '______________',
+    'eventView-title': '活动任务',
+    nextTask: '下个活动',
+    allStatus: '所有活动状态',
+    unFinished: '未完成',
+    Fineshed: '已完成',
+    Timeout: '已逾时',
+    makeupExam: '可补考',
+    makeupHW: '可补交',
+    empty: '目前无资料 ~',
+    baseInfo: {
+        subject: '科目:',
+        teacher: '教师:',
+        period: '活动期限:',
+        postTime: '发布时间:',
+        classTime: '上课时间',
+        unFinished: '未完成',
+        Fineshed: '已完成',
+        Closed: '已结束'
+    },
+    billboard: {
+        description: '描述',
+        referlink: '连结资料',
+        attachment: '附件',
+        reference: '参考资料'
+    },
+    preview: {
+        checkpoint: '活动任务',
+        tutorial: '编序教材',
+        multiQues: '多题闯关模组',
+        previewContent: {
+            tutorial: '教材',
+            Des: '内容',
+            Unit: '单元',
+            quiz: '随堂考'
+        },
+        previous: '上一题',
+        next: '下一题',
+        sentAns: '送出答案',
+        tryAgain: '详读教材,再试一次',
+        nextUnit: '下一单元',
+        goHome: '回到首页',
+        quizRetries: '测验重试次数',
+        crossUnitHint: '上个单元测验尚未完成,请先完成方可进行本单元测验',
+        timeoutHint: '课前预习活动时间已结束,仍可进行教材阅读与练习,如于结束时间前未完成,相关成绩可能受到影响。'
+    },
     vote: {
         bollotbox: 'Voting area',
         submit: 'OK to submit',
@@ -175,7 +222,10 @@ export default {
         warning: 'Voting failed, please check the voting information! ',
         warning2: 'The maximum number of votes has been exceeded! ',
         voteRes: 'Voting results',
-        voteRecord: 'Vote Record'
+        voteRecord: 'Vote Record',
+        voteTime: '投票时间',
+        noData: '暂无投票结果数据',
+        option: '选项',
     },
     homework: {
         homeworkUpload: 'Job upload area',
@@ -234,6 +284,7 @@ export default {
             onlywrong: 'Only practice the wrong answer',
             questions: 'The question',
             submitted: 'Submission of paper',
+            submitted1: "结束练习",
             finish: 'Completed',
             showAns: 'Show answers',
             hideAns: 'Hide the answer',
@@ -254,6 +305,13 @@ export default {
             conAnswer2: ', please complete the question first! ',
             conAnswer: 'Continue to answer',
             okSubmit: 'Confirm to submit the paper',
+            exitWrong: "离开错题练习提示",
+            exitWrongDe: "系统检测您尚未「结束练习」,如您选择「确定」,",
+            exitWrongDes: "则目前作答将不保存,下次需重新练习",
+            endPractice: "结束练习提示",
+            endPracticeDe: "是否继续练习?",
+            endPracticeBtn1: "继续练习",
+            endPracticeBtn2: "结束练习",
             qNo: 'Question number:',
             correction: 'right',
             queNo: 'Title:',
@@ -302,6 +360,7 @@ export default {
             student: 'person',
             keyPointPerformance: 'Knowledge point performance radar chart',
             me: 'personal',
+            participantClass: '全班',
             participantAverage: 'The whole school',
             recognizePerformance: 'Cognitive Level Radar Chart'
         },
@@ -347,7 +406,16 @@ export default {
         solution: 'Solution',
         analysis: 'Analysis',
         correctRate: 'correct answer rate',
-        relatedAQues: 'Related Questions'
+        relatedAQues: 'Related Questions',
+        answer: '作答',
+        inputAnswers: '请输入作答结果',
+        emput: '空'
+    },
+    queNaire: {
+        submitSuccess: '提交成功',
+        overTime: '不在作答时间范围内!',
+        answerErr: '作答数据错误!',
+        fileErr: '问卷获取失败!'
     },
     'informview-title': 'Notification overview',
     view: 'Go to view',

+ 0 - 2
TEAMModelOS/ClientApp/src/locale/lang/zh-CN/studentWeb.js

@@ -226,8 +226,6 @@ export default {
         voteTime: '投票时间',
         noData: '暂无投票结果数据',
         option: '选项',
-
-
     },
     homework: {
         homeworkUpload: '作业上传区',

+ 22 - 12
TEAMModelOS/ClientApp/src/locale/lang/zh-TW/studentWeb.js

@@ -20,17 +20,7 @@ export default {
         schoolSurvey: '校級問卷',
         privateSurvey: '個人問卷',
         search: '請輸入查詢內容...',
-        noitice: '此功能暫未開放!'
-    },
-    event: {
-        allStatus: '所有活動狀態',
-        unFinished: '未完成',
-        Fineshed: '已完成',
-        Timeout: '已逾時',
-        makeupExam: '可補考',
-        makeupHw: '可補交',
-        selectActivity: '請從列表中挑選一個活動',
-        allSubject: '所有學科'
+        notice: '此功能暫未開放!'
     },
     state: [
         {
@@ -46,6 +36,16 @@ export default {
             status: '已完成'
         }
     ],
+    event: {
+        allStatus: '所有活動狀態',
+        unFinished: '未完成',
+        Fineshed: '已完成',
+        Timeout: '已逾時',
+        makeupExam: '可補考',
+        makeupHw: '可補交',
+        selectActivity: '請從列表中挑選一個活動',
+        allSubject: '所有學科'
+    },
     'settingView-title': '個人設定',
     'teammodel-account-management': {
         'page-title': 'TeamModel 帳號管理',
@@ -223,7 +223,9 @@ export default {
         warning2: '已超出最大投票數! ',
         voteRes: '投票結果',
         voteRecord: '投票記錄',
-        voteTime: '投票時間'
+        voteTime: '投票時間',
+        noData: '暫無投票結果數據',
+        option: '選項',
     },
     homework: {
         homeworkUpload: '作業上傳區',
@@ -282,6 +284,7 @@ export default {
             onlywrong: '只練習答錯',
             questions: '的題目',
             submitted: '交卷',
+            submitted1: "結束練習",
             finish: '已完成',
             showAns: '顯示答案',
             hideAns: '隱藏答案',
@@ -302,6 +305,13 @@ export default {
             conAnswer2: ',請先完成題目作答! ',
             conAnswer: '繼續作答',
             okSubmit: '確定交卷',
+            exitWrong: "離開錯題練習提示",
+            exitWrongDe: "系統檢測您尚未「結束練習」,如您選擇「確定」,",
+            exitWrongDes: "則現時作答將不保存,下次需重新練習",
+            endPractice: "結束練習提示",
+            endPracticeDe: "是否繼續練習?",
+            endPracticeBtn1: "繼續練習",
+            endPracticeBtn2: "結束練習",
             qNo: '題號:',
             correction: '正解',
             queNo: '題目:',

+ 3 - 2
TEAMModelOS/ClientApp/src/view/student-web/App.vue

@@ -132,7 +132,8 @@
         computed: {
             getRoleName() {
                 return val => {
-                    return val === 'student' ? '学生' : '教师'
+                    // return val === 'student' ? '学生' : '教师'
+                    return val === 'student' ? this.$t("studentWeb.home.student") : this.$t("studentWeb.home.teacher")
                 }
             },
             //判断用户权限
@@ -197,7 +198,7 @@
                 }
             },
             noData() {
-                this.$Message.warning('此功能暂未开放!')
+                this.$Message.warning(this.$t("studentWeb.public.notice"))
             },
             reload() {
                 this.isRouterAlive = false;