Skip to content

Commit

Permalink
Fix about translation for CN
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrysbita committed Dec 8, 2021
1 parent 1f5faaf commit f731162
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
7 changes: 2 additions & 5 deletions lib/main/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ class _MainPageState extends State<MainPage> {
body: SafeArea(
child: Row(
children: [
AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
child: navigationRail,
),
navigationRail,
const VerticalDivider(thickness: 1, width: 1),
Expanded(
child: PageTransitionSwitcher(
Expand All @@ -113,7 +110,7 @@ class _MainPageState extends State<MainPage> {
),
),
bottomNavigationBar: AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
duration: const Duration(milliseconds: 200),
child: bottomNavigationBar,
),
drawer: const MainDrawer(),
Expand Down
9 changes: 8 additions & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -986,7 +993,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.4.8"
timezone:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion res/translation/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"CalendarCardTime": "Time",
"CalendarCardRoom": "Room",
"CalendarCardLecturer": "Lecturer",
"CalendarCardAddToSystem":"Add to system calendar",
"CalendarCardAddToSystem": "Add to system calendar",
"Classes": "Classes",
"Exams": "Exams",
"Assignments": "Assignments",
Expand Down
4 changes: 2 additions & 2 deletions res/translation/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"ErrorFormat": "格式不正确。"
},
"SignOut": "登出",
"About": "",
"About": "关于",
"Calendar": {
"Calendar": "日程",
"CalendarCardCode": "代号",
"CalendarCardTime": "时间",
"CalendarCardRoom": "教室",
"CalendarCardLecturer": "讲师",
"CalendarCardAddToSystem":"添加到系统日程",
"CalendarCardAddToSystem": "添加到系统日程",
"Classes": "课程",
"Exams": "考试",
"Assignments": "作业",
Expand Down
2 changes: 1 addition & 1 deletion res/translation/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"CalendarCardTime": "时间",
"CalendarCardRoom": "教室",
"CalendarCardLecturer": "讲师",
"CalendarCardAddToSystem":"添加到系统日程",
"CalendarCardAddToSystem": "添加到系统日程",
"Classes": "课程",
"Exams": "考试",
"Assignments": "作业",
Expand Down
6 changes: 3 additions & 3 deletions windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#include "generated_plugin_registrant.h"

#include <url_launcher_windows/url_launcher_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
UrlLauncherPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}

0 comments on commit f731162

Please sign in to comment.