Skip to content

Commit 9614b9a

Browse files
committed
added ccsync creds page to i18n
1 parent 909d157 commit 9614b9a

File tree

8 files changed

+132
-7
lines changed

8 files changed

+132
-7
lines changed

lib/app/modules/manage_task_champion_creds/views/manage_task_champion_creds_view.dart

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import 'package:flutter/material.dart';
22
import 'package:get/get.dart';
33
import 'package:google_fonts/google_fonts.dart';
4+
import 'package:taskwarrior/app/utils/app_settings/app_settings.dart';
45
import 'package:taskwarrior/app/utils/constants/constants.dart';
6+
import 'package:taskwarrior/app/utils/language/sentence_manager.dart';
57
import 'package:taskwarrior/app/utils/themes/theme_extension.dart';
68
import 'package:url_launcher/url_launcher.dart';
79
import '../controllers/manage_task_champion_creds_controller.dart';
@@ -24,7 +26,9 @@ class ManageTaskChampionCredsView
2426
crossAxisAlignment: CrossAxisAlignment.start,
2527
children: [
2628
Text(
27-
"Configure TaskChampion",
29+
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
30+
.sentences
31+
.configureTaskchampion,
2832
style: GoogleFonts.poppins(
2933
color: TaskWarriorColors.white,
3034
fontSize: TaskWarriorFonts.fontSizeLarge,
@@ -65,7 +69,10 @@ class ManageTaskChampionCredsView
6569
style: TextStyle(color: tColors.primaryTextColor),
6670
controller: controller.encryptionSecretController,
6771
decoration: InputDecoration(
68-
labelText: 'Encryption Secret',
72+
labelText: SentenceManager(
73+
currentLanguage: AppSettings.selectedLanguage)
74+
.sentences
75+
.encryptionSecret,
6976
labelStyle: TextStyle(color: tColors.primaryTextColor),
7077
border: const OutlineInputBorder(),
7178
),
@@ -75,7 +82,10 @@ class ManageTaskChampionCredsView
7582
style: TextStyle(color: tColors.primaryTextColor),
7683
controller: controller.clientIdController,
7784
decoration: InputDecoration(
78-
labelText: 'Client ID',
85+
labelText: SentenceManager(
86+
currentLanguage: AppSettings.selectedLanguage)
87+
.sentences
88+
.ccsyncClientId,
7989
labelStyle: TextStyle(color: tColors.primaryTextColor),
8090
border: const OutlineInputBorder(),
8191
),
@@ -85,7 +95,10 @@ class ManageTaskChampionCredsView
8595
style: TextStyle(color: tColors.primaryTextColor),
8696
controller: controller.ccsyncBackendUrlController,
8797
decoration: InputDecoration(
88-
labelText: 'CCSync Backend URL',
98+
labelText: SentenceManager(
99+
currentLanguage: AppSettings.selectedLanguage)
100+
.sentences
101+
.ccsyncBackendUrl,
89102
labelStyle: TextStyle(color: tColors.primaryTextColor),
90103
border: const OutlineInputBorder(),
91104
),
@@ -95,8 +108,14 @@ class ManageTaskChampionCredsView
95108
onPressed: () async {
96109
await controller.saveCredentials();
97110
Get.snackbar(
98-
'Success',
99-
'Credentials saved successfully',
111+
SentenceManager(
112+
currentLanguage: AppSettings.selectedLanguage)
113+
.sentences
114+
.success,
115+
SentenceManager(
116+
currentLanguage: AppSettings.selectedLanguage)
117+
.sentences
118+
.credentialsSavedSuccessfully,
100119
snackPosition: SnackPosition.BOTTOM,
101120
duration: Duration(seconds: 2),
102121
);
@@ -105,7 +124,10 @@ class ManageTaskChampionCredsView
105124
),
106125
const SizedBox(height: 10),
107126
Text(
108-
'Tip: Click on the info icon in the top right corner to get your credentials',
127+
SentenceManager(
128+
currentLanguage: AppSettings.selectedLanguage)
129+
.sentences
130+
.tip,
109131
style: TextStyle(
110132
fontSize: 15,
111133
color: tColors.primaryTextColor,

lib/app/utils/language/bengali_sentences.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,4 +632,19 @@ class BengaliSentences extends Sentences {
632632
String get change => "পরিবর্তন করুন";
633633
@override
634634
String get dateCanNotBeInPast => "তারিখ অতীতে থাকতে পারে না";
635+
@override
636+
String get configureTaskchampion => 'Taskchampion সিঙ্ক কনফিগার করুন';
637+
@override
638+
String get encryptionSecret => 'এনক্রিপশন সিক্রেট';
639+
@override
640+
String get ccsyncBackendUrl => 'CCSync ব্যাকএন্ড URL';
641+
@override
642+
String get ccsyncClientId => 'ক্লায়েন্ট আইডি';
643+
@override
644+
String get success => 'সফল হয়েছে';
645+
@override
646+
String get credentialsSavedSuccessfully => 'শংসাপত্র সফলভাবে সংরক্ষিত হয়েছে';
647+
@override
648+
String get tip =>
649+
"টিপ: আপনার শংসাপত্র পেতে উপরের ডানদিকে তথ্য আইকনে ক্লিক করুন";
635650
}

lib/app/utils/language/english_sentences.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,4 +621,19 @@ class EnglishSentences extends Sentences {
621621
String get change => "Change";
622622
@override
623623
String get dateCanNotBeInPast => "Date can not be in past";
624+
@override
625+
String get configureTaskchampion => 'Configure Taskchampion';
626+
@override
627+
String get encryptionSecret => 'Encryption Secret';
628+
@override
629+
String get ccsyncBackendUrl => 'CCSync Backend URL';
630+
@override
631+
String get ccsyncClientId => 'Client ID';
632+
@override
633+
String get success => 'Success';
634+
@override
635+
String get credentialsSavedSuccessfully => 'Credentials saved successfully';
636+
@override
637+
String get tip =>
638+
"Tip: Click on the info icon in the top right corner to get your credentials";
624639
}

lib/app/utils/language/french_sentences.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,4 +645,21 @@ class FrenchSentences extends Sentences {
645645
String get change => "Changer";
646646
@override
647647
String get dateCanNotBeInPast => "La date ne peut pas être dans le passé";
648+
@override
649+
String get configureTaskchampion =>
650+
"Configurer Taskchampion pour la synchronisation";
651+
@override
652+
String get encryptionSecret => 'Secret de chiffrement';
653+
@override
654+
String get ccsyncBackendUrl => 'URL du backend CCSync';
655+
@override
656+
String get ccsyncClientId => 'ID client';
657+
@override
658+
String get success => 'Succès';
659+
@override
660+
String get credentialsSavedSuccessfully =>
661+
'Identifiants enregistrés avec succès';
662+
@override
663+
String get tip =>
664+
"Astuce : Cliquez sur l'icône d'information en haut à droite pour obtenir vos identifiants";
648665
}

lib/app/utils/language/hindi_sentences.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,4 +609,20 @@ class HindiSentences extends Sentences {
609609
String get change => "बदलें";
610610
@override
611611
String get dateCanNotBeInPast => "तारीख अतीत में नहीं हो सकती";
612+
@override
613+
String get configureTaskchampion => "Taskchampion कॉन्फ़िगर करें";
614+
@override
615+
String get encryptionSecret => 'एन्क्रिप्शन सीक्रेट';
616+
@override
617+
String get ccsyncBackendUrl => 'CCSync बैकएंड URL';
618+
@override
619+
String get ccsyncClientId => 'क्लाइंट आईडी';
620+
@override
621+
String get success => 'सफलता';
622+
@override
623+
String get credentialsSavedSuccessfully =>
624+
'क्रेडेंशियल्स सफलतापूर्वक सहेजे गए';
625+
@override
626+
String get tip =>
627+
"टिप: अपनी क्रेडेंशियल्स प्राप्त करने के लिए ऊपर दाईं ओर स्थित जानकारी आइकन पर क्लिक करें";
612628
}

lib/app/utils/language/marathi_sentences.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,4 +632,20 @@ class MarathiSentences extends Sentences {
632632
String get change => 'बदल';
633633
@override
634634
String get dateCanNotBeInPast => "तारीख भूतकाळात असू शकत नाही";
635+
@override
636+
String get configureTaskchampion => "Taskchampion कॉन्फिगर करा";
637+
@override
638+
String get encryptionSecret => 'एन्क्रिप्शन गुपित';
639+
@override
640+
String get ccsyncBackendUrl => 'CCSync बॅकएंड URL';
641+
@override
642+
String get ccsyncClientId => 'क्लायंट आयडी';
643+
@override
644+
String get success => 'यशस्वी';
645+
@override
646+
String get credentialsSavedSuccessfully =>
647+
'क्रेडेन्शियल्स यशस्वीरित्या जतन केले';
648+
@override
649+
String get tip =>
650+
"टीप: तुमची क्रेडेन्शियल्स मिळवण्यासाठी वरच्या उजव्या कोपऱ्यातील माहिती चिन्हावर क्लिक करा";
635651
}

lib/app/utils/language/sentences.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:taskwarrior/app/utils/taskchampion/credentials_storage.dart';
23

34
abstract class Sentences {
45
String get helloWorld;
@@ -331,4 +332,12 @@ abstract class Sentences {
331332
String get add;
332333
String get change;
333334
String get dateCanNotBeInPast;
335+
// ccsync credentials page
336+
String get configureTaskchampion;
337+
String get encryptionSecret;
338+
String get ccsyncBackendUrl;
339+
String get ccsyncClientId;
340+
String get success;
341+
String get credentialsSavedSuccessfully;
342+
String get tip;
334343
}

lib/app/utils/language/spanish_sentences.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,19 @@ class SpanishSentences extends Sentences {
635635
String get change => "Cambiar";
636636
@override
637637
String get dateCanNotBeInPast => "La fecha no puede estar en el pasado";
638+
@override
639+
String get configureTaskchampion => "Configurar Taskchampion";
640+
@override
641+
String get encryptionSecret => 'Secreto de cifrado';
642+
@override
643+
String get ccsyncBackendUrl => 'URL del backend de CCSync';
644+
@override
645+
String get ccsyncClientId => 'ID de cliente';
646+
@override
647+
String get success => 'Éxito';
648+
@override
649+
String get credentialsSavedSuccessfully => 'Credenciales guardadas con éxito';
650+
@override
651+
String get tip =>
652+
"Consejo: Haz clic en el ícono de información en la esquina superior derecha para obtener tus credenciales";
638653
}

0 commit comments

Comments
 (0)