Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some i18n keys #2148

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
"desktop_lyric__lock": "Lock Lyrics",
"desktop_lyric__lrc_active_zoom_off": "Unzoom the currently playing lyrics",
"desktop_lyric__lrc_active_zoom_on": "Zoom the currently playing lyrics",
"desktop_lyric__opactiy_decrease": "Increase Transparency (Right click to fine-tune)",
"desktop_lyric__opactiy_increase": "Decrease Transparency (Right click to fine-tune)",
"desktop_lyric__opacity_decrease": "Increase Transparency (Right click to fine-tune)",
"desktop_lyric__opacity_increase": "Decrease Transparency (Right click to fine-tune)",
"desktop_lyric__theme": "Theme Color",
"desktop_lyric__unlock": "Unlock Lyrics",
"desktop_lyric__win_top_off": "Cancel the top lyrics interface",
"desktop_lyric__win_top_on": "Top lyrics interface",
"download": "Downloads",
"download___status_complated": "Download completed",
"download___status_completed": "Download completed",
"download___status_error": "task error",
"download___status_paused": "Pause downloads",
"download___status_runing": "downloading",
"download___status_wating": "waiting to download",
"download___status_running": "downloading",
"download___status_waiting": "waiting to download",
"download__all": "All Tasks",
"download__error": "Error",
"download__finished": "Download complete",
Expand All @@ -62,7 +62,7 @@
"download__paused": "Paused",
"download__progress": "Progress",
"download__quality": "Quality",
"download__runing": "Downloading",
"download__running": "Downloading",
"download__status": "Status",
"download_status_error_check_path": "There is an error in checking the download path, please check whether the set download directory is normal",
"download_status_error_check_path_exist": "A file with the same name exists, skip download",
Expand All @@ -71,7 +71,7 @@
"download_status_error_url_failed": "Failed to get music link",
"download_status_error_write": "The song save location is occupied or does not have write permission, please try to change the song save directory or restart the software or restart the computer, the error details: ",
"download_status_start": "start download",
"download_status_url_geting": "Getting music link...",
"download_status_url_getting": "Getting music link...",
"download_status_write_queue": "Data is being written ({num})",
"duplicate_list_tip": "You have favorited this list [{name}] before, do you need to update the songs in it?",
"export": "Export",
Expand Down Expand Up @@ -167,7 +167,7 @@
"lists__sync_confirm_tip": "This will replace the songs in {name} with the songs in the online list, are you sure you want to update?",
"load_list_file_error_detail": "We have helped you back up the old list file to {path}\nIt is stored in JSON format, you can try to repair and restore it manually\n\nError details: {detail}",
"load_list_file_error_title": "Error loading playlist data",
"loding": "Loading...",
"loading": "Loading...",
"love_list": "Favorites",
"lyric__load_error": "Failed to get lyrics",
"lyric__select": "Lyric text selection",
Expand All @@ -184,7 +184,7 @@
"lyric_menu__size_add": "Increase font size (right click to fine-tune)",
"lyric_menu__size_dec": "Decrease font (right click to fine tune)",
"lyric_menu__size_reset": "Reset",
"media_device__emtpy_device_tip": "The audio output device is empty. If it cannot be played, please check whether the sound card driver has been installed or reinstall the sound card driver!",
"media_device__empty_device_tip": "The audio output device is empty. If it cannot be played, please check whether the sound card driver has been installed or reinstall the sound card driver!",
"min": "Minimize",
"music_album": "Album",
"music_duplicate": "Duplicate song",
Expand Down Expand Up @@ -218,8 +218,8 @@
"player__desktop_lyric_unlock": "Right click to unlock lyrics",
"player__end": "Stopped",
"player__error": "Error loading music. Switch to next song after 5 seconds",
"player__geting_url": "Getting music link...",
"player__geting_url_delay_retry": "The service is busy, try again in {time} seconds...",
"player__getting_url": "Getting music link...",
"player__getting_url_delay_retry": "The service is busy, try again in {time} seconds...",
"player__hide_detail_tip": "Hide detail page (Right-click in the view to quickly hide the details page)",
"player__loading": "Music loading...",
"player__music_album": "Album: ",
Expand Down
22 changes: 11 additions & 11 deletions src/lang/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
"desktop_lyric__lock": "锁定歌词",
"desktop_lyric__lrc_active_zoom_off": "取消缩放当前播放的歌词",
"desktop_lyric__lrc_active_zoom_on": "缩放当前播放的歌词",
"desktop_lyric__opactiy_decrease": "增加透明度(右击可微调)",
"desktop_lyric__opactiy_increase": "减小透明度(右击可微调)",
"desktop_lyric__opacity_decrease": "增加透明度(右击可微调)",
"desktop_lyric__opacity_increase": "减小透明度(右击可微调)",
"desktop_lyric__theme": "主题配色",
"desktop_lyric__unlock": "解锁歌词",
"desktop_lyric__win_top_off": "取消置顶歌词界面",
"desktop_lyric__win_top_on": "置顶歌词界面",
"download": "下载",
"download___status_complated": "下载完成",
"download___status_completed": "下载完成",
"download___status_error": "任务出错",
"download___status_paused": "暂停下载",
"download___status_runing": "正在下载",
"download___status_wating": "等待下载",
"download___status_running": "正在下载",
"download___status_waiting": "等待下载",
"download__all": "全部任务",
"download__error": "出错",
"download__finished": "下载完成",
Expand All @@ -62,7 +62,7 @@
"download__paused": "已暂停",
"download__progress": "进度",
"download__quality": "品质",
"download__runing": "正在下载",
"download__running": "正在下载",
"download__status": "状态",
"download_status_error_check_path": "检查下载路径出错,请检查设置的下载目录是否正常",
"download_status_error_check_path_exist": "存在同名文件,跳过下载",
Expand All @@ -71,7 +71,7 @@
"download_status_error_url_failed": "获取音乐链接失败",
"download_status_error_write": "歌曲保存位置被占用或没有写入权限,请尝试更改歌曲保存目录或重启软件或重启电脑,错误详情:",
"download_status_start": "开始下载",
"download_status_url_geting": "音乐链接获取中...",
"download_status_url_getting": "音乐链接获取中...",
"download_status_write_queue": "数据写入中({num})",
"duplicate_list_tip": "你之前已收藏过该列表 [{name}],是否需要更新里面的歌曲?",
"export": "导出",
Expand Down Expand Up @@ -167,7 +167,7 @@
"lists__sync_confirm_tip": "这将会把 {name} 内的歌曲替换成在线列表的歌曲,你确认要更新吗?",
"load_list_file_error_detail": "我们已经帮你把旧的列表文件备份到{path}\n它以 JSON 格式存储,你可以尝试手动修复并恢复它\n\n错误详情:{detail}",
"load_list_file_error_title": "播放列表数据加载错误(建议到GitHub或加群反馈)",
"loding": "加载中...",
"loading": "加载中...",
"love_list": "收藏",
"lyric__load_error": "歌词获取失败",
"lyric__select": "歌词文本选择",
Expand All @@ -184,7 +184,7 @@
"lyric_menu__size_add": "加大字体(右击可微调)",
"lyric_menu__size_dec": "减小字体(右击可微调)",
"lyric_menu__size_reset": "重置",
"media_device__emtpy_device_tip": "音频输出设备为空,若出现无法播放的情况,请检查声卡驱动是否已安装或重装声卡驱动!",
"media_device__empty_device_tip": "音频输出设备为空,若出现无法播放的情况,请检查声卡驱动是否已安装或重装声卡驱动!",
"min": "最小化",
"music_album": "专辑名",
"music_duplicate": "重复歌曲",
Expand Down Expand Up @@ -218,8 +218,8 @@
"player__desktop_lyric_unlock": "右击解锁歌词",
"player__end": "播放完毕",
"player__error": "音频加载出错,5 秒后切换下一首",
"player__geting_url": "歌曲链接获取中...",
"player__geting_url_delay_retry": "服务繁忙,{time}秒后重试...",
"player__getting_url": "歌曲链接获取中...",
"player__getting_url_delay_retry": "服务繁忙,{time}秒后重试...",
"player__hide_detail_tip": "隐藏详情页(界面内右键双击可快速隐藏详情页)",
"player__loading": "音乐加载中...",
"player__music_album": "专辑名:",
Expand Down
22 changes: 11 additions & 11 deletions src/lang/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
"desktop_lyric__lock": "鎖定歌詞",
"desktop_lyric__lrc_active_zoom_off": "取消縮放目前播放的歌詞",
"desktop_lyric__lrc_active_zoom_on": "縮放目前播放的歌詞",
"desktop_lyric__opactiy_decrease": "增加透明度(右鍵可微調)",
"desktop_lyric__opactiy_increase": "減小透明度(右鍵可微調)",
"desktop_lyric__opacity_decrease": "增加透明度(右鍵可微調)",
"desktop_lyric__opacity_increase": "減小透明度(右鍵可微調)",
"desktop_lyric__theme": "主題配色",
"desktop_lyric__unlock": "解鎖歌詞",
"desktop_lyric__win_top_off": "取消置頂歌詞介面",
"desktop_lyric__win_top_on": "置頂歌詞介面",
"download": "下載",
"download___status_complated": "下載完成",
"download___status_completed": "下載完成",
"download___status_error": "任務出錯",
"download___status_paused": "暫停下載",
"download___status_runing": "正在下載",
"download___status_wating": "等待下載",
"download___status_running": "正在下載",
"download___status_waiting": "等待下載",
"download__all": "全部任務",
"download__error": "出錯",
"download__finished": "下載完成",
Expand All @@ -62,7 +62,7 @@
"download__paused": "已暫停",
"download__progress": "進度",
"download__quality": "品質",
"download__runing": "正在下載",
"download__running": "正在下載",
"download__status": "狀態",
"download_status_error_check_path": "檢查下載路徑出錯,請檢查設定的下載目錄是否正常",
"download_status_error_check_path_exist": "存在同名文件,跳過下載",
Expand All @@ -71,7 +71,7 @@
"download_status_error_url_failed": "取得音樂連結失敗",
"download_status_error_write": "歌曲儲存位置被佔用或沒有寫入權限,請嘗試變更歌曲儲存目錄或重新啟動軟體或重新啟動電腦,錯誤詳情:",
"download_status_start": "開始下載",
"download_status_url_geting": "音樂連結獲取中...",
"download_status_url_getting": "音樂連結獲取中...",
"download_status_write_queue": "資料寫入中({num})",
"duplicate_list_tip": "你之前已收藏過該清單 [{name}],是否需要更新裡面的歌曲?",
"export": "匯出",
Expand Down Expand Up @@ -167,7 +167,7 @@
"lists__sync_confirm_tip": "這將會把 {name} 內的歌曲替換成線上清單的歌曲,你確認要更新嗎?",
"load_list_file_error_detail": "我們已經幫你把舊的清單檔案備份到{path}\n它以 JSON 格式存儲,你可以嘗試手動修復並恢復它\n\n錯誤詳情:{detail}",
"load_list_file_error_title": "播放清單資料載入錯誤(建議到GitHub或加群回饋)",
"loding": "載入中...",
"loading": "載入中...",
"love_list": "收藏",
"lyric__load_error": "歌詞獲取失敗",
"lyric__select": "歌詞文本選擇",
Expand All @@ -184,7 +184,7 @@
"lyric_menu__size_add": "加大字體(右鍵可微調)",
"lyric_menu__size_dec": "減小字體(右鍵可微調)",
"lyric_menu__size_reset": "重置",
"media_device__emtpy_device_tip": "音訊輸出裝置為空,若出現無法播放的狀況,請檢查音效卡驅動是否已安裝或重裝音效卡驅動!",
"media_device__empty_device_tip": "音訊輸出裝置為空,若出現無法播放的狀況,請檢查音效卡驅動是否已安裝或重裝音效卡驅動!",
"min": "最小化",
"music_album": "專輯名",
"music_duplicate": "重複歌曲",
Expand Down Expand Up @@ -218,8 +218,8 @@
"player__desktop_lyric_unlock": "右鍵解鎖歌詞",
"player__end": "播放完畢",
"player__error": "音訊載入出錯,5 秒後切換下一首",
"player__geting_url": "歌曲連結獲取中...",
"player__geting_url_delay_retry": "服務繁忙,{time}秒後重試...",
"player__getting_url": "歌曲連結獲取中...",
"player__getting_url_delay_retry": "服務繁忙,{time}秒後重試...",
"player__hide_detail_tip": "隱藏詳情頁(介面內右鍵雙擊可快速隱藏詳情頁)",
"player__loading": "音樂加載中...",
"player__music_album": "專輯名稱:",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer-lyric/components/layout/ControlBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<use xlink:href="#icon-font-decrease" />
</svg>
</button>
<button :class="$style.btn" :title="$t('desktop_lyric__opactiy_increase')" @click="handleOpactiyChange('increase', 10)" @contextmenu="handleOpactiyChange('increase', 2)">
<button :class="$style.btn" :title="$t('desktop_lyric__opacity_increase')" @click="handleOpactiyChange('increase', 10)" @contextmenu="handleOpactiyChange('increase', 2)">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" height="20px" viewBox="0 0 24 24" space="preserve">
<use xlink:href="#icon-opactiy-increase" />
</svg>
</button>
<button :class="$style.btn" :title="$t('desktop_lyric__opactiy_decrease')" @click="handleOpactiyChange('decrease', 10)" @contextmenu="handleOpactiyChange('decrease', 2)">
<button :class="$style.btn" :title="$t('desktop_lyric__opacity_decrease')" @click="handleOpactiyChange('decrease', 10)" @contextmenu="handleOpactiyChange('decrease', 2)">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" height="20px" viewBox="0 0 24 24" space="preserve">
<use xlink:href="#icon-opactiy-decrease" />
</svg>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/core/player/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const delayRetry = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, i
// if (cancelDelayRetry) cancelDelayRetry()
return new Promise<string | null>((resolve, reject) => {
const time = getRandom(2, 6)
setAllStatus(window.i18n.t('player__geting_url_delay_retry', { time }))
setAllStatus(window.i18n.t('player__getting_url_delay_retry', { time }))
const tiemout = setTimeout(() => {
getMusicPlayUrl(musicInfo, isRefresh, true).then((result) => {
cancelDelayRetry = null
Expand All @@ -87,7 +87,7 @@ const delayRetry = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, i
}
const getMusicPlayUrl = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, isRefresh = false, isRetryed = false): Promise<string | null> => {
// this.musicInfo.url = await getMusicPlayUrl(targetSong, type)
setAllStatus(window.i18n.t('player__geting_url'))
setAllStatus(window.i18n.t('player__getting_url'))
if (appSetting['player.autoSkipOnError']) addLoadTimeout()

// const type = getPlayType(appSetting['player.highQuality'], musicInfo)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/core/useApp/usePlayer/useMediaDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default () => {
if (!device && !devices.length && !isShowingTipAlert) {
isShowingTipAlert = true
void dialog({
message: window.i18n.t('media_device__emtpy_device_tip'),
message: window.i18n.t('media_device__empty_device_tip'),
confirmButtonText: window.i18n.t('ok'),
}).finally(() => {
isShowingTipAlert = false
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/store/download/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ const setStatus = (downloadInfo: LX.Download.ListItem, status: LX.Download.Downl
if (statusText == null) {
switch (status) {
case DOWNLOAD_STATUS.RUN:
statusText = window.i18n.t('download___status_runing')
statusText = window.i18n.t('download___status_running')
break
case DOWNLOAD_STATUS.WAITING:
statusText = window.i18n.t('download___status_wating')
statusText = window.i18n.t('download___status_waiting')
break
case DOWNLOAD_STATUS.PAUSE:
statusText = window.i18n.t('download___status_paused')
Expand All @@ -113,7 +113,7 @@ const setStatus = (downloadInfo: LX.Download.ListItem, status: LX.Download.Downl
statusText = window.i18n.t('download___status_error')
break
case DOWNLOAD_STATUS.COMPLETED:
statusText = window.i18n.t('download___status_complated')
statusText = window.i18n.t('download___status_completed')
break
default:
statusText = ''
Expand Down Expand Up @@ -261,7 +261,7 @@ const handleError = (downloadInfo: LX.Download.ListItem, message?: string) => {

const handleStartTask = async(downloadInfo: LX.Download.ListItem) => {
if (!downloadInfo.metadata.url) {
setStatusText(downloadInfo, window.i18n.t('download_status_url_geting'))
setStatusText(downloadInfo, window.i18n.t('download_status_url_getting'))
const url = await getUrl(downloadInfo)
if (!url) {
handleError(downloadInfo, window.i18n.t('download_status_error_url_failed'))
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/views/Download/useTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default () => {
id: 'all',
},
{
label: window.i18n.t('download__runing'),
label: window.i18n.t('download__running'),
id: 'runing',
},
{
Expand Down
Loading