Skip to content

Commit

Permalink
i18n cleanup 3
Browse files Browse the repository at this point in the history
  • Loading branch information
3gf8jv4dv committed Jan 15, 2025
1 parent f9ffdbb commit ec5593f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 57 deletions.
32 changes: 15 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,31 @@

*移动版项目地址:https://github.com/lyswhut/lx-music-mobile*

软件变化请查看 [更新日志](https://github.com/lyswhut/lx-music-desktop/blob/master/CHANGELOG.md)
软件变化请查看[更新日志](https://github.com/lyswhut/lx-music-desktop/blob/master/CHANGELOG.md)

软件下载请查看 [GitHub Releases](https://github.com/lyswhut/lx-music-desktop/releases)

目前本项目的原始发布地址只有 [**GitHub Releases**](https://github.com/lyswhut/lx-music-desktop/releases),其他渠道均为第三方转载发布,与本项目无关!
使用常见问题请参阅[桌面版常见问题](https://lyswhut.github.io/lx-music-doc/desktop/faq)

为了提高使用门槛,本软件内的默认设置、UI 操作不以新手友好为目标,所以使用前建议先根据你的喜好浏览调整一遍软件设置,阅读一遍 [音乐播放列表机制](https://lyswhut.github.io/lx-music-doc/desktop/faq/playlist)[可用的鼠标、键盘快捷操作](https://lyswhut.github.io/lx-music-doc/desktop/faq/hotkey)
目前本项目的原始发布地址只有 [**GitHub**](https://github.com/lyswhut/lx-music-desktop/releases),其他渠道均为第三方转载发布,与本项目无关!

为了提高使用门槛,本软件内的默认设置、UI 操作不以新手友好为目标,所以使用前建议先根据你的喜好浏览调整一遍软件设置,阅读一遍[音乐播放列表机制](https://lyswhut.github.io/lx-music-doc/desktop/faq/playlist)[可用的鼠标、键盘快捷操作](https://lyswhut.github.io/lx-music-doc/desktop/faq/hotkey)

### Scheme URL 支持

从 v1.17.0 起支持 Scheme URL,可以使用此功能在浏览器等场景下调用 LX Music,我们开发了一个 [油猴脚本](https://github.com/lyswhut/lx-music-script#readme) 配套使用。
从 v1.17.0 起支持 Scheme URL,可以使用此功能在浏览器等场景下调用 LX Music,我们开发了一个[油猴脚本](https://github.com/lyswhut/lx-music-script#readme)配套使用。

脚本安装地址:[LX Music 辅助脚本](https://greasyfork.org/zh-CN/scripts/438148)

若你想自己调用 LX Music,可以参考 [Scheme URL 支持](https://lyswhut.github.io/lx-music-doc/desktop/scheme-url)
若你想自己调用 LX Music,可以参考文档「[Scheme URL 支持](https://lyswhut.github.io/lx-music-doc/desktop/scheme-url)」部分

### 数据同步服务

从 v2.2.0 起,我们发布了一个独立版的 [数据同步服务](https://github.com/lyswhut/lx-music-sync-server#readme)如果你有服务器,可以将其部署到服务器上作为私人多端同步服务使用,详情看该项目说明。
从 v2.2.0 起,我们发布了一个独立的[数据同步服务](https://github.com/lyswhut/lx-music-sync-server#readme)如果你有服务器,可以将其部署到服务器上作为私人多端同步服务使用,详情看该项目说明。

### 开放 API 支持

从 v2.7.0 起支持开放 API 服务启用该功能后,将会在本地启动一个 HTTP 服务,提供播放器相关的接口供第三方软件调用,详情看 [开放 API 文档](https://lyswhut.github.io/lx-music-doc/desktop/open-api)
从 v2.7.0 起支持开放 API 服务启用该功能后,将会在本地启动一个 HTTP 服务,提供播放器相关的接口供第三方软件调用,详情看文档「[开放 API 服务](https://lyswhut.github.io/lx-music-doc/desktop/open-api)」部分

### 数据存储目录

Expand All @@ -79,33 +81,29 @@
- macOS:`~/Library/Application Support/lx-music-desktop`
- Windows:`%APPDATA%/lx-music-desktop`

在 Windows 平台上,若程序目录中存在 `portable` 目录,则自动使用此目录作为数据存储目录(适用于 v1.17.0 及以上版本)。
在 Windows 平台上,若程序文件夹中存在 `portable` 文件夹,则自动使用此文件夹作为数据存储文件夹(适用于 v1.17.0 及以上版本)。

## 用户界面

<p><a href="https://github.com/lyswhut/lx-music-desktop"><img width="100%" src="https://github.com/lyswhut/lx-music-desktop/blob/master/doc/images/app.png" alt="lx-music desktop UI"></a></p>

## 常见问题

已迁移至:<https://lyswhut.github.io/lx-music-doc/desktop/faq>
<p><img width="100%" src="./doc/images/app.png" alt="lx-music desktop UI"></p>

## 贡献代码

本项目欢迎 PR,但为了 PR 能顺利合并,需要注意以下几点:

- 对于添加新功能的 PR,建议在提交 PR 前先创建 issue 进行说明,以确认该功能是否确实需要
- 对于修复 bug 的 PR,请提供修复前后的说明及重现方式
- 对于添加新功能的 PR,建议在提交 PR 前先创建 Issue 进行说明,以确认该功能是否确实需要
- 对于修复 bug 的 PR,请提供修复前后的说明及重现方式
- 对于其他类型的 PR,则适当附上说明。

贡献代码步骤:

1. 参照 [源码使用方法](https://lyswhut.github.io/lx-music-doc/desktop/use-source-code) 设置开发环境;
1. 参照[源码使用方法](https://lyswhut.github.io/lx-music-doc/desktop/use-source-code)设置开发环境;
2. 克隆本仓库代码并切换至 `dev` 分支进行开发;
3. 提交 PR 至 `dev` 分支。

## 源码使用方法

已迁移至<https://lyswhut.github.io/lx-music-doc/desktop/use-source-code>
请参阅<https://lyswhut.github.io/lx-music-doc/desktop/use-source-code>

## 项目协议

Expand Down
2 changes: 1 addition & 1 deletion src/lang/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
"setting__list_add_music_location_type": "添加歌曲到列表时的位置",
"setting__list_add_music_location_type_bottom": "底部",
"setting__list_add_music_location_type_top": "顶部",
"setting__list_click_action": "双击列表里的歌曲时自动切换到当前列表播放(仅对「歌单」「排行榜」有效)",
"setting__list_click_action": "双击列表里的歌曲时自动切换到当前列表播放(仅对「歌单」「排行榜」有效)",
"setting__list_scroll": "记住播放列表滚动条位置(仅对「我的列表」有效)",
"setting__list_source": "显示歌曲来源平台(仅对「我的列表」有效)",
"setting__network": "网络设置",
Expand Down
9 changes: 7 additions & 2 deletions src/renderer/components/layout/ChangeLogModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ material-modal(:show="isShowChangeLog" max-width="60%" @close="isShowChangeLog =
div(:class="$style.footer")
div(:class="$style.desc")
p 📢&nbsp;为了减少疑问,我们墙裂建议阅读版本更新日志来了解当前所用版本的变化!
p 📢&nbsp;若遇到问题可以去设置-关于查看常见问题
p(v-if="!info.isLatest") 🚀&nbsp;发现新版本(v{{ versionInfo.newVersion.version }}),建议 去设置-软件更新 更新新版本
p 📢&nbsp;若遇到问题可以阅读
strong.hover.underline(aria-label="点击打开" @click="openUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 桌面版常见问题
| 。
p(v-if="!info.isLatest") 🚀&nbsp;发现新版本 (v{{ versionInfo.newVersion.version }})!建议去「设置 → 软件更新」更新新版本。
</template>

<script>
import { compareVer } from '@common/utils'
import { openUrl, clipboardWriteText } from '@common/utils/electron'
import { versionInfo, isShowChangeLog } from '@renderer/store'
import { getLastStartInfo } from '@renderer/utils/ipc'
import { computed, ref } from '@common/utils/vueTools'
Expand Down Expand Up @@ -73,6 +76,8 @@ export default {
return info
})
return {
openUrl,
clipboardWriteText,
versionInfo,
info,
isShowChangeLog,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template lang="pug">
div.comment(ref="dom_container" :class="$style.comment")
div(:class="$style.commentHeader")
h3 {{ $t('comment__title', { name: title }) }}
h3 {{ $t('comment__title', { name: currentMusicInfo.name }) }}
div(:class="$style.commentHeaderBtns")
div(:class="$style.commentHeaderBtn" :aria-label="$t('comment__refresh')" @click="handleShowComment")
svg(version="1.1" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" style="transform: rotate(45deg);" viewBox="0 0 24 24" space="preserve")
Expand Down Expand Up @@ -37,7 +37,6 @@ div.comment(ref="dom_container" :class="$style.comment")
</template>

<script>
import { appSetting } from '@renderer/store/setting'
import { toOldMusicInfo } from '@renderer/utils'
import music from '@renderer/utils/musicSdk'
import CommentFloor from './CommentFloor.vue'
Expand All @@ -55,11 +54,6 @@ export default {
},
},
emits: ['close'],
setup() {
return {
appSetting,
}
},
data() {
return {
available: false,
Expand Down Expand Up @@ -119,13 +113,6 @@ export default {
},
}
},
computed: {
title() {
return this.currentMusicInfo.name
? this.appSetting['download.fileName'].replace('歌名', this.currentMusicInfo.name).replace('歌手', this.currentMusicInfo.singer)
: '^-^'
},
},
watch: {
show(n) {
if (n) this.handleShowComment()
Expand Down
29 changes: 11 additions & 18 deletions src/renderer/components/layout/UpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,14 @@ material-modal(:show="versionInfo.showModal" max-width="60%" @close="handleClose
div(:class="$style.current")
h3 当前版本:{{ versionInfo.version }}
div(:class="$style.desc")
p 更新信息获取失败,可能是无法访问Github导致的,请手动检查更新!
p 更新信息获取失败,可能是无法访问 GitHub 导致的,请手动检查更新!
p
| 检查方法:打开
base-btn(min aria-label="点击打开" @click="handleOpenUrl('https://github.com/lyswhut/lx-music-desktop/releases')") 软件发布页
| 或
base-btn(min aria-label="点击打开" @click="handleOpenUrl('https://www.lanzoui.com/b0bf2cfa/')") 网盘
| (密码:
strong.hover(aria-label="点击复制" @click="handleCopy('glqw')") glqw
| )查看它们的
| ,查看「Latest」发布的
strong 版本号
| 与当前版本({{ versionInfo.version }})对比是否一样,
p 若一样则不必理会该弹窗,直接关闭即可否则请手动下载新版本更新。
| 与当前版本({{ versionInfo.version }})对比是否一致。
p 若一致则不必理会该弹窗,直接关闭即可否则请手动下载新版本更新。
div(:class="$style.footer")
div(:class="$style.btns")
base-btn(v-if="versionInfo.status == 'error'" :class="$style.btn2" @click="handleCheckUpdate") 重新检查更新
Expand Down Expand Up @@ -76,22 +72,19 @@ material-modal(:show="versionInfo.showModal" max-width="60%" @close="handleClose

div(:class="$style.footer")
div(:class="$style.desc")
p 发现有新版本啦,你可以尝试使用自动更新或手动更新,
p 发现有新版本啦,你可以选择自动更新或手动更新。
p 手动更新可以去&nbsp;
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://github.com/lyswhut/lx-music-desktop/releases')") 软件发布页
| &nbsp;&nbsp;
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://www.lanzoui.com/b0bf2cfa/')") 网盘
| (密码:
strong.hover(aria-label="点击复制" @click="handleCopy('glqw')") glqw
| )&nbsp;下载
p 注:国内Windows/MAC用户推荐到网盘下载,若遇到问题可以看
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 常见问题
| 下载。
p 若遇到问题可以阅读
strong.hover.underline(aria-label="点击打开" @click="handleOpenUrl('https://lyswhut.github.io/lx-music-doc/desktop/faq')") 桌面版常见问题
| 。
p(v-if="progress") 当前下载进度:{{ progress }}
p(v-else) &nbsp;
div(:class="$style.btns")
base-btn(:class="$style.btn2" @click="handleIgnoreClick") {{ isIgnored ? '取消忽略' : '忽略更新该版本' }}
base-btn(v-if="versionInfo.status == 'downloading'" :class="$style.btn2" disabled) 下载更新中...
base-btn(v-else :class="$style.btn2" @click="handleDonwloadClick") 下载更新
base-btn(v-else :class="$style.btn2" @click="handleDownloadClick") 下载更新
</template>

<script>
Expand Down Expand Up @@ -181,7 +174,7 @@ export default {
// saveIgnoreVersion(this.versionInfo.newVersion?.version)
// this.handleClose()
},
handleDonwloadClick() {
handleDownloadClick() {
if (this.isIgnored) saveIgnoreVersion(this.ignoreVersion = null)
versionInfo.status = 'downloading'
downloadUpdate()
Expand Down
10 changes: 5 additions & 5 deletions src/renderer/views/Setting/components/SettingAbout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dd
strong 仔细、仔细、仔细
| 地阅读常见问题后,
.p.small
| 仍有问题可到 GitHub 提交&nbsp;
span.hover.underline(:aria-label="$t('setting__click_open')" @click="openUrl('https://github.com/lyswhut/lx-music-desktop/issues')") Issue
| 仍有问题可到&nbsp;GitHub&nbsp;
span.hover.underline(:aria-label="$t('setting__click_open')" @click="openUrl('https://github.com/lyswhut/lx-music-desktop/issues?q=is%3Aissue+')") 提交&nbsp;Issue
| 。
br
.p.small 由于软件开发的初衷仅是为了对新技术的学习与研究,因此软件直至停止维护都将会一直保持纯净。
Expand All @@ -26,12 +26,12 @@ dd
strong 只有&nbsp;GitHub
| ,其他渠道均为第三方转载发布,可信度请自行鉴别。
.p.small
strong 本项目「没有」微信公众号之类的所谓「官方账号」,谨防被骗!
strong 本项目没有微信公众号之类的所谓「官方账号」,谨防被骗!

.p.small
| 你已签署本软件的&nbsp;
| 你已签署本软件的
base-btn(min @click="handleShowPact") 许可协议
| ,协议的在线版本在&nbsp;
| ,协议的在线版本在
strong.hover.underline(:aria-label="$t('setting__click_open')" @click="openUrl('https://github.com/lyswhut/lx-music-desktop#%E9%A1%B9%E7%9B%AE%E5%8D%8F%E8%AE%AE')") 这里
| 。
br
Expand Down

0 comments on commit ec5593f

Please sign in to comment.