Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing day title translation #968

Merged
merged 16 commits into from
Jan 5, 2024
Merged
1 change: 1 addition & 0 deletions uni/lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class MessageLookup extends MessageLookupByLibrary {
"edit_on": MessageLookupByLibrary.simpleMessage("Finish editing"),
"empty_text":
MessageLookupByLibrary.simpleMessage("Please fill in this field"),
"exam_of": MessageLookupByLibrary.simpleMessage("of"),
"exams_filter":
MessageLookupByLibrary.simpleMessage("Exams Filter Settings"),
"exit_confirm":
Expand Down
1 change: 1 addition & 0 deletions uni/lib/generated/intl/messages_pt_PT.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class MessageLookup extends MessageLookupByLibrary {
"edit_on": MessageLookupByLibrary.simpleMessage("Concluir edição"),
"empty_text": MessageLookupByLibrary.simpleMessage(
"Por favor preenche este campo"),
"of_month": MessageLookupByLibrary.simpleMessage("de"),
"exams_filter":
MessageLookupByLibrary.simpleMessage("Definições Filtro de Exames"),
"exit_confirm": MessageLookupByLibrary.simpleMessage(
Expand Down
10 changes: 10 additions & 0 deletions uni/lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions uni/lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@
"@no_selected_exams": {},
"occurrence_type": "Type of occurrence",
"@occurrence_type": {},
"of_month": "of",
"@of_month": {},
"other_links": "Other links",
"@other_links": {},
"pass_change_request": "For security reasons, passwords must be changed periodically.",
Expand Down
2 changes: 2 additions & 0 deletions uni/lib/l10n/intl_pt_PT.arb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@
"@no_selected_exams": {},
"occurrence_type": "Tipo de ocorrência",
"@occurrence_type": {},
"of_month": "de",
"@of_month": {},
"other_links": "Outros links",
"@other_links": {},
"pass_change_request": "Por razões de segurança, as palavras-passe têm de ser alteradas periodicamente.",
Expand Down
3 changes: 2 additions & 1 deletion uni/lib/view/exams/widgets/day_title.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:uni/generated/l10n.dart';

class DayTitle extends StatelessWidget {
const DayTitle({
Expand All @@ -17,7 +18,7 @@ class DayTitle extends StatelessWidget {
padding: const EdgeInsets.only(top: 15, bottom: 3),
alignment: Alignment.center,
child: Text(
'$weekDay, $day de $month',
'$weekDay, $day ${S.of(context).of_month} $month',
style: Theme.of(context).textTheme.titleLarge,
),
);
Expand Down
Loading