Fix hardcoded text

This commit is contained in:
Ming Ming 2021-08-17 22:18:30 +08:00
parent fe91c8fe8b
commit 047f92bc98
3 changed files with 10 additions and 3 deletions

View file

@ -652,6 +652,7 @@
"description": "Shown when the app has paused reading image metadata"
},
"configButtonLabel": "CONFIG",
"useAsAlbumCoverTooltip": "Use as album cover",
"changelogTitle": "Changelog",
"@changelogTitle": {

View file

@ -18,7 +18,12 @@
"setAlbumCoverFailureNotification",
"metadataTaskProcessingNotification",
"metadataTaskPauseNoWiFiNotification",
"configButtonLabel"
"configButtonLabel",
"useAsAlbumCoverTooltip"
],
"es": [
"useAsAlbumCoverTooltip"
],
"fr": [
@ -40,6 +45,7 @@
"setAlbumCoverFailureNotification",
"metadataTaskProcessingNotification",
"metadataTaskPauseNoWiFiNotification",
"configButtonLabel"
"configButtonLabel",
"useAsAlbumCoverTooltip"
]
}

View file

@ -118,7 +118,7 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
if (widget.album != null)
_DetailPaneButton(
icon: Icons.photo_album_outlined,
label: "Use as album cover",
label: L10n.of(context).useAsAlbumCoverTooltip,
onPressed: () => _onSetAlbumCoverPressed(context),
),
_DetailPaneButton(