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" "description": "Shown when the app has paused reading image metadata"
}, },
"configButtonLabel": "CONFIG", "configButtonLabel": "CONFIG",
"useAsAlbumCoverTooltip": "Use as album cover",
"changelogTitle": "Changelog", "changelogTitle": "Changelog",
"@changelogTitle": { "@changelogTitle": {

View file

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

View file

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