Make hardcoded string translatable

This commit is contained in:
Ming Ming 2021-10-18 22:48:31 +08:00
parent 164237a858
commit fb3b035214
3 changed files with 11 additions and 1 deletions

View file

@ -971,6 +971,10 @@
}
}
},
"shareAlbumDialogTitle": "Share with user",
"@shareAlbumDialogTitle" : {
"description": "Dialog to share an album with another user"
},
"shareAlbumSuccessNotification": "Album shared with {user}",
"@shareAlbumSuccessNotification": {
"description": "Shared an album with another user successfully",

View file

@ -25,6 +25,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",
@ -77,6 +78,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",
@ -184,6 +186,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",
@ -222,6 +225,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",
@ -309,6 +313,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",
@ -369,6 +374,7 @@
"addToCollectionTooltip",
"addToCollectionProcessingNotification",
"addToCollectionSuccessNotification",
"shareAlbumDialogTitle",
"shareAlbumSuccessNotification",
"shareAlbumSuccessWithErrorNotification",
"unshareAlbumSuccessNotification",

View file

@ -98,7 +98,7 @@ class _ShareAlbumDialogState extends State<ShareAlbumDialog> {
.toList();
}
return SimpleDialog(
title: const Text("Share with user"),
title: Text(L10n.global().shareAlbumDialogTitle),
children: children,
);
}