8000 fix: added missing translations by Mastermind-sap · Pull Request #464 · CCExtractor/taskwarrior-flutter · GitHub
[go: up one dir, main page]

Skip to content

fix: added missing translations #464

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

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/app/modules/about/views/about_page_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class AboutPageBody extends StatelessWidget {
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: 'Version: ',
text: SentenceManager(
currentLanguage: aboutController
.selectedLanguage.value)
.sentences
.version,
style: TextStyle(
fontFamily: FontFamily.poppins,
fontWeight: TaskWarriorFonts.bold,
Expand All @@ -104,7 +108,11 @@ class AboutPageBody extends StatelessWidget {
text: TextSpan(
children: <TextSpan>[
TextSpan(
text: 'Package: ',
text: SentenceManager(
currentLanguage: aboutController
.selectedLanguage.value)
.sentences
.package,
style: TextStyle(
fontFamily: FontFamily.poppins,
fontWeight: TaskWarriorFonts.bold,
Expand Down
15 changes: 12 additions & 3 deletions lib/app/modules/detailRoute/views/dateTimePicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import 'package:flutter/material.dart';

import 'package:intl/intl.dart';
import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';

import 'package:taskwarrior/app/utils/constants/constants.dart';
import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
import 'package:taskwarrior/app/utils/language/sentence_manager.dart';

class DateTimeWidget extends StatelessWidget {
const DateTimeWidget({
Expand Down Expand Up @@ -63,7 +65,10 @@ class DateTimeWidget extends StatelessWidget {
),
),
TextSpan(
text: value ?? "not selected",
text: value ??
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences.notSelected,
// style: GoogleFonts.poppins(
// fontSize: TaskWarriorFonts.fontSizeMedium,
// color: AppSettings.isDarkMode
Expand Down Expand Up @@ -171,7 +176,9 @@ class DateTimeWidget extends StatelessWidget {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
"Can't set times in the past",
SentenceManager(
currentLanguage: AppSettings.selectedLanguage,
).sentences.cantSetTimeinPast,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down Expand Up @@ -243,7 +250,9 @@ class StartWidget extends StatelessWidget {
),
),
TextSpan(
text: value ?? "not selected",
text: value ?? SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences.notSelected,
// style: GoogleFonts.poppins(
// fontSize: TaskWarriorFonts.fontSizeMedium,
// color: AppSettings.isDarkMode
Expand Down
42 changes: 34 additions & 8 deletions lib/app/modules/detailRoute/views/description_widget.dart
10000
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'package:loggy/loggy.dart';
import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
import 'package:taskwarrior/app/utils/constants/constants.dart';
import 'package:taskwarrior/app/utils/constants/utilites.dart';
import 'package:taskwarrior/app/utils/gen/fonts.gen.dart';
import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
import 'package:taskwarrior/app/utils/language/sentence_manager.dart';

class DescriptionWidget extends StatelessWidget {
const DescriptionWidget({
F438 Expand Down Expand Up @@ -58,7 +60,11 @@ class DescriptionWidget extends StatelessWidget {
),
),
TextSpan(
text: value ?? "not selected",
text: value ??
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.notSelected,
// style: GoogleFonts.poppins(
// fontSize: TaskWarriorFonts.fontSizeMedium,
// color: AppSettings.isDarkMode
Expand Down Expand Up @@ -88,7 +94,9 @@ class DescriptionWidget extends StatelessWidget {
builder: (context) => Utils.showAlertDialog(
scrollable: true,
title: Text(
'Edit description',
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
.sentences
.editDescription,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -107,7 +115,10 @@ class DescriptionWidget extends StatelessWidget {
Get.back();
},
child: Text(
'Cancel',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.cancel,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -123,7 +134,10 @@ class DescriptionWidget extends StatelessWidget {
}
},
child: Text(
'Submit',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.submit,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down Expand Up @@ -189,7 +203,11 @@ class ProjectWidget extends StatelessWidget {
),
),
TextSpan(
text: value ?? "not selected",
text: value ??
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.notSelected,
// style: GoogleFonts.poppins(
// fontSize: TaskWarriorFonts.fontSizeMedium,
// color: AppSettings.isDarkMode
Expand Down Expand Up @@ -219,7 +237,9 @@ class ProjectWidget extends StatelessWidget {
builder: (context) => Utils.showAlertDialog(
scrollable: true,
title: Text(
'Edit project',
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
.sentences
.editProject,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -238,7 +258,10 @@ class ProjectWidget extends StatelessWidget {
Get.back();
},
child: Text(
'Cancel',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.cancel,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -255,7 +278,10 @@ class ProjectWidget extends StatelessWidget {
}
},
child: Text(
'Submit',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.submit,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down
45 changes: 34 additions & 11 deletions lib/app/modules/detailRoute/views/detail_route_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class DetailRouteView extends GetView<DetailRouteController> {
return AlertDialog(
backgroundColor: tColors.dialogBackgroundColor,
title: Text(
'Do you want to save changes?',
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
.sentences
.saveChangesConfirmation,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -54,7 +56,10 @@ class DetailRouteView extends GetView<DetailRouteController> {
Get.back();
},
child: Text(
'Yes',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.yes,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -67,7 +72,10 @@ class DetailRouteView extends GetView<DetailRouteController> {
Get.back();
},
child: Text(
'No',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.no,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -78,7 +86,10 @@ class DetailRouteView extends GetView<DetailRouteController> {
Get.back();
},
child: Text(
'Cancel',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.cancel,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down Expand Up @@ -150,7 +161,7 @@ class DetailRouteView extends GetView<DetailRouteController> {
return AlertDialog(
scrollable: true,
title: Text(
'Review changes:',
'${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.reviewChanges}:',
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -160,8 +171,8 @@ class DetailRouteView extends GetView<DetailRouteController> {
child: Text(
controller.modify.changes.entries
.map((entry) => '${entry.key}:\n'
' old: ${entry.value['old']}\n'
' new: ${entry.value['new']}')
' ${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.oldChanges}: ${entry.value['old']}\n'
' ${SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.newChanges}: ${entry.value['new']}')
.toList()
.join('\n'),
style: TextStyle(
Expand All @@ -175,7 +186,11 @@ class DetailRouteView extends GetView<DetailRouteController> {
Get.back();
},
child: Text(
'Cancel',
SentenceManager(
currentLanguage:
AppSettings.selectedLanguage)
.sentences
.cancel,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -186,7 +201,11 @@ class DetailRouteView extends GetView<DetailRouteController> {
controller.saveChanges();
},
child: Text(
'Submit',
SentenceManager(
currentLanguage:
AppSettings.selectedLanguage)
.sentences
.submit,
style: TextStyle(
color: tColors.primaryBackgroundColor,
),
Expand Down Expand Up @@ -326,7 +345,11 @@ class AttributeWidget extends StatelessWidget {
),
),
Text(
localValue?.toString() ?? "not selected",
localValue?.toString() ??
SentenceManager(
currentLanguage: AppSettings.selectedLanguage)
.sentences
.notSelected,
style: TextStyle(
fontFamily: FontFamily.poppins,
fontSize: TaskWarriorFonts.fontSizeMedium,
Expand All @@ -340,4 +363,4 @@ class AttributeWidget extends StatelessWidget {
);
}
}
}
}
4 changes: 3 additions & 1 deletion lib/app/modules/detailRoute/views/status_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
import 'package:taskwarrior/app/utils/constants/constants.dart';
import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
import 'package:taskwarrior/app/utils/language/sentence_manager.dart';


class StatusWidget extends StatelessWidget {
Expand Down Expand Up @@ -41,7 +43,7 @@ class StatusWidget extends StatelessWidget {
),
),
TextSpan(
text: value ?? "not selected",
text: value ?? SentenceManager(currentLanguage: AppSettings.selectedLanguage).sentences.notSelected,
style: GoogleFonts.poppins(
fontSize: TaskWarriorFonts.fontSizeMedium,
color: tColors.primaryTextColor,
Expand Down
22 changes: 17 additions & 5 deletions lib/app/modules/detailRoute/views/tags_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import 'package:google_fonts/google_fonts.dart';
import 'package:loggy/loggy.dart';
import 'package:taskwarrior/app/models/tag_meta_data.dart';
import 'package:taskwarrior/app/modules/home/controllers/home_controller.dart';
import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';

import 'package:taskwarrior/app/utils/constants/constants.dart';
import 'package:taskwarrior/app/utils/constants/utilites.dart';
import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
import 'package:taskwarrior/app/utils/taskfunctions/validate.dart';
import 'package:taskwarrior/app/utils/themes/theme_extension.dart';

Expand Down Expand Up @@ -128,7 +130,9 @@ class TagsRouteState extends State<TagsRoute> {
appBar: AppBar(
backgroundColor: TaskWarriorColors.kprimaryBackgroundColor,
title: Text(
'Tags',
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
.sentences
.tags,
style: GoogleFonts.poppins(color: TaskWarriorColors.white),
),
leading: BackButton(
Expand Down Expand Up @@ -159,7 +163,9 @@ class TagsRouteState extends State<TagsRoute> {
Padding(
padding: const EdgeInsets.fromLTRB(15, 18, 0, 10),
child: Text(
'Added tags will appear here',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage,
).sentences.addedTagsWillAppearHere,
style: GoogleFonts.poppins(
fontStyle: FontStyle.italic,
color: tColors.primaryTextColor),
Expand Down Expand Up @@ -196,7 +202,9 @@ class TagsRouteState extends State<TagsRoute> {
builder: (context) => Utils.showAlertDialog(
scrollable: true,
title: Text(
'Add tag',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage,
).sentences.addTag,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down Expand Up @@ -226,7 +234,9 @@ class TagsRouteState extends State<TagsRoute> {
Get.back();
},
child: Text(
'Cancel',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage,
).sentences.cancel,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand All @@ -246,7 +256,9 @@ class TagsRouteState extends State<TagsRoute> {
}
},
child: Text(
'Submit',
SentenceManager(
currentLanguage: AppSettings.selectedLanguage,
).sentences.submit,
style: TextStyle(
color: tColors.primaryTextColor,
),
Expand Down
8 changes: 6 additions & 2 deletions lib/app/modules/home/views/filter_drawer_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@ class FilterDrawer extends StatelessWidget {
),
);
} else {
return const Center(
child: Text('No projects available.'));
return Center(
child: Text(SentenceManager(
currentLanguage:
homeController.selectedLanguage.value)
.sentences
.filterDrawerNoProjectsAvailable));
}
},
),
Expand Down
Loading
0