forked from firka/student-legacy
Fix english absence error + comment bugreports
This commit is contained in:
parent
24a6393aca
commit
9845a35c6e
@ -195,7 +195,7 @@ class NotificationsHelper {
|
|||||||
if (userProvider.getUsers().length == 1) {
|
if (userProvider.getUsers().length == 1) {
|
||||||
await flutterLocalNotificationsPlugin.show(
|
await flutterLocalNotificationsPlugin.show(
|
||||||
absence.id.hashCode,
|
absence.id.hashCode,
|
||||||
"title_absence".i18n,
|
"title_absence".i18n, // https://discord.com/channels/1111649116020285532/1153273625206591528
|
||||||
"body_absence".i18n.fill(
|
"body_absence".i18n.fill(
|
||||||
[
|
[
|
||||||
DateFormat("yyyy-MM-dd").format(absence.date),
|
DateFormat("yyyy-MM-dd").format(absence.date),
|
||||||
@ -210,7 +210,7 @@ class NotificationsHelper {
|
|||||||
} else {
|
} else {
|
||||||
await flutterLocalNotificationsPlugin.show(
|
await flutterLocalNotificationsPlugin.show(
|
||||||
absence.id.hashCode,
|
absence.id.hashCode,
|
||||||
"title_absence".i18n,
|
"title_absence".i18n, // https://discord.com/channels/1111649116020285532/1153273625206591528
|
||||||
"body_absence_multiuser".i18n.fill(
|
"body_absence_multiuser".i18n.fill(
|
||||||
[
|
[
|
||||||
userProvider.displayName!,
|
userProvider.displayName!,
|
||||||
|
@ -144,7 +144,7 @@ class _GradesPageState extends State<GradesPage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: StatisticsTile(
|
child: StatisticsTile(
|
||||||
outline: true,
|
outline: true,
|
||||||
title: AutoSizeText(
|
title: AutoSizeText( // https://discord.com/channels/1111649116020285532/1153397476578050130
|
||||||
"classavg".i18n,
|
"classavg".i18n,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
|
@ -127,7 +127,7 @@ class AbsenceView extends StatelessWidget {
|
|||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () { // https://discord.com/channels/1111649116020285532/1149964760130002945
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|
||||||
if (outsideContext != null) {
|
if (outsideContext != null) {
|
||||||
|
@ -57,7 +57,7 @@ class ChangedLessonTile extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
lesson.substituteTeacher?.name != ""
|
lesson.substituteTeacher?.name != "" || lesson.substituteTeacher?.name != null
|
||||||
? "substituted".i18n
|
? "substituted".i18n
|
||||||
: "cancelled".i18n,
|
: "cancelled".i18n,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
|
@ -40,7 +40,7 @@ class AbsenceSubjectView extends StatelessWidget {
|
|||||||
TimetablePage.jump(context, lesson: lesson);
|
TimetablePage.jump(context, lesson: lesson);
|
||||||
} else {
|
} else {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(
|
||||||
content: Text("Cannot find lesson".i18n,
|
content: Text("lesson_not_found".i18n,
|
||||||
style: const TextStyle(color: Colors.white)),
|
style: const TextStyle(color: Colors.white)),
|
||||||
backgroundColor: AppColors.of(context).red,
|
backgroundColor: AppColors.of(context).red,
|
||||||
context: context,
|
context: context,
|
||||||
|
@ -17,6 +17,7 @@ extension ScreensLocalization on String {
|
|||||||
"Subjects": "Subjects",
|
"Subjects": "Subjects",
|
||||||
"attention": "Attention!",
|
"attention": "Attention!",
|
||||||
"attention_body": "Percentage calculations are only an approximation so they may not be accurate.",
|
"attention_body": "Percentage calculations are only an approximation so they may not be accurate.",
|
||||||
|
"lesson_not_found": "Cannot find lesson",
|
||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
"Absences": "Hiányzások",
|
"Absences": "Hiányzások",
|
||||||
@ -32,6 +33,7 @@ extension ScreensLocalization on String {
|
|||||||
"Subjects": "Tantárgyak",
|
"Subjects": "Tantárgyak",
|
||||||
"attention": "Figyelem!",
|
"attention": "Figyelem!",
|
||||||
"attention_body": "A százalékos számítások csak közelítések, ezért előfordulhat, hogy nem pontosak.",
|
"attention_body": "A százalékos számítások csak közelítések, ezért előfordulhat, hogy nem pontosak.",
|
||||||
|
"lesson_not_found": "Nem található óra",
|
||||||
},
|
},
|
||||||
"de_de": {
|
"de_de": {
|
||||||
"Absences": "Fehlen",
|
"Absences": "Fehlen",
|
||||||
@ -47,6 +49,7 @@ extension ScreensLocalization on String {
|
|||||||
"Subjects": "Fächer",
|
"Subjects": "Fächer",
|
||||||
"attention": "Achtung!",
|
"attention": "Achtung!",
|
||||||
"attention_body": "Prozentberechnungen sind nur eine Annäherung und können daher ungenau sein.",
|
"attention_body": "Prozentberechnungen sind nur eine Annäherung und können daher ungenau sein.",
|
||||||
|
"lesson_not_found": "Lektion kann nicht gefunden werden",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient( // https://discord.com/channels/1111649116020285532/1153619667848548452
|
||||||
begin: Alignment.topCenter,
|
begin: Alignment.topCenter,
|
||||||
end: Alignment.bottomCenter,
|
end: Alignment.bottomCenter,
|
||||||
stops: const [
|
stops: const [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user