TF-2646 Fix confused Select all name

This commit is contained in:
dab246
2024-03-25 11:53:56 +07:00
committed by Dat H. Pham
parent f5e6cd0822
commit 0b10bf6944
9 changed files with 78 additions and 9 deletions
@@ -396,14 +396,34 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
); );
}), }),
const SizedBox(width: 16), const SizedBox(width: 16),
TMailButtonWidget( Tooltip(
key: const Key('select_all_emails_button'), message: AppLocalizations.of(context).selectAllMessagesOfThisPage,
text: AppLocalizations.of(context).select_all, child: ElevatedButton.icon(
icon: controller.imagePaths.icSelectAll, onPressed: controller.selectAllEmailAction,
borderRadius: 10, icon: SvgPicture.asset(
iconSize: 16, controller.imagePaths.icSelectAll,
padding: const EdgeInsetsDirectional.symmetric(horizontal: 12, vertical: 8), width: 16,
onTapActionCallback: controller.selectAllEmailAction, height: 16,
fit: BoxFit.fill,
),
label: Text(
AppLocalizations.of(context).selectAllMessagesOfThisPage,
maxLines: 1,
overflow: TextOverflow.ellipsis
),
style: ElevatedButton.styleFrom(
backgroundColor: AppColor.colorButtonHeaderThread,
shadowColor: Colors.transparent,
padding: const EdgeInsetsDirectional.symmetric(horizontal: 12, vertical: 8),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)),
),
elevation: 0.0,
foregroundColor: AppColor.colorTextButtonHeaderThread,
maximumSize: const Size.fromWidth(250),
textStyle: const TextStyle(fontSize: 12),
),
),
), ),
if (controller.isAbleMarkAllAsRead()) if (controller.isAbleMarkAllAsRead())
Padding( Padding(
+6
View File
@@ -3048,5 +3048,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "اختر كافة رسائل هذه الصفحة",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+6
View File
@@ -3244,5 +3244,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Select all messages of this page",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+6
View File
@@ -3869,5 +3869,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Sélectionnez tous les messages de cette page",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+6
View File
@@ -2678,5 +2678,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Seleziona tutti i messaggi di questa pagina",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+7 -1
View File
@@ -1,5 +1,5 @@
{ {
"@@last_modified": "2024-03-15T11:06:05.333495", "@@last_modified": "2024-03-25T10:51:29.520399",
"initializing_data": "Initializing data...", "initializing_data": "Initializing data...",
"@initializing_data": { "@initializing_data": {
"type": "text", "type": "text",
@@ -3683,5 +3683,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Select all messages of this page",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+6
View File
@@ -3887,5 +3887,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Выбрать все сообщения на этой странице",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
+6
View File
@@ -3875,5 +3875,11 @@
"type": "text", "type": "text",
"placeholders_order": [], "placeholders_order": [],
"placeholders": {} "placeholders": {}
},
"selectAllMessagesOfThisPage": "Chọn tất cả tin nhắn của trang này",
"@selectAllMessagesOfThisPage": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
} }
} }
@@ -3837,4 +3837,11 @@ class AppLocalizations {
'Always request read receipts with outgoing messages', 'Always request read receipts with outgoing messages',
name: 'emailReadReceiptsToggleDescription'); name: 'emailReadReceiptsToggleDescription');
} }
String get selectAllMessagesOfThisPage {
return Intl.message(
'Select all messages of this page',
name: 'selectAllMessagesOfThisPage',
);
}
} }