forked from firka/student-legacy
finished translation for summary
This commit is contained in:
parent
3317472773
commit
f4501ce251
@ -5,6 +5,7 @@ import 'package:filcnaplo_kreta_api/models/subject.dart';
|
|||||||
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/homework_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/homework_provider.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
@ -61,9 +62,12 @@ class _AllSumBodyState extends State<AllSumBody> {
|
|||||||
gradeProvider.grades.where((a) => a.value.weight >= 200);
|
gradeProvider.grades.where((a) => a.value.weight >= 200);
|
||||||
|
|
||||||
things.addAll({
|
things.addAll({
|
||||||
'tests': {'name': 'dolgozat', 'value': testsGrades.length},
|
'tests': {'name': 'test'.i18n, 'value': testsGrades.length},
|
||||||
'closingTests': {'name': 'témazáró', 'value': closingTestsGrades.length},
|
'closingTests': {
|
||||||
'grades': {'name': 'jegy', 'value': allGrades.length}
|
'name': 'closingtest'.i18n,
|
||||||
|
'value': closingTestsGrades.length
|
||||||
|
},
|
||||||
|
'grades': {'name': 'grade'.i18n, 'value': allGrades.length}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,7 +75,7 @@ class _AllSumBodyState extends State<AllSumBody> {
|
|||||||
var allHomework = homeworkProvider.homework;
|
var allHomework = homeworkProvider.homework;
|
||||||
|
|
||||||
things.addAll({
|
things.addAll({
|
||||||
'homework': {'name': 'házi', 'value': allHomework.length}
|
'homework': {'name': 'hw'.i18n, 'value': allHomework.length}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,8 +89,8 @@ class _AllSumBodyState extends State<AllSumBody> {
|
|||||||
var totalLessons = 0;
|
var totalLessons = 0;
|
||||||
|
|
||||||
things.addAll({
|
things.addAll({
|
||||||
'subjects': {'name': 'tantárgy', 'value': allSubjects.length},
|
'subjects': {'name': 'subject'.i18n, 'value': allSubjects.length},
|
||||||
'lessons': {'name': 'óra', 'value': totalLessons}
|
'lessons': {'name': 'lesson'.i18n, 'value': totalLessons}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,10 +104,13 @@ class _AllSumBodyState extends State<AllSumBody> {
|
|||||||
a.delay == 0);
|
a.delay == 0);
|
||||||
|
|
||||||
things.addAll({
|
things.addAll({
|
||||||
'absences': {'name': 'hiányzás', 'value': allAbsences.length},
|
'absences': {'name': 'absence_sum'.i18n, 'value': allAbsences.length},
|
||||||
'excusedAbsences': {'name': 'igazolt', 'value': excusedAbsences.length},
|
'excusedAbsences': {
|
||||||
|
'name': 'excused'.i18n,
|
||||||
|
'value': excusedAbsences.length
|
||||||
|
},
|
||||||
'unexcusedAbsences': {
|
'unexcusedAbsences': {
|
||||||
'name': 'igazolatlan',
|
'name': 'unexcused'.i18n,
|
||||||
'value': unexcusedAbsences.length
|
'value': unexcusedAbsences.length
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -119,10 +126,10 @@ class _AllSumBodyState extends State<AllSumBody> {
|
|||||||
.where((a) => a.state == Justification.unexcused && a.delay > 0);
|
.where((a) => a.state == Justification.unexcused && a.delay > 0);
|
||||||
|
|
||||||
things.addAll({
|
things.addAll({
|
||||||
'delays': {'name': 'késés', 'value': allDelays.length},
|
'delays': {'name': 'delay_sum'.i18n, 'value': allDelays.length},
|
||||||
'totalDelay': {'name': 'perc', 'value': totalDelayTime},
|
'totalDelay': {'name': 'min'.i18n, 'value': totalDelayTime},
|
||||||
'unexcusedDelays': {
|
'unexcusedDelays': {
|
||||||
'name': 'igazolatlan',
|
'name': 'unexcused'.i18n,
|
||||||
'value': unexcusedDelays.length
|
'value': unexcusedDelays.length
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -231,9 +231,9 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12.0),
|
const SizedBox(height: 12.0),
|
||||||
const Text(
|
Text(
|
||||||
'Próba teszi a mestert! 🔃',
|
'tryagain'.i18n,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22.0,
|
fontSize: 22.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -270,9 +270,9 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12.0),
|
const SizedBox(height: 12.0),
|
||||||
const Text(
|
Text(
|
||||||
'Ajajj... 🥴',
|
'oops'.i18n,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22.0,
|
fontSize: 22.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -314,10 +314,10 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Text(
|
||||||
'Év végi átlagod',
|
'endyear_avg'.i18n,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22.0,
|
fontSize: 22.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
@ -8,6 +8,7 @@ import 'package:filcnaplo_kreta_api/models/subject.dart';
|
|||||||
import 'package:filcnaplo_kreta_api/models/week.dart';
|
import 'package:filcnaplo_kreta_api/models/week.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/absence_provider.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/timetable_provider.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
@ -138,7 +139,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${absences.last.absences.length} hiányzás',
|
'absence'.i18n.fill([absences.last.absences.length]),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18.0,
|
fontSize: 18.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -174,7 +175,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${absences.first.absences.length} hiányzás',
|
'absence'.i18n.fill([absences.first.absences.length]),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18.0,
|
fontSize: 18.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -210,7 +211,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'Összesen ${delays.first.delay} perc késés',
|
'delay'.i18n.fill([delays.first.delay]),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 18.0,
|
fontSize: 18.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -235,9 +236,9 @@ class _LessonsBodyState extends State<LessonsBody> {
|
|||||||
children: [
|
children: [
|
||||||
lessons[0],
|
lessons[0],
|
||||||
const SizedBox(height: 18.0),
|
const SizedBox(height: 18.0),
|
||||||
const Text(
|
Text(
|
||||||
'Nem volt kedved hozzá...',
|
'dontfelt'.i18n,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22.0,
|
fontSize: 22.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@ -246,9 +247,9 @@ class _LessonsBodyState extends State<LessonsBody> {
|
|||||||
const SizedBox(height: 18.0),
|
const SizedBox(height: 18.0),
|
||||||
lessons[1],
|
lessons[1],
|
||||||
const SizedBox(height: 18.0),
|
const SizedBox(height: 18.0),
|
||||||
const Text(
|
Text(
|
||||||
'Késtél!',
|
'youlate'.i18n,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22.0,
|
fontSize: 22.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
@ -3,6 +3,7 @@ import 'dart:io';
|
|||||||
import 'package:filcnaplo/api/providers/user_provider.dart';
|
import 'package:filcnaplo/api/providers/user_provider.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/personality_card/empty_card.dart';
|
import 'package:filcnaplo_mobile_ui/common/personality_card/empty_card.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/personality_card/personality_card.dart';
|
import 'package:filcnaplo_mobile_ui/common/personality_card/personality_card.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
@ -73,7 +74,7 @@ class _PersonalityBodyState extends State<PersonalityBody> {
|
|||||||
onTap: () => setState(() {
|
onTap: () => setState(() {
|
||||||
isRevealed = true;
|
isRevealed = true;
|
||||||
}),
|
}),
|
||||||
child: const EmptyCard(text: 'Kattints a felfedéshez...'),
|
child: EmptyCard(text: 'click_reveal'.i18n),
|
||||||
),
|
),
|
||||||
crossFadeState: isRevealed
|
crossFadeState: isRevealed
|
||||||
? CrossFadeState.showFirst
|
? CrossFadeState.showFirst
|
||||||
|
@ -2,6 +2,7 @@ import 'package:filcnaplo/api/providers/user_provider.dart';
|
|||||||
import 'package:filcnaplo/models/settings.dart';
|
import 'package:filcnaplo/models/settings.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.dart';
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
@ -78,7 +79,7 @@ class _StartBodyState extends State<StartBody> {
|
|||||||
weight: 0.001,
|
weight: 0.001,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'Kezdés',
|
'start'.i18n,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:wtf_sliding_sheet/wtf_sliding_sheet.dart';
|
import 'package:wtf_sliding_sheet/wtf_sliding_sheet.dart';
|
||||||
|
import 'summary_screen.i18n.dart';
|
||||||
|
|
||||||
import 'pages/allsum_page.dart';
|
import 'pages/allsum_page.dart';
|
||||||
import 'pages/start_page.dart';
|
import 'pages/start_page.dart';
|
||||||
@ -103,7 +104,7 @@ class _SummaryScreenState extends State<SummaryScreen>
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'Jó éved volt, $firstName!',
|
'greeting'.i18n.fill([firstName]),
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
@ -115,13 +116,13 @@ class _SummaryScreenState extends State<SummaryScreen>
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
widget.currentPage == 'start'
|
widget.currentPage == 'start'
|
||||||
? 'Összegezzünk hát...'
|
? 'title_start'.i18n
|
||||||
: widget.currentPage == 'grades'
|
: widget.currentPage == 'grades'
|
||||||
? 'Nézzük a jegyeidet... 📖'
|
? 'title_grades'.i18n
|
||||||
: widget.currentPage == 'lessons'
|
: widget.currentPage == 'lessons'
|
||||||
? 'A kedvenced órád 💓'
|
? 'title_lessons'.i18n
|
||||||
: widget.currentPage == 'personality'
|
: widget.currentPage == 'personality'
|
||||||
? 'A te személyiséged...'
|
? 'title_personality'.i18n
|
||||||
: '',
|
: '',
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
|
@ -4,13 +4,106 @@ extension SettingsLocalization on String {
|
|||||||
static final _t = Translations.byLocale("hu_hu") +
|
static final _t = Translations.byLocale("hu_hu") +
|
||||||
{
|
{
|
||||||
"en_en": {
|
"en_en": {
|
||||||
|
// main thingies
|
||||||
"no_grades": "No grades found",
|
"no_grades": "No grades found",
|
||||||
|
"greeting": "You had a good year, %s!",
|
||||||
|
"title_start": "So let's summarize...",
|
||||||
|
"title_grades": "Let's look at your marks... 📖",
|
||||||
|
"title_lessons": "Your favorite lesson 💓",
|
||||||
|
"title_personality": "Your personality is...",
|
||||||
|
// start page
|
||||||
|
"start": "Start",
|
||||||
|
// grades page
|
||||||
|
"tryagain": "He puts the master to the test! 🔃",
|
||||||
|
"oops": "Ouch... 🥴",
|
||||||
|
"endyear_avg": "Year-end average",
|
||||||
|
// lessons page
|
||||||
|
"absence": "%s absence(s)",
|
||||||
|
"delay": "A total of %s minute(s) late",
|
||||||
|
"dontfelt": "You didn't like it...",
|
||||||
|
"youlate": "You're late!",
|
||||||
|
// allsum page
|
||||||
|
"test": "test(s)",
|
||||||
|
"closingtest": "module test(s)",
|
||||||
|
"grade": "grades",
|
||||||
|
"hw": "homework",
|
||||||
|
"subject": "subjects",
|
||||||
|
"lesson": "lessons",
|
||||||
|
"absence_sum": "absence(s)",
|
||||||
|
"excused": "excused",
|
||||||
|
"unexcused": "unexcused",
|
||||||
|
"delay_sum": "delay(s)",
|
||||||
|
"min": "minute(s)",
|
||||||
|
// personality page
|
||||||
|
"click_reveal": "Click to reveal...",
|
||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
|
// main thingies
|
||||||
"no_grades": "Nincsenek jegyek",
|
"no_grades": "Nincsenek jegyek",
|
||||||
|
"greeting": "Jó éved volt, %s!",
|
||||||
|
"title_start": "Összegezzünk hát...",
|
||||||
|
"title_grades": "Nézzük a jegyeidet... 📖",
|
||||||
|
"title_lessons": "A kedvenc órád 💓",
|
||||||
|
"title_personality": "A te személyiséged...",
|
||||||
|
// start page
|
||||||
|
"start": "Kezdés",
|
||||||
|
// grades page
|
||||||
|
"tryagain": "Próba teszi a mestert! 🔃",
|
||||||
|
"oops": "Ajjaj... 🥴",
|
||||||
|
"endyear_avg": "Év végi átlagod",
|
||||||
|
// lessons page
|
||||||
|
"absence": "%s hiányzás",
|
||||||
|
"delay": "Összesen %s perc késés",
|
||||||
|
"dontfelt": "Nem volt kedved hozzá...",
|
||||||
|
"youlate": "Késtél!",
|
||||||
|
// allsum page
|
||||||
|
"test": "dolgozat",
|
||||||
|
"closingtest": "témazáró",
|
||||||
|
"grade": "jegy",
|
||||||
|
"hw": "házi",
|
||||||
|
"subject": "tantárgy",
|
||||||
|
"lesson": "óra",
|
||||||
|
"absence_sum": "hiányzás",
|
||||||
|
"excused": "igazolt",
|
||||||
|
"unexcused": "igazolatlan",
|
||||||
|
"delay_sum": "késés",
|
||||||
|
"min": "perc",
|
||||||
|
// personality page
|
||||||
|
"click_reveal": "Kattints a felfedéshez...",
|
||||||
},
|
},
|
||||||
"de_de": {
|
"de_de": {
|
||||||
"no_grades": "No grades found",
|
// main thingies
|
||||||
|
"no_grades": "keine Grade gefunden",
|
||||||
|
"greeting": "Du hattest ein gutes Jahr, %s!",
|
||||||
|
"title_start": "Fassen wir also zusammen...",
|
||||||
|
"title_grades": "Schauen wir uns eure Tickets an... 📖",
|
||||||
|
"title_lessons": "Deine Lieblingsuhr 💓",
|
||||||
|
"title_personality": "Deine Persönlichkeit...",
|
||||||
|
// start page
|
||||||
|
"start": "Anfang",
|
||||||
|
// grades page
|
||||||
|
"tryagain": "Er stellt den Meister auf die Probe! 🔃",
|
||||||
|
"oops": "Autsch... 🥴",
|
||||||
|
"endyear_avg": "Ihr Jahresenddurchschnitt",
|
||||||
|
// lessons page
|
||||||
|
"absence": "%s Abwesenheit(en)",
|
||||||
|
"delay": "Insgesamt %s Minute(n) zu spät",
|
||||||
|
"dontfelt": "Es hat dir nicht gefallen...",
|
||||||
|
"youlate": "Du bist spät!",
|
||||||
|
// allsum page
|
||||||
|
"test": "These(n)",
|
||||||
|
"closingtest": "Modultest",
|
||||||
|
"grade": "Grad",
|
||||||
|
"hw": "Hausaufgaben",
|
||||||
|
"subject": "Themen",
|
||||||
|
"lesson": "Lektionen",
|
||||||
|
"absence_sum": "Abwesenheit(en)",
|
||||||
|
"excused": "bescheinigte",
|
||||||
|
"unexcused": "unentschuldigte",
|
||||||
|
"delay_sum": "Verzögerung(en)",
|
||||||
|
"min": "Minute(n)",
|
||||||
|
// personality page
|
||||||
|
"click_reveal": "Klicken Sie hier, um es anzuzeigen...",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user