diff --git a/web/scripts/check-i18n.mjs b/web/scripts/check-i18n.mjs index 155ab5b..1d95b60 100644 --- a/web/scripts/check-i18n.mjs +++ b/web/scripts/check-i18n.mjs @@ -1,5 +1,7 @@ import enUS from '../src/i18n/messages/en-US.ts' import zhCN from '../src/i18n/messages/zh-CN.ts' +import { readFileSync, readdirSync } from 'node:fs' +import { fileURLToPath } from 'node:url' function flatten(value, prefix = '') { return Object.entries(value).flatMap(([key, child]) => { @@ -13,9 +15,35 @@ const candidate = new Set(flatten(enUS)) const missing = [...reference].filter((key) => !candidate.has(key)) const extra = [...candidate].filter((key) => !reference.has(key)) -if (missing.length || extra.length) { +// Fully migrated pages must not silently reintroduce hardcoded Chinese UI copy. +const completedViews = ['CoursesView.vue', 'OtherExamsView.vue', 'BaseDataView.vue'] +const hardcoded = completedViews.filter((name) => { + const file = fileURLToPath(new URL(`../src/views/${name}`, import.meta.url)) + let source = readFileSync(file, 'utf8') + // These are editable persisted business defaults, not display labels. + if (name === 'BaseDataView.vue') source = source.replace("degreeType: '学士'", '').replace("roomType: '普通教室'", '') + return /\p{Script=Han}/u.test(source) +}) +const viewsDirectory = new URL('../src/views/', import.meta.url) +const fixedLocaleViews = readdirSync(viewsDirectory).filter((name) => name.endsWith('.vue') && + /(?:toLocale(?:Date|Time)?String|DateTimeFormat|NumberFormat|Collator)\(['"]zh-CN['"]/.test(readFileSync(new URL(name, viewsDirectory), 'utf8'))) + +function values(value, prefix = '') { + return Object.entries(value).flatMap(([key, child]) => { + const path = prefix ? `${prefix}.${key}` : key + return child && typeof child === 'object' ? values(child, path) : [[path, child]] + }) +} +const english = new Map(values(enUS)) +const placeholders = (value) => [...new Set([...String(value).matchAll(/\{(\w+)\}/g)].map((match) => match[1]))].sort().join(',') +const mismatched = values(zhCN).filter(([key, value]) => candidate.has(key) && placeholders(value) !== placeholders(english.get(key))).map(([key]) => key) + +if (missing.length || extra.length || hardcoded.length || mismatched.length || fixedLocaleViews.length) { if (missing.length) console.error(`en-US missing keys:\n${missing.join('\n')}`) if (extra.length) console.error(`en-US extra keys:\n${extra.join('\n')}`) + if (hardcoded.length) console.error(`Hardcoded Chinese in completed views:\n${hardcoded.join('\n')}`) + if (mismatched.length) console.error(`Interpolation parameters differ:\n${mismatched.join('\n')}`) + if (fixedLocaleViews.length) console.error(`Fixed Chinese display formats:\n${fixedLocaleViews.join('\n')}`) process.exitCode = 1 } else { console.log(`i18n catalogs match (${reference.size} keys).`) diff --git a/web/src/i18n/index.ts b/web/src/i18n/index.ts index f83f363..b7d272c 100644 --- a/web/src/i18n/index.ts +++ b/web/src/i18n/index.ts @@ -30,6 +30,10 @@ function detectLocale(): AppLocale { export const currentLocale = ref(detectLocale()) +export function getDisplayLocale(): AppLocale { + return currentLocale.value +} + export const i18n = createI18n({ legacy: false, locale: currentLocale.value, diff --git a/web/src/i18n/messages/en-US.ts b/web/src/i18n/messages/en-US.ts index bfbfb40..6c224e5 100644 --- a/web/src/i18n/messages/en-US.ts +++ b/web/src/i18n/messages/en-US.ts @@ -1,4 +1,7 @@ export default { + baseData: {"campus":"Campus","campusHint":"Physical university campuses","college":"College","collegeHint":"Teaching organizations","major":"Major","majorHint":"Majors and awarded degrees","class":"Administrative class","classHint":"Classes organized by enrollment year","term":"Term","termHint":"Teaching timeline","building":"Teaching building","buildingHint":"Teaching buildings on campus","classroom":"Classroom","classroomHint":"Teaching spaces available for scheduling","category":"Course category","categoryHint":"Teaching field of a course","organization":"Organizations","organizationDescription":"Maintain the hierarchy of campuses, colleges, majors, and administrative classes.","academicTerms":"Academic years and terms","termDescription":"Maintain academic years, term boundaries, and the current working term.","facilities":"Teaching facilities","facilitiesDescription":"Maintain classrooms available for scheduling by campus and building.","categoryDescription":"Maintain teaching fields including foundational studies, arts, ethics, innovation, and entrepreneurship. Course nature and category are independent.","generalRoom":"General classroom","laboratory":"Laboratory","training":"Training room","computerLab":"Computer lab","languageLab":"Language lab","sports":"Sports venue","arts":"Arts venue","unset":"Not set","bachelor":"Bachelor","confirmImport":"Confirm import","import":"Import","cancel":"Cancel","requiredFields":"Enter the code and name.","saved":"Changes saved","deleteTitle":"Confirm deletion","delete":"Delete","deleted":"Deleted","switchTerm":"Switch current term","switchCurrent":"Set as current","tabsAria":"Base data categories","allArchive":"All archive statuses","unarchived":"Not archived","archived":"Archived","search":"Search code, name, or parent organization","enrollmentYear":"Enrollment year","allCampuses":"All campuses","allBuildings":"All teaching buildings","venueNature":"Venue nature","minimumCapacity":"Minimum capacity","disabled":"Disabled","excelImport":"Import Excel","export":"Export results","switchHint":"Switching the current term changes only the default working term. Archive manually; makeup exams and grade corrections remain available after archiving.","selectTerms":"Select terms","archiveMany":"Archive selected","restoreMany":"Restore selected","current":"Current","historical":"Historical term","setCurrent":"Set as current","unarchive":"Unarchive","archive":"Archive","archiveHistory":"Archive history","viewHistory":"View history","code":"Code","name":"Name","parentCampus":"Campus","parentCollege":"College","degreeType":"Degree type","parentMajor":"Major","counselor":"Counselor","unassigned":"Unassigned","academicYear":"Academic year","operationalStatus":"Operational status","floor":"Floor","enabled":"Enabled","empty":"No data yet. Use the button at the top right to add an item.","edit":"Edit","add":"Add","unique":"Unique identifier","address":"Address","shortName":"College short name","schoolingYears":"Program duration in years","counselorAccount":"Counselor account","season":"Term season","autumn":"Autumn term","spring":"Spring term","summer":"Summer term","setCurrentTerm":"Set as current term","unarchiveFirst":"Unarchive the term first.","parentBuilding":"Teaching building","locatedFloor":"Floor","roomType":"Classroom type","teachingVenueNature":"Teaching venue nature","equipment":"Equipment","sort":"Sort order","templateFile":"{title}-import template.xlsx","exported":"{title} exported","importConfirm":"Preview passed: {created} new records, {updated} updates, {total} records in total. Import now?","imported":"Import complete: {created} added, {updated} updated","created":"{title} added","deleteConfirm":"Delete “{name}”? Data referenced by business records cannot be deleted.","switchConfirm":"Set “{name}” as the current term? Other terms will display as historical but will not be archived, and grades and makeup exams will remain editable.","switched":"Current term switched to “{name}”","addTitle":"Add {title}","editTitle":"Edit {title}","total":"{count} records","floorNumber":"Floor {floor}","listSeparator":", "}, + courses: {"generalRequired":"General education required","majorRequired":"Major required","majorElective":"Major elective","generalElective":"General education elective","practice":"Practical course","examination":"Examination","assessment":"Assessment","percentage":"Percentage","passFail":"Pass / Fail","letterGrade":"ABCDE letter grades","collegeFallback":"Assigned college","allScope":"University-wide courses · All course natures","templateFile":"Course catalog import template.xlsx","exportFile":"Course catalog.xlsx","confirmImport":"Confirm import","import":"Import","cancel":"Cancel","requiredFields":"Enter the course code, name, offering college, and category.","hoursInvalid":"Lecture hours plus practical hours cannot exceed total hours.","updated":"Course updated","created":"Course added to the catalog","deleteTitle":"Delete course","delete":"Delete","deleted":"Course deleted","title":"Course catalog","description":"General education courses are coordinated university-wide. Major and practical courses are maintained by the offering college and shared with curricula and teaching tasks.","export":"Export results","newCourse":"Add course","visible":"Currently visible","coursesUnit":"courses","scope":"Maintenance scope","collegeScopeHint":"General education courses can be viewed and referenced","schoolScopeHint":"Coordinates standards across colleges","searchPlaceholder":"Search course code, Chinese or English name","ownCollege":"Assigned offering college","allColleges":"All offering colleges","allCategories":"All course categories","allNatures":"All course natures","allArchives":"All archive statuses","unarchived":"Not archived","archived":"Archived","disabled":"Disabled","excelImport":"Import Excel","archiveMany":"Archive selected","restoreMany":"Restore selected","archiveStatus":"Archive status","code":"Course code","college":"Offering college","category":"Course category","uncategorized":"Uncategorized","nature":"Nature","creditHours":"Credits / Hours","hoursComposition":"Hour breakdown","assessmentLabel":"Assessment","evaluation":"Grading method","prerequisites":"Prerequisites","enabled":"Enabled","restore":"Restore","archive":"Archive","archiveHistory":"Archive history","schoolOnly":"University-level maintenance","empty":"No courses match the filters","edit":"Edit","add":"Add","uniqueCode":"Unique across the university","englishName":"English name","courseNature":"Course nature","twoDimensions":"Two dimensions","categoryHint":"Category identifies the teaching field; nature determines how the course is managed within curricula.","totalHours":"Total hours","assessmentMethod":"Assessment method","lectureHours":"Lecture hours","practiceHours":"Practical hours","gradeMethod":"Grading method","gpaHint":"For ABCDE grades, A–D pass and E fails. GPA points are A=4, B=3, C=2, D=1, E=0. Pass/fail courses are excluded from GPA.","selectPrerequisites":"Select courses that must be passed before taking this course","prerequisitesHint":"Student planning checks whether these courses have already been passed or scheduled in an earlier simulated term.","courseDescription":"Course description","sortOrder":"Sort order","save":"Save course","collegeScope":"{college} · Major and practical courses","importConfirm":"Preview passed: {created} new courses, {updated} updates, {total} courses in total. Import now?","imported":"Import complete: {created} added, {updated} updated, {total} courses processed.","deleteConfirm":"Delete course “{name}”? Courses referenced by curricula cannot be deleted.","exportHint":"Excel export uses the current filters · {total} courses","selectedCount":"{count} selected on this page","creditsAndHours":"{credits} credits · {hours} hours","hoursBreakdown":"Lecture {lecture} / Practical {practice}","total":"{count} courses","page":"Batch {page}","editTitle":"Edit course","addTitle":"Add course"}, + otherExams: {"exported":"All grades matching the current filters have been exported","saved":"Grades on this page saved. Attempt counts are calculated automatically.","published":"Grades published","created":"Exam batch created","templateFile":"Other exam grades-import template.xlsx","imported":"Grades imported. Existing records absent from the import file were retained.","passMetric":"Pass / Fail","levelMetric":"Level","scoreMetric":"Numeric score","pass":"Pass","fail":"Fail","kicker":"Exam grades","title":"Other exam grades","studentDescription":"View your certificates, proficiency tests, and external exams organized by exam, with your best results highlighted.","managerDescription":"Group exams by code and maintain grades by session. Student attempt counts are calculated automatically.","newSession":"New exam session","summary":"Grade summary","myBest":"My best results","comparisonHint":"Results with the same exam code are compared automatically","best":"Best result","emptyPublished":"No other exam grades have been published","historyKicker":"History","historyTitle":"Grade history","historyHint":"Every published result is retained","attemptNumber":"Attempt number","sessions":"Exam sessions","openHint":"Select a session to enter grades","batchSearch":"Exam code, name, or organizer","allMetrics":"All assessment methods","entered":"Entered","draft":"Draft","noOrganizer":"Organizer not specified","editorHint":"Grades load one page at a time. Saving and importing add or update records by student number; other existing records are retained. Leave the student number field to look up the name, college, and class. Attempt counts are calculated automatically.","lookupPending":"Awaiting lookup","automatic":"Automatic","emptyEditor":"No grade records yet. Add a row or import a spreadsheet.","createTitle":"Create other exam session","codeHint":"For example CET4 or IELTS. Always use the same code for the same exam.","nameHint":"For example College English Test Band 4","levelOrder":"Level order","levelOrderHint":"Enter levels from best to worst, for example A+,A,B,C,D","create":"Create session","publishTitle":"Publish other exam grades","publishHint":"Publishing makes this batch visible to students. You can edit and republish corrections.","exportFile":"{name}-Other exam grades.xlsx","studentNotFound":"Student number {number} was not found","publishFailed":"Publish failed: {error}","publicationCount":"Published {count} times","maxScoreSuffix":" · Maximum score {score}","grade":"Enrolled {year}","page":"Batch {page}","total":"{count} records","publishConfirm":"Publish grades for “{name}”?"}, businessLabels: {"refresh":"Refresh","search":"Search","filter":"Filter","reset":"Reset","cancel":"Cancel","save":"Save","submit":"Submit","confirm":"Confirm","delete":"Delete","edit":"Edit","add":"Add","remove":"Remove","export":"Export","import":"Import","publish":"Publish","close":"Close","details":"Details","actions":"Actions","status":"Status","name":"Name","studentNumber":"Student number","studentName":"Student name","teacher":"Teacher","teacherName":"Teacher name","college":"College","major":"Major","class":"Class","administrativeClass":"Administrative class","grade":"Enrollment year","term":"Term","course":"Course","courseName":"Course name","courseCode":"Course code","courseType":"Course type","credits":"Credits","hours":"Hours","score":"Score","notes":"Notes","description":"Description","reason":"Reason","phone":"Phone","email":"Email","date":"Date","startDate":"Start date","endDate":"End date","startTime":"Start time","endTime":"End time","allStatus":"All statuses","allColleges":"All colleges","allMajors":"All majors","allClasses":"All administrative classes","allGrades":"All enrollment years","allTerms":"All terms","allCourses":"All courses","allTypes":"All types","keyword":"Keyword","studentSearch":"Student number or name","previous":"Previous batch","next":"Next batch","draft":"Draft","published":"Published","pending":"Pending review","approved":"Approved","rejected":"Rejected","approve":"Approve","reject":"Reject","review":"Review","reviewComment":"Review comment","reviewTime":"Review time","createdAt":"Created at","publishedAt":"Published at","enabled":"Enable","disabled":"Disable","yes":"Yes","no":"No","optional":"Optional","required":"Required","downloadTemplate":"Download template","importTemplate":"Download import template","batchImport":"Bulk import","exportFiltered":"Export filtered results","exportAll":"Export all","saveChanges":"Save changes","saveRecords":"Save records","noData":"No data","classroom":"Classroom","classroomName":"Classroom name","building":"Teaching building","capacity":"Capacity","exam":"Exam","examName":"Exam name","examCode":"Exam code","examDate":"Exam date","examResult":"Exam result","result":"Result","level":"Level","pass":"Pass","fail":"Fail","passFail":"Pass / Fail","scoreMetric":"Numeric score","levelMetric":"Level","passMetric":"Pass / Fail","organizer":"Organizer","maxScore":"Maximum score","metric":"Assessment method","attempts":"Attempts","newRow":"Add row","confirmPublish":"Confirm publish","username":"Username","password":"Password","role":"Role","gender":"Gender","department":"Department","title":"Professional title","employeeNumber":"Employee number","enrollmentYear":"Enrollment year","batchName":"Batch name","recalculate":"Recalculate","manualReview":"Manual review","reviewConclusion":"Review conclusion","reviewNotes":"Review comment","allConclusions":"All conclusions","deleteBatch":"Delete batch","publishResults":"Publish results","attendance":"Attendance","present":"Present","absent":"Absent","late":"Late","leave":"Leave","week":"Week","location":"Location","count":"People","total":"Total","type":"Type","number":"Number","enabledStatus":"Enabled","disabledStatus":"Disabled","selectCourse":"Select a course","selectTerm":"Select a term","selectCollege":"Select a college","selectMajor":"Select a major","selectClass":"Select a class","selectTeacher":"Select a teacher","selectResult":"Select a result","selectLevel":"Select a level","inputStudentNumber":"Enter student number","inputScore":"Enter score"}, locale: { label: 'Language', diff --git a/web/src/i18n/messages/zh-CN.ts b/web/src/i18n/messages/zh-CN.ts index 6edd032..a27c433 100644 --- a/web/src/i18n/messages/zh-CN.ts +++ b/web/src/i18n/messages/zh-CN.ts @@ -1,4 +1,7 @@ export default { + baseData: {"campus":"校区","campusHint":"学校的物理校区","college":"学院","collegeHint":"教学组织单位","major":"专业","majorHint":"专业与授予学位","class":"行政班","classHint":"按年级组织的班级","term":"学期","termHint":"教学运行时间轴","building":"教学楼","buildingHint":"校区内教学建筑","classroom":"教室","classroomHint":"可排课教学空间","category":"课程分类","categoryHint":"课程所属教学领域","organization":"组织机构","organizationDescription":"维护校区、学院、专业与行政班的稳定组织层级。","academicTerms":"学年学期","termDescription":"集中维护教学年度、学期边界与当前运行学期。","facilities":"教学场所","facilitiesDescription":"按校区和教学楼维护可用于排课的教室资源。","categoryDescription":"统一维护基础课、美育、德育、创新创业等课程教学领域。课程性质与课程分类相互独立。","generalRoom":"普通教室","laboratory":"实验室","training":"实训室","computerLab":"计算机机房","languageLab":"语音室","sports":"体育场地","arts":"艺术场地","unset":"未设置","bachelor":"学士","confirmImport":"确认导入","import":"正式导入","cancel":"取消","requiredFields":"请填写编码和名称。","saved":"已保存修改","deleteTitle":"删除确认","delete":"删除","deleted":"已删除","switchTerm":"切换当前学期","switchCurrent":"切换为当前","tabsAria":"基础数据分类","allArchive":"全部归档状态","unarchived":"未归档","archived":"已归档","search":"搜索编码、名称或所属单位","enrollmentYear":"入学年级","allCampuses":"全部校区","allBuildings":"全部教学楼","venueNature":"场地性质","minimumCapacity":"最小容量","disabled":"停用","excelImport":"Excel 导入","export":"导出结果","switchHint":"切换当前学期只改变默认工作学期;归档需手动执行,归档后仍可处理补考与成绩更正。","selectTerms":"选择学期","archiveMany":"批量归档","restoreMany":"批量恢复","current":"当前","historical":"历史学期","setCurrent":"设为当前","unarchive":"撤销归档","archive":"归档","archiveHistory":"归档历史","viewHistory":"查看历史","code":"编码","name":"名称","parentCampus":"所属校区","parentCollege":"所属学院","degreeType":"学位类型","parentMajor":"所属专业","counselor":"辅导员","unassigned":"未分配","academicYear":"学年","operationalStatus":"运行状态","floor":"楼层","enabled":"启用","empty":"暂无数据,点击右上角开始新增","edit":"编辑","add":"新增","unique":"用于唯一识别","address":"地址","shortName":"学院简称","schoolingYears":"学制","counselorAccount":"辅导员账号","season":"学期季","autumn":"秋季学期","spring":"春季学期","summer":"夏季学期","setCurrentTerm":"设为当前学期","unarchiveFirst":"已归档学期需先撤销归档。","parentBuilding":"所属教学楼","locatedFloor":"所在楼层","roomType":"教室类型","teachingVenueNature":"教学场地性质","equipment":"设备","sort":"排序","templateFile":"{title}导入模板.xlsx","exported":"{title}已导出","importConfirm":"预检通过:将新增 {created} 条、更新 {updated} 条,共处理 {total} 条。确认正式导入?","imported":"导入完成:新增 {created} 条,更新 {updated} 条","created":"已新增{title}","deleteConfirm":"确定删除“{name}”吗?已被业务引用的数据将无法删除。","switchConfirm":"将“{name}”切换为当前学期?其他学期会自动转为历史显示,但不会自动归档,也不会冻结成绩和补考。","switched":"当前学期已切换为“{name}”","addTitle":"新增{title}","editTitle":"编辑{title}","total":"共 {count} 条","floorNumber":"{floor} 层","listSeparator":"、"}, + courses: {"generalRequired":"通识必修","majorRequired":"专业必修","majorElective":"专业选修","generalElective":"通识选修","practice":"实践课程","examination":"考试","assessment":"考查","percentage":"百分制","passFail":"合格/不合格","letterGrade":"ABCDE 等级制","collegeFallback":"所属学院","allScope":"全校课程 · 全性质","templateFile":"课程库导入模板.xlsx","exportFile":"课程库.xlsx","confirmImport":"确认导入","import":"正式导入","cancel":"取消","requiredFields":"请填写课程编码、名称、开课学院和课程分类。","hoursInvalid":"讲授学时与实践学时之和不能超过总学时。","updated":"课程已更新","created":"课程已加入课程库","deleteTitle":"删除课程","delete":"删除","deleted":"课程已删除","title":"课程库","description":"通识课程由校级统筹,专业课与实践课由开课学院维护,统一供培养方案与教学任务引用。","export":"导出结果","newCourse":"新增课程","visible":"当前可见","coursesUnit":"门课程","scope":"维护范围","collegeScopeHint":"通识课程可查看、可引用","schoolScopeHint":"负责跨学院标准统筹","searchPlaceholder":"搜索课程编码、中英文名称","ownCollege":"所属开课学院","allColleges":"全部开课学院","allCategories":"全部课程分类","allNatures":"全部课程性质","allArchives":"全部归档状态","unarchived":"未归档","archived":"已归档","disabled":"停用","excelImport":"Excel 导入","archiveMany":"批量归档","restoreMany":"批量恢复","archiveStatus":"归档状态","code":"课程编码","college":"开课学院","category":"课程分类","uncategorized":"未分类","nature":"性质","creditHours":"学分/学时","hoursComposition":"学时构成","assessmentLabel":"考核","evaluation":"成绩评价","prerequisites":"先修课程","enabled":"启用","restore":"恢复","archive":"归档","archiveHistory":"归档历史","schoolOnly":"校级维护","empty":"没有符合条件的课程","edit":"编辑","add":"新增","uniqueCode":"全校唯一","englishName":"英文名称","courseNature":"课程性质","twoDimensions":"两个维度","categoryHint":"分类表示教学领域,性质决定课程在培养方案中的管理方式。","totalHours":"总学时","assessmentMethod":"考核方式","lectureHours":"讲授学时","practiceHours":"实践学时","gradeMethod":"成绩评价方式","gpaHint":"ABCDE 中 A–D 通过、E 不通过,并按 A=4、B=3、C=2、D=1、E=0 计入 GPA;合格制不计 GPA。","selectPrerequisites":"选择修读本课程前必须通过的课程","prerequisitesHint":"学生规划时会检查这些课程是否已经通过,或安排在更早的模拟学期。","courseDescription":"课程简介","sortOrder":"排序","save":"保存课程","collegeScope":"{college} · 专业课与实践课","importConfirm":"预检通过:将新增 {created} 门、更新 {updated} 门,共处理 {total} 门。确认正式导入?","imported":"导入完成:新增 {created} 门,更新 {updated} 门,共处理 {total} 门。","deleteConfirm":"确定删除课程“{name}”吗?已进入培养方案的课程将无法删除。","exportHint":"当前筛选条件会原样用于 Excel 导出 · 共 {total} 门","selectedCount":"已选 {count} 条(当前页)","creditsAndHours":"{credits} 学分 · {hours} 学时","hoursBreakdown":"讲授 {lecture} / 实践 {practice}","total":"共 {count} 门","page":"第 {page} 批","editTitle":"编辑课程","addTitle":"新增课程"}, + otherExams: {"exported":"已导出当前筛选范围的全部成绩","saved":"本页成绩已保存,参加次数由系统自动计算","published":"成绩已发布","created":"考试批次已建立","templateFile":"其他考试成绩-导入模板.xlsx","imported":"其他考试成绩导入成功,未在导入文件中的原有记录已保留","passMetric":"合格制","levelMetric":"等级制","scoreMetric":"分数制","pass":"合格","fail":"不合格","kicker":"考试成绩","title":"其他考试成绩","studentDescription":"你的证书、等级考试与校外考试,按考试归档,最优结果一目了然。","managerDescription":"用考试编码归并同一考试,按场次维护成绩,系统自动记录每位学生的参加次数。","newSession":"新建考试场次","summary":"成绩汇总","myBest":"我的最优结果","comparisonHint":"同一考试编码下自动比较","best":"最优结果","emptyPublished":"暂无已发布的其他考试成绩","historyKicker":"历史记录","historyTitle":"历史成绩","historyHint":"每次发布的结果都会保留","attemptNumber":"第几次参加","sessions":"考试场次","openHint":"点击场次进入成绩录入","batchSearch":"考试编码、名称或组织方","allMetrics":"全部方式","entered":"已录入","draft":"草稿","noOrganizer":"未填写组织方","editorHint":"成绩按页加载;保存和导入按学号新增或更新,未出现在本页或导入文件中的原有记录会保留。学号输入完成后离开输入框,系统自动检索姓名、学院和班级;参加次数由系统自动计算。","lookupPending":"待检索","automatic":"自动","emptyEditor":"还没有成绩记录,点击“新增一行”或使用批量导入","createTitle":"新建其他考试场次","codeHint":"如 CET4、IELTS、计算机二级;同一考试始终使用相同编码","nameHint":"如 大学英语四级","levelOrder":"等级顺序","levelOrderHint":"按最优到最差填写,如 A+,A,B,C,D","create":"建立场次","publishTitle":"发布其他考试成绩","publishHint":"发布后学生可以查看本批次成绩;如需更正,可以修改后再次发布。","exportFile":"{name}-其他考试成绩.xlsx","studentNotFound":"未找到学号 {number}","publishFailed":"发布失败:{error}","publicationCount":"已发布 {count} 次","maxScoreSuffix":" · 满分 {score}","grade":"{year} 级","page":"第 {page} 批","total":"共 {count} 条","publishConfirm":"确认发布“{name}”成绩?"}, businessLabels: {"refresh":"刷新","search":"查询","filter":"筛选","reset":"重置","cancel":"取消","save":"保存","submit":"提交","confirm":"确认","delete":"删除","edit":"编辑","add":"新增","remove":"移除","export":"导出","import":"导入","publish":"发布","close":"关闭","details":"详情","actions":"操作","status":"状态","name":"姓名","studentNumber":"学号","studentName":"学生姓名","teacher":"教师","teacherName":"教师姓名","college":"学院","major":"专业","class":"班级","administrativeClass":"行政班","grade":"年级","term":"学期","course":"课程","courseName":"课程名称","courseCode":"课程代码","courseType":"课程类型","credits":"学分","hours":"学时","score":"成绩","notes":"备注","description":"说明","reason":"原因","phone":"联系电话","email":"电子邮箱","date":"日期","startDate":"开始日期","endDate":"结束日期","startTime":"开始时间","endTime":"结束时间","allStatus":"全部状态","allColleges":"全部学院","allMajors":"全部专业","allClasses":"全部行政班","allGrades":"全部年级","allTerms":"全部学期","allCourses":"全部课程","allTypes":"全部类型","keyword":"关键词","studentSearch":"学号或姓名","previous":"上一批","next":"下一批","draft":"草稿","published":"已发布","pending":"待审核","approved":"已通过","rejected":"已驳回","approve":"通过","reject":"驳回","review":"审核","reviewComment":"审核意见","reviewTime":"审核时间","createdAt":"创建时间","publishedAt":"发布时间","enabled":"启用","disabled":"禁用","yes":"是","no":"否","optional":"可选","required":"必填","downloadTemplate":"下载模板","importTemplate":"下载导入模板","batchImport":"批量导入","exportFiltered":"导出当前筛选","exportAll":"导出全部","saveChanges":"保存修改","saveRecords":"保存记录","noData":"暂无数据","classroom":"教室","classroomName":"教室名称","building":"教学楼","capacity":"容量","exam":"考试","examName":"考试名称","examCode":"考试编码","examDate":"考试日期","examResult":"考试结果","result":"结果","level":"等级","pass":"合格","fail":"不合格","passFail":"合格/不合格","scoreMetric":"分数制","levelMetric":"等级制","passMetric":"合格制","organizer":"组织方","maxScore":"满分","metric":"评价方式","attempts":"参加次数","newRow":"新增一行","confirmPublish":"确认发布","username":"用户名","password":"密码","role":"角色","gender":"性别","department":"部门","title":"职称","employeeNumber":"工号","enrollmentYear":"入学年份","batchName":"批次名称","recalculate":"重新计算","manualReview":"人工复核","reviewConclusion":"复核结论","reviewNotes":"复核意见","allConclusions":"全部结论","deleteBatch":"删除批次","publishResults":"发布结果","attendance":"考勤","present":"出勤","absent":"缺勤","late":"迟到","leave":"请假","week":"周次","location":"地点","count":"人数","total":"合计","type":"类型","number":"编号","enabledStatus":"已启用","disabledStatus":"已禁用","selectCourse":"请选择课程","selectTerm":"请选择学期","selectCollege":"请选择学院","selectMajor":"请选择专业","selectClass":"请选择班级","selectTeacher":"请选择教师","selectResult":"选择结果","selectLevel":"选择等级","inputStudentNumber":"输入学号","inputScore":"请输入分数"}, locale: { label: '语言', diff --git a/web/src/views/ApprovalCenterView.vue b/web/src/views/ApprovalCenterView.vue index a8195aa..d94d88a 100644 --- a/web/src/views/ApprovalCenterView.vue +++ b/web/src/views/ApprovalCenterView.vue @@ -1,4 +1,5 @@ diff --git a/web/src/views/PhysicalFitnessView.vue b/web/src/views/PhysicalFitnessView.vue index a80a064..80dfacb 100644 --- a/web/src/views/PhysicalFitnessView.vue +++ b/web/src/views/PhysicalFitnessView.vue @@ -1,4 +1,5 @@