From b028fb955f4f56c0d0181c5bb241a0de9780057d Mon Sep 17 00:00:00 2001 From: 3gf8jv4dv <3gf8jv4dv@gmail.com> Date: Mon, 16 Dec 2024 09:52:55 +0800 Subject: [PATCH] Optimize options with too long descriptions in settings (#2172) --- src/lang/en-us.json | 21 ++++++++++++------- src/lang/zh-cn.json | 21 ++++++++++++------- .../components/SettingDesktopLyric.vue | 3 +++ .../Setting/components/SettingDownload.vue | 8 +++++-- .../views/Setting/components/SettingPlay.vue | 2 ++ 5 files changed, 39 insertions(+), 16 deletions(-) diff --git a/src/lang/en-us.json b/src/lang/en-us.json index 4a457ce7..21e998c9 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -363,7 +363,8 @@ "setting__desktop_lyric_align_left": "Left", "setting__desktop_lyric_align_right": "Right", "setting__desktop_lyric_always_on_top": "Stay always-on-top", - "setting__desktop_lyric_always_on_top_loop": "Refresh lyric window repeatedly when \"Stay always-on-top\" is enabled (Try to enable this option when the window are still blocked by some programs)", + "setting__desktop_lyric_always_on_top_loop": "Refresh lyric window repeatedly when \"Stay always-on-top\" is enabled", + "setting__desktop_lyric_always_on_top_loop_tip": "Try to enable this option when the window are still blocked by some programs.", "setting__desktop_lyric_audio_visualization": "Enable audio visualization (EXPERIMENTAL)", "setting__desktop_lyric_color": "Lyric Font Color", "setting__desktop_lyric_color_reset": "Reset color", @@ -377,7 +378,8 @@ "setting__desktop_lyric_font_default": "Default", "setting__desktop_lyric_font_weight": "Bold Font", "setting__desktop_lyric_fullscreen_hide": "Hide lyric window when in fullscreen", - "setting__desktop_lyric_hover_hide": "Decrease lyric window transparency when the mouse moves into the lyric window (This feature has platform compatibility issues)", + "setting__desktop_lyric_hover_hide": "Decrease lyric window transparency when the mouse moves into the lyric window", + "setting__desktop_lyric_hover_hide_tip": "This feature has platform compatibility issues.", "setting__desktop_lyric_line_gap": "Lyric Spacing ({num})", "setting__desktop_lyric_line_gap_add": "Increase spacing", "setting__desktop_lyric_line_gap_dec": "Decrease spacing", @@ -390,7 +392,8 @@ "setting__desktop_lyric_scroll_align_center": "Center", "setting__desktop_lyric_scroll_align_top": "Top", "setting__desktop_lyric_shadow_color": "Shadow", - "setting__desktop_lyric_show_taskbar": "Show lyric window process on the taskbar (This option is used as a workaround when the screen recording program cannot capture the lyric window)", + "setting__desktop_lyric_show_taskbar": "Show lyric window process on the taskbar", + "setting__desktop_lyric_show_taskbar_tip": "This option is used as a workaround when the screen recording program cannot capture the lyric window.", "setting__desktop_lyric_unplay_color": "Not Played", "setting__dislike_list_input_tip": "song_name@artist_name\nsong_name\n@artist_name", "setting__dislike_list_save_btn": "Save", @@ -405,11 +408,13 @@ "setting__download_enable": "Enable Download", "setting__download_lyric": "Lyric Download", "setting__download_lyric_format": "Encoding Format of Downloaded Lyric Files", - "setting__download_lyric_format_gbk": "GBK (Try to select this format when Chinese garbled characters appear on some devices)", + "setting__download_lyric_format_tip": "Try to select GBK format when Chinese garbled characters appear on some devices.", + "setting__download_lyric_format_gbk": "GBK", "setting__download_lyric_format_utf8": "UTF-8", "setting__download_lyric_title": "Select whether to download the lyrics file", - "setting__download_max_num": "Number of Simultaneous Downloads (Set too high may result in IP being blocked, depending on the music API)", + "setting__download_max_num": "Number of Simultaneous Downloads", "setting__download_max_num_tip": "An excessively large number of simultaneous downloads may cause your IP to be blocked by the music API. Do you confirm the modification?", + "setting__download_max_num_tooltip": "Set too high may result in IP being blocked, depending on the music API.", "setting__download_name": "Music File Naming", "setting__download_name1": "\"Title - Artist\"", "setting__download_name2": "\"Artist - Title\"", @@ -506,7 +511,8 @@ "setting__other_tray_theme_origin": "Default", "setting__play": "Play", "setting__play_advanced_audio_features_tip": "A custom audio output device conflicts with this feature. After enabling this feature, the audio output device will be reset to the default output device. This problem cannot be solved at the moment. Do you still want to enable it?", - "setting__play_auto_clean_played_list": "Empty played list when playing the same list as the current playlist (All songs in the list in shuffle mode will participate in the random again)", + "setting__play_auto_clean_played_list": "Empty played list when playing the same list as the current playlist", + "setting__play_auto_clean_played_list_tip": "All songs in the list in shuffle mode will participate in the random again.", "setting__play_auto_skip_on_error": "Automatically switch songs when playback error occurs", "setting__play_detail": "Play Detail Page", "setting__play_detail_align": "Lyric Alignment", @@ -519,7 +525,8 @@ "setting__play_detail_font_zoom": "Zoom currently playing lyrics", "setting__play_detail_lyric_delay_scroll": "Delay scrolling lyrics", "setting__play_detail_lyric_progress": "Allow to adjust playback progress by drag-and-drop lyrics", - "setting__play_lyric_lxlrc": "Playback with karaoke-style lyrics if available (This feature consumes more performance, and it is not recommended to enable it on computers with low configuration)", + "setting__play_lyric_lxlrc": "Playback with karaoke-style lyrics if available", + "setting__play_lyric_lxlrc_tip": "This feature consumes more performance, and it is not recommended to enable it on computers with low configuration.", "setting__play_lyric_roma": "Show romanized lyrics", "setting__play_lyric_s2t": "Convert Chinese lyrics that are playing and downloading to traditional", "setting__play_lyric_transition": "Show translated lyrics", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index e945e41f..d154e417 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -363,7 +363,8 @@ "setting__desktop_lyric_align_left": "居左", "setting__desktop_lyric_align_right": "居右", "setting__desktop_lyric_always_on_top": "使歌词总是在其他窗口之上", - "setting__desktop_lyric_always_on_top_loop": "自动刷新歌词置顶(当歌词置顶后仍被某些程序遮挡时可尝试启用此选项)", + "setting__desktop_lyric_always_on_top_loop": "自动刷新歌词置顶", + "setting__desktop_lyric_always_on_top_loop_tip": "当歌词置顶后仍被某些程序遮挡时可尝试启用此选项", "setting__desktop_lyric_audio_visualization": "音频可视化(实验性)", "setting__desktop_lyric_color": "歌词字体颜色", "setting__desktop_lyric_color_reset": "重置颜色", @@ -377,7 +378,8 @@ "setting__desktop_lyric_font_default": "默认", "setting__desktop_lyric_font_weight": "加粗字体", "setting__desktop_lyric_fullscreen_hide": "全屏时自动关闭歌词", - "setting__desktop_lyric_hover_hide": "鼠标移入歌词区域时降低歌词透明度(此功能存在平台兼容性问题)", + "setting__desktop_lyric_hover_hide": "鼠标移入歌词区域时降低歌词透明度", + "setting__desktop_lyric_hover_hide_tip": "此功能存在平台兼容性问题,在某些平台上可能会出现预料外的问题", "setting__desktop_lyric_line_gap": "歌词间距({num})", "setting__desktop_lyric_line_gap_add": "加大间距", "setting__desktop_lyric_line_gap_dec": "减小间距", @@ -390,7 +392,8 @@ "setting__desktop_lyric_scroll_align_center": "中心", "setting__desktop_lyric_scroll_align_top": "顶部", "setting__desktop_lyric_shadow_color": "阴影颜色", - "setting__desktop_lyric_show_taskbar": "在任务栏显示歌词进程(此选项作为在录屏软件无法捕获歌词窗口时的变通解决方法)", + "setting__desktop_lyric_show_taskbar": "在任务栏显示歌词进程", + "setting__desktop_lyric_show_taskbar_tip": "此选项作为在录屏软件无法捕获歌词窗口时的变通解决方法", "setting__desktop_lyric_unplay_color": "未播放颜色", "setting__dislike_list_input_tip": "歌曲名@艺术家\n歌曲名\n@艺术家", "setting__dislike_list_save_btn": "保存", @@ -405,11 +408,13 @@ "setting__download_enable": "是否启用下载功能", "setting__download_lyric": "歌词下载", "setting__download_lyric_format": "下载的歌词文件编码格式", - "setting__download_lyric_format_gbk": "GBK(在某些设备上出现中文乱码时可尝试选择此格式)", + "setting__download_lyric_format_tip": "在某些设备上出现中文乱码时可尝试选择 GBK 格式", + "setting__download_lyric_format_gbk": "GBK", "setting__download_lyric_format_utf8": "UTF-8", "setting__download_lyric_title": "是否同时下载歌词文件", - "setting__download_max_num": "同时下载任务数(设置过大可能会导致 IP 被封,这取决于音源)", + "setting__download_max_num": "同时下载任务数", "setting__download_max_num_tip": "过大的同时下载数量可能会导致你的 IP 被音源封禁,是否确认修改?", + "setting__download_max_num_tooltip": "设置过大可能会导致 IP 被封,这取决于音源", "setting__download_name": "文件命名方式", "setting__download_name1": "歌曲名 - 艺术家", "setting__download_name2": "艺术家 - 歌曲名", @@ -506,7 +511,8 @@ "setting__other_tray_theme_origin": "原色", "setting__play": "播放设置", "setting__play_advanced_audio_features_tip": "自定义音频输出设备与该功能冲突,启用该功能后音频输出设备将会被重置为默认,目前此问题暂无法解决。是否仍要开启?", - "setting__play_auto_clean_played_list": "点击与播放列表相同的列表切歌时是否清空已播放列表(随机模式下列表内所有歌曲会重新参与随机)", + "setting__play_auto_clean_played_list": "点击与播放列表相同的列表切歌时是否清空已播放列表", + "setting__play_auto_clean_played_list_tip": "随机模式下列表内所有歌曲会重新参与随机", "setting__play_auto_skip_on_error": "播放错误时自动切换歌曲", "setting__play_detail": "播放详情页设置", "setting__play_detail_align": "歌词对齐方式", @@ -519,7 +525,8 @@ "setting__play_detail_font_zoom": "缩放当前正在播放的歌词", "setting__play_detail_lyric_delay_scroll": "延迟歌词滚动", "setting__play_detail_lyric_progress": "允许通过歌词调整播放进度", - "setting__play_lyric_lxlrc": "使用卡拉 OK 式歌词播放(如果可用。此功能比较耗性能,低配置电脑不建议开启)", + "setting__play_lyric_lxlrc": "使用卡拉 OK 式歌词播放(如果可用)", + "setting__play_lyric_lxlrc_tip": "此功能比较耗性能,低配置电脑不建议开启!", "setting__play_lyric_roma": "显示歌词罗马音(如果可用)", "setting__play_lyric_s2t": "将播放与下载的歌词转换为繁体中文", "setting__play_lyric_transition": "显示歌词翻译(如果可用)", diff --git a/src/renderer/views/Setting/components/SettingDesktopLyric.vue b/src/renderer/views/Setting/components/SettingDesktopLyric.vue index 49da05d7..e53f9a1e 100644 --- a/src/renderer/views/Setting/components/SettingDesktopLyric.vue +++ b/src/renderer/views/Setting/components/SettingDesktopLyric.vue @@ -15,12 +15,15 @@ dd base-checkbox(id="setting_desktop_lyric_alwaysOnTop" :model-value="appSetting['desktopLyric.isAlwaysOnTop']" :label="$t('setting__desktop_lyric_always_on_top')" @update:model-value="updateSetting({ 'desktopLyric.isAlwaysOnTop': $event })") .gap-top base-checkbox(id="setting_desktop_lyric_showTaskbar" :model-value="appSetting['desktopLyric.isShowTaskbar']" :label="$t('setting__desktop_lyric_show_taskbar')" @update:model-value="updateSetting({ 'desktopLyric.isShowTaskbar': $event })") + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__desktop_lyric_show_taskbar_tip')") .gap-top base-checkbox(id="setting_desktop_lyric_alwaysOnTopLoop" :model-value="appSetting['desktopLyric.isAlwaysOnTopLoop']" :label="$t('setting__desktop_lyric_always_on_top_loop')" @update:model-value="updateSetting({ 'desktopLyric.isAlwaysOnTopLoop': $event })") + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__desktop_lyric_always_on_top_loop_tip')") .gap-top base-checkbox(id="setting_desktop_lyric_lockScreen" :model-value="appSetting['desktopLyric.isLockScreen']" :label="$t('setting__desktop_lyric_lock_screen')" @update:model-value="updateSetting({ 'desktopLyric.isLockScreen': $event })") .gap-top(v-if="!isLinux") base-checkbox(id="setting_desktop_lyric_hoverHide" :model-value="appSetting['desktopLyric.isHoverHide']" :label="$t('setting__desktop_lyric_hover_hide')" @update:model-value="updateSetting({ 'desktopLyric.isHoverHide': $event })") + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__desktop_lyric_hover_hide_tip')") .gap-top base-checkbox(id="setting_desktop_lyric_ellipsis" :model-value="appSetting['desktopLyric.style.ellipsis']" :label="$t('setting__desktop_lyric_ellipsis')" @update:model-value="updateSetting({ 'desktopLyric.style.ellipsis': $event })") .gap-top diff --git a/src/renderer/views/Setting/components/SettingDownload.vue b/src/renderer/views/Setting/components/SettingDownload.vue index f15d4044..85b87359 100644 --- a/src/renderer/views/Setting/components/SettingDownload.vue +++ b/src/renderer/views/Setting/components/SettingDownload.vue @@ -17,7 +17,9 @@ dd(:aria-label="$t('setting__download_path_title')") base-btn.btn(min @click="handleChangeSavePath") {{ $t('setting__download_path_change_btn') }} dd - h3#download_max_num {{ $t('setting__download_max_num') }} + h3#download_max_num + | {{ $t('setting__download_max_num') }} + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__download_max_num_tooltip')") div p base-selection.gap-left(:class="$style.selectWidth" :model-value="appSetting['download.maxDownloadNum']" :list="maxNums" item-key="id" item-name="id" @change="handleUpdateMaxNum") @@ -54,7 +56,9 @@ dd(:aria-label="$t('setting__download_lyric_title')") .gap-top base-checkbox(id="setting_download_isDownloadRLrc" :disabled="!appSetting['download.isDownloadLrc']" :model-value="appSetting['download.isDownloadRLrc']" :label="$t('setting__download_rlyric')" @update:model-value="updateSetting({'download.isDownloadRLrc': $event})") dd - h3#download_lyric_format {{ $t('setting__download_lyric_format') }} + h3#download_lyric_format + | {{ $t('setting__download_lyric_format') }} + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__download_lyric_format_tip')") div base-checkbox.gap-left( v-for="item in lrcFormatList" :id="`setting_download_lrcFormat_${item.id}`" :key="item.id" diff --git a/src/renderer/views/Setting/components/SettingPlay.vue b/src/renderer/views/Setting/components/SettingPlay.vue index 3c0a6209..42a4e1df 100644 --- a/src/renderer/views/Setting/components/SettingPlay.vue +++ b/src/renderer/views/Setting/components/SettingPlay.vue @@ -9,6 +9,7 @@ dd base-checkbox(id="setting_player_save_play_time" :model-value="appSetting['player.isSavePlayTime']" :label="$t('setting__play_save_play_time')" @update:model-value="updateSetting({'player.isSavePlayTime': $event})") .gap-top base-checkbox(id="setting_player_auto_clean_played_list" :model-value="appSetting['player.isAutoCleanPlayedList']" :label="$t('setting__play_auto_clean_played_list')" @update:model-value="updateSetting({'player.isAutoCleanPlayedList': $event})") + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__play_auto_clean_played_list_tip')") .gap-top base-checkbox(id="setting_player_lyric_transition" :model-value="appSetting['player.isShowLyricTranslation']" :label="$t('setting__play_lyric_transition')" @update:model-value="updateSetting({'player.isShowLyricTranslation': $event})") .gap-top @@ -19,6 +20,7 @@ dd base-checkbox(id="setting_player_lyric_s2t" :model-value="appSetting['player.isS2t']" :label="$t('setting__play_lyric_s2t')" @update:model-value="updateSetting({'player.isS2t': $event})") .gap-top base-checkbox(id="setting_player_lyric_play_lxlrc" :model-value="appSetting['player.isPlayLxlrc']" :label="$t('setting__play_lyric_lxlrc')" @update:model-value="updateSetting({'player.isPlayLxlrc': $event})") + svg-icon(class="help-icon" name="help-circle-outline" :aria-label="$t('setting__play_lyric_lxlrc_tip')") .gap-top base-checkbox(id="setting_player_showTaskProgess" :model-value="appSetting['player.isShowTaskProgess']" :label="$t('setting__play_task_bar')" @update:model-value="updateSetting({'player.isShowTaskProgess': $event})") .gap-top(v-if="isMac")