Skip to content

Commit

Permalink
Update: "timetable" add explain to course code and class code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysab committed Dec 2, 2022
1 parent d7cc8ea commit efbdd14
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
19 changes: 18 additions & 1 deletion l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,22 @@
}
}
},
"timetableDetailCourseId": "Course Code {courseId}",
"@timetableDetailCourseId": {
"placeholders": {
"courseId": {
"type": "String"
}
}
},
"timetableDetailClassId": "Class Code {classId}",
"@timetableDetailClassId": {
"placeholders": {
"classId": {
"type": "String"
}
}
},
"unfilled": "Unfilled",
"unknown": "Unknown",
"untitled": "Untitled",
Expand Down Expand Up @@ -641,4 +657,5 @@
"xuhui": "Xuhui",
"xuhuiDistrict": "Xuhui District",
"yes": "Yes"
}
}

4 changes: 3 additions & 1 deletion l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@
"timetableSetStartDate": "设置起始日期",
"timetableSetToDefault": "设为默认",
"timetableWeekOrderedName": "第 {week} 周",
"timetableDetailCourseId": "课程代码 {courseId}",
"timetableDetailClassId": "教学班 {classId}",
"unfilled": "未输入",
"unknown": "未知",
"untitled": "无标题",
Expand Down Expand Up @@ -409,4 +411,4 @@
"xuhui": "徐汇",
"xuhuiDistrict": "徐汇区",
"yes": "好"
}
}
4 changes: 3 additions & 1 deletion l10n/app_zh_TW.arb
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@
"timetableSetStartDate": "設定起始日期",
"timetableSetToDefault": "設為預設",
"timetableWeekOrderedName": "第 {week} 周",
"timetableDetailCourseId": "课程代码 {courseId}",
"timetableDetailClassId": "班级 {classId}",
"unfilled": "未輸入",
"unknown": "未知",
"untitled": "無標題",
Expand Down Expand Up @@ -409,4 +411,4 @@
"xuhui": "徐匯",
"xuhuiDistrict": "徐匯區",
"yes": "好"
}
}
4 changes: 2 additions & 2 deletions lib/module/timetable/user_widget/sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class Sheet extends StatelessWidget {

List<Widget> _buildItems(BuildContext context) {
final fixedItems = [
_buildItem(context, 'courseId.png', courseId),
_buildItem(context, 'dynClassId.png', classes[0].dynClassId),
_buildItem(context, 'courseId.png', i18n.timetableDetailCourseId(courseId)),
_buildItem(context, 'dynClassId.png', i18n.timetableDetailClassId(classes[0].dynClassId)),
_buildItem(context, 'campus.png', classes[0].campus),
];
final List<String> timeStrings = generateTimeString();
Expand Down

0 comments on commit efbdd14

Please sign in to comment.