finished translation for summary
This commit is contained in:
@@ -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/grade_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:provider/provider.dart';
|
||||
|
||||
@@ -61,9 +62,12 @@ class _AllSumBodyState extends State<AllSumBody> {
|
||||
gradeProvider.grades.where((a) => a.value.weight >= 200);
|
||||
|
||||
things.addAll({
|
||||
'tests': {'name': 'dolgozat', 'value': testsGrades.length},
|
||||
'closingTests': {'name': 'témazáró', 'value': closingTestsGrades.length},
|
||||
'grades': {'name': 'jegy', 'value': allGrades.length}
|
||||
'tests': {'name': 'test'.i18n, 'value': testsGrades.length},
|
||||
'closingTests': {
|
||||
'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;
|
||||
|
||||
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;
|
||||
|
||||
things.addAll({
|
||||
'subjects': {'name': 'tantárgy', 'value': allSubjects.length},
|
||||
'lessons': {'name': 'óra', 'value': totalLessons}
|
||||
'subjects': {'name': 'subject'.i18n, 'value': allSubjects.length},
|
||||
'lessons': {'name': 'lesson'.i18n, 'value': totalLessons}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -100,10 +104,13 @@ class _AllSumBodyState extends State<AllSumBody> {
|
||||
a.delay == 0);
|
||||
|
||||
things.addAll({
|
||||
'absences': {'name': 'hiányzás', 'value': allAbsences.length},
|
||||
'excusedAbsences': {'name': 'igazolt', 'value': excusedAbsences.length},
|
||||
'absences': {'name': 'absence_sum'.i18n, 'value': allAbsences.length},
|
||||
'excusedAbsences': {
|
||||
'name': 'excused'.i18n,
|
||||
'value': excusedAbsences.length
|
||||
},
|
||||
'unexcusedAbsences': {
|
||||
'name': 'igazolatlan',
|
||||
'name': 'unexcused'.i18n,
|
||||
'value': unexcusedAbsences.length
|
||||
}
|
||||
});
|
||||
@@ -119,10 +126,10 @@ class _AllSumBodyState extends State<AllSumBody> {
|
||||
.where((a) => a.state == Justification.unexcused && a.delay > 0);
|
||||
|
||||
things.addAll({
|
||||
'delays': {'name': 'késés', 'value': allDelays.length},
|
||||
'totalDelay': {'name': 'perc', 'value': totalDelayTime},
|
||||
'delays': {'name': 'delay_sum'.i18n, 'value': allDelays.length},
|
||||
'totalDelay': {'name': 'min'.i18n, 'value': totalDelayTime},
|
||||
'unexcusedDelays': {
|
||||
'name': 'igazolatlan',
|
||||
'name': 'unexcused'.i18n,
|
||||
'value': unexcusedDelays.length
|
||||
}
|
||||
});
|
||||
|
||||
@@ -231,9 +231,9 @@ class _GradesBodyState extends State<GradesBody> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12.0),
|
||||
const Text(
|
||||
'Próba teszi a mestert! 🔃',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
'tryagain'.i18n,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 22.0,
|
||||
color: Colors.white,
|
||||
@@ -270,9 +270,9 @@ class _GradesBodyState extends State<GradesBody> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12.0),
|
||||
const Text(
|
||||
'Ajajj... 🥴',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
'oops'.i18n,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 22.0,
|
||||
color: Colors.white,
|
||||
@@ -314,10 +314,10 @@ class _GradesBodyState extends State<GradesBody> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
const Text(
|
||||
'Év végi átlagod',
|
||||
Text(
|
||||
'endyear_avg'.i18n,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 22.0,
|
||||
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/providers/absence_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:provider/provider.dart';
|
||||
|
||||
@@ -138,7 +139,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'${absences.last.absences.length} hiányzás',
|
||||
'absence'.i18n.fill([absences.last.absences.length]),
|
||||
style: const TextStyle(
|
||||
fontSize: 18.0,
|
||||
color: Colors.white,
|
||||
@@ -174,7 +175,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'${absences.first.absences.length} hiányzás',
|
||||
'absence'.i18n.fill([absences.first.absences.length]),
|
||||
style: const TextStyle(
|
||||
fontSize: 18.0,
|
||||
color: Colors.white,
|
||||
@@ -210,7 +211,7 @@ class _LessonsBodyState extends State<LessonsBody> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'Összesen ${delays.first.delay} perc késés',
|
||||
'delay'.i18n.fill([delays.first.delay]),
|
||||
style: const TextStyle(
|
||||
fontSize: 18.0,
|
||||
color: Colors.white,
|
||||
@@ -235,9 +236,9 @@ class _LessonsBodyState extends State<LessonsBody> {
|
||||
children: [
|
||||
lessons[0],
|
||||
const SizedBox(height: 18.0),
|
||||
const Text(
|
||||
'Nem volt kedved hozzá...',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
'dontfelt'.i18n,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 22.0,
|
||||
color: Colors.white,
|
||||
@@ -246,9 +247,9 @@ class _LessonsBodyState extends State<LessonsBody> {
|
||||
const SizedBox(height: 18.0),
|
||||
lessons[1],
|
||||
const SizedBox(height: 18.0),
|
||||
const Text(
|
||||
'Késtél!',
|
||||
style: TextStyle(
|
||||
Text(
|
||||
'youlate'.i18n,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 22.0,
|
||||
color: Colors.white,
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:io';
|
||||
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/personality_card.dart';
|
||||
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -73,7 +74,7 @@ class _PersonalityBodyState extends State<PersonalityBody> {
|
||||
onTap: () => setState(() {
|
||||
isRevealed = true;
|
||||
}),
|
||||
child: const EmptyCard(text: 'Kattints a felfedéshez...'),
|
||||
child: EmptyCard(text: 'click_reveal'.i18n),
|
||||
),
|
||||
crossFadeState: isRevealed
|
||||
? CrossFadeState.showFirst
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:filcnaplo/api/providers/user_provider.dart';
|
||||
import 'package:filcnaplo/models/settings.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.i18n.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
@@ -78,7 +79,7 @@ class _StartBodyState extends State<StartBody> {
|
||||
weight: 0.001,
|
||||
),
|
||||
Text(
|
||||
'Kezdés',
|
||||
'start'.i18n,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
|
||||
Reference in New Issue
Block a user