mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-04-21 01:17:55 +02:00
feat: Add localizations
This commit is contained in:
parent
cf712c79f9
commit
bc64e09fbe
@ -1562,6 +1562,10 @@
|
||||
"placeholders": {}
|
||||
},
|
||||
"addAccount": "Add account",
|
||||
"editBundlesForAccount": "Edit bundles for this account",
|
||||
"addToBundle": "Add to bundle",
|
||||
"removeFromBundle": "Remove from this bundle",
|
||||
"bundleName": "Bundle name",
|
||||
"enableMultiAccounts": "Enable multi accounts on this device",
|
||||
"openInMaps": "Open in maps",
|
||||
"@openInMaps": {
|
||||
|
@ -437,16 +437,16 @@ class ChatListController extends State<ChatList> {
|
||||
.clients[Matrix.of(context).getClientIndexByMatrixId(userId)];
|
||||
final action = await showConfirmationDialog<EditBundleAction>(
|
||||
context: context,
|
||||
title: 'Edit bundles for this account',
|
||||
title: L10n.of(context).editBundlesForAccount,
|
||||
actions: [
|
||||
AlertDialogAction(
|
||||
key: EditBundleAction.addToBundle,
|
||||
label: 'Add to bundle',
|
||||
label: L10n.of(context).addToBundle,
|
||||
),
|
||||
if (Matrix.of(context).activeBundle != null)
|
||||
AlertDialogAction(
|
||||
key: EditBundleAction.removeFromBundle,
|
||||
label: 'Remove from this bundle',
|
||||
label: L10n.of(context).removeFromBundle,
|
||||
),
|
||||
],
|
||||
);
|
||||
@ -455,8 +455,10 @@ class ChatListController extends State<ChatList> {
|
||||
case EditBundleAction.addToBundle:
|
||||
final bundle = await showTextInputDialog(
|
||||
context: context,
|
||||
title: 'Bundle name',
|
||||
textFields: [DialogTextField(hintText: 'Bundle name')]);
|
||||
title: L10n.of(context).bundleName,
|
||||
textFields: [
|
||||
DialogTextField(hintText: L10n.of(context).bundleName)
|
||||
]);
|
||||
if (bundle.isEmpty && bundle.single.isEmpty) return;
|
||||
await showFutureLoadingDialog(
|
||||
context: context,
|
||||
|
Loading…
x
Reference in New Issue
Block a user