diff --git a/src/lang/en-us.json b/src/lang/en-us.json index c98915d5..3e4b1e4f 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -142,6 +142,7 @@ "list_update_modal__title": "List update management", "list_update_modal__update": "Sync", "lists__add_local_file_desc": "Select song file", + "lists__dislike_music_singer_tip": "Do you really not like {singer}'s {name}?", "lists__dislike_music_tip": "Do you really dislike {name}?", "lists__duplicate": "Duplicate song", "lists__export": "Export", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 93dcec0f..c4a9f43d 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -142,6 +142,7 @@ "list_update_modal__title": "列表更新管理", "list_update_modal__update": "立即更新", "lists__add_local_file_desc": "选择歌曲文件", + "lists__dislike_music_singer_tip": "你真的不喜欢 {singer} 的 {name} 吗?", "lists__dislike_music_tip": "你真的不喜欢 {name} 吗?", "lists__duplicate": "重复歌曲", "lists__export": "导出", diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index a4b5d349..0b8cef77 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -142,6 +142,7 @@ "list_update_modal__title": "清單更新管理", "list_update_modal__update": "立即更新", "lists__add_local_file_desc": "選擇歌曲文件", + "lists__dislike_music_singer_tip": "你真的不喜歡 {singer} 的 {name} 嗎?", "lists__dislike_music_tip": "你真的不喜歡 {name} 嗎?", "lists__duplicate": "重複歌曲", "lists__export": "匯出", diff --git a/src/renderer/components/material/OnlineList/useMusicActions.js b/src/renderer/components/material/OnlineList/useMusicActions.js index b9fb27d4..dd2dd733 100644 --- a/src/renderer/components/material/OnlineList/useMusicActions.js +++ b/src/renderer/components/material/OnlineList/useMusicActions.js @@ -33,7 +33,7 @@ export default ({ props }) => { const handleDislikeMusic = async(index) => { const minfo = props.list[index] const confirm = await dialog.confirm({ - message: t('lists__dislike_music_tip', { name: minfo.name }), + message: minfo.singer ? t('lists__dislike_music_singer_tip', { name: minfo.name, singer: minfo.singer }) : t('lists__dislike_music_tip', { name: minfo.name }), cancelButtonText: t('cancel_button_text_2'), confirmButtonText: t('confirm_button_text'), }) diff --git a/src/renderer/views/List/MusicList/useMusicActions.js b/src/renderer/views/List/MusicList/useMusicActions.js index 7664ee16..2f270f61 100644 --- a/src/renderer/views/List/MusicList/useMusicActions.js +++ b/src/renderer/views/List/MusicList/useMusicActions.js @@ -40,7 +40,7 @@ export default ({ props, list, selectedList, removeAllSelect }) => { const handleDislikeMusic = async(index) => { const minfo = list.value[index] const confirm = await dialog.confirm({ - message: t('lists__dislike_music_tip', { name: minfo.name }), + message: minfo.singer ? t('lists__dislike_music_singer_tip', { name: minfo.name, singer: minfo.singer }) : t('lists__dislike_music_tip', { name: minfo.name }), cancelButtonText: t('cancel_button_text_2'), confirmButtonText: t('confirm_button_text'), })