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

feat: UNM 设置页面 l10n #1578

Merged
merged 3 commits into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 25 additions & 0 deletions src/locale/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,31 @@ export default {
exit: 'Exit',
minimizeToTray: 'Minimize to tray',
},
unm: {
enable: 'Enable',
audioSource: {
title: 'Audio Source',
},
enableFlac: {
title: 'Enable FLAC',
desc: 'Need to clear the cache to take effect after enable',
},
searchMode: {
title: 'Audio Search Mode',
fast: 'Speed Priority',
order: 'Order Priority',
},
cookie: {
desc1: 'Setting description see here',
desc2: 'not apply setting if value is empty',
},
ytdl: 'Youtube-dl execute file',
proxy: {
title: 'For UNM Proxy',
desc1: '请求如 YouTube 音源服务时要使用的代理服务器',
desc2: '留空则不进行相关设置',
},
},
},
contextMenu: {
play: 'Play',
Expand Down
25 changes: 25 additions & 0 deletions src/locale/lang/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,31 @@ export default {
exit: 'Exit',
minimizeToTray: 'Küçült',
},
unm: {
enable: 'Enable',
audioSource: {
title: 'Audio Source',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
},
enableFlac: {
title: 'Enable FLAC',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc: 'Need to clear the cache to take effect after enable',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
},
searchMode: {
title: 'Audio Search Mode',
fast: 'Speed Priority',
order: 'Order Priority',
},
cookie: {
desc1: 'Setting description see here',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc2: 'not apply setting if value is empty',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
},
ytdl: 'Youtube-dl execute file',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
proxy: {
title: 'For UNM Proxy',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc1: '请求如 YouTube 音源服务时要使用的代理服务器',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc2: '留空则不进行相关设置',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
},
},
},
contextMenu: {
play: 'Oynat',
Expand Down
25 changes: 25 additions & 0 deletions src/locale/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,31 @@ export default {
exit: '退出',
minimizeToTray: '最小化到托盘',
},
unm: {
enable: '启用',
audioSource: {
title: '备选音源',
},
enableFlac: {
title: '启用 FLAC',
desc: '启用后需要清除歌曲缓存才能生效',
},
searchMode: {
title: '音源搜索模式',
fast: '速度优先',
order: '顺序优先',
},
cookie: {
desc1: '设置说明请参见此处',
desc2: '留空则不进行相关设置',
},
ytdl: 'YtDl 引擎要使用的 youtube-dl 可执行文件',
proxy: {
title: '用于 UNM 的代理服务器',
desc1: '请求如 YouTube 音源服务时要使用的代理服务器',
desc2: '留空则不进行相关设置',
},
},
},
contextMenu: {
play: '播放',
Expand Down
25 changes: 25 additions & 0 deletions src/locale/lang/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,31 @@ export default {
exit: '退出',
minimizeToTray: '最小化到工作列角落',
},
unm: {
enable: '啓用',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
audioSource: {
title: '備選音源',
},
enableFlac: {
title: '啓用 FLAC',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc: '啓用后需要清除歌曲快取才能生效',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
},
searchMode: {
title: '音源搜索模式',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
fast: '速度優先',
order: '順序優先',
},
cookie: {
desc1: '設定説明請參見此處',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc2: '留空則不進行相關設定',
},
ytdl: 'YtDl 引擎要使用的 youtube-dl 執行檔',
proxy: {
title: '用於 UNM 的 Proxy 伺服器',
desc1: '请求如 YouTube 音源服務時要使用的 Proxy 伺服器',
memorydream marked this conversation as resolved.
Show resolved Hide resolved
desc2: '留空則不進行相關設定',
},
},
},
contextMenu: {
play: '播放',
Expand Down
53 changes: 31 additions & 22 deletions src/views/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@
</div>

<section v-if="isElectron" class="unm-configuration">
<h3>UnblockNeteaseMusic 设置</h3>
<h3>UnblockNeteaseMusic</h3>
pan93412 marked this conversation as resolved.
Show resolved Hide resolved
<div class="item">
<div class="left">
<div class="title"
>激活
>{{ $t('settings.unm.enable') }}
<a
href="https://github.com/UnblockNeteaseMusic/server"
target="blank"
Expand All @@ -250,7 +250,9 @@

<div class="item">
<div class="left">
<div class="title"> 备选音源 </div>
<div class="title">
{{ $t('settings.unm.audioSource.title') }}
</div>
<div class="description">
音源的具体代号
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這裡開始似乎沒有 l10n。下面有個「」請改成「ex.」。


Eng [description]: The ID of the audio sources to use.
Eng [description > link]: Click this to get the list of available sources.
Eng [description > br!]:

Seperate multiple sources with the comma (<code>,</code>). Leave empty to pick up the default value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处没有l10n,因为此处的描述穿插了多个html标签,不是很好处理

<a
Expand All @@ -274,8 +276,10 @@

<div class="item">
<div class="left">
<div class="title"> 激活无损音质 (FLAC) </div>
<div class="description"> 设置后需要清掉快取才能生效。 </div>
<div class="title"> {{ $t('settings.unm.enableFlac.title') }} </div>
<div class="description">
{{ $t('settings.unm.enableFlac.desc') }}
</div>
</div>
<div class="right">
<div class="toggle">
Expand All @@ -291,26 +295,30 @@

<div class="item">
<div class="left">
<div class="title"> 音源搜索模式 </div>
<div class="title"> {{ $t('settings.unm.searchMode.title') }} </div>
</div>
<div class="right">
<select v-model="unmSearchMode">
<option value="fast-first"> 速度优先,不论顺序 </option>
<option value="order-first"> 顺序优先,不论速度 </option>
<option value="fast-first">
{{ $t('settings.unm.searchMode.fast') }}
</option>
<option value="order-first">
{{ $t('settings.unm.searchMode.order') }}
</option>
</select>
</div>
</div>

<div class="item">
<div class="left">
<div class="title"> Joox 引擎的 Cookie </div>
<div class="title"> Joox Cookie </div>
memorydream marked this conversation as resolved.
Show resolved Hide resolved
<div class="description">
<a
href="https://github.com/UnblockNeteaseMusic/server-rust/tree/main/engines#joox-cookie-設定說明"
target="_blank"
>设置说明请参见此处。</a
>
留空则不进行相关设置。
>{{ $t('settings.unm.cookie.desc1') }},
</a>
{{ $t('settings.unm.cookie.desc2') }}
</div>
</div>
<div class="right">
Expand All @@ -324,14 +332,14 @@

<div class="item">
<div class="left">
<div class="title"> QQ 引擎的 Cookie </div>
<div class="title"> QQ Cookie </div>
memorydream marked this conversation as resolved.
Show resolved Hide resolved
<div class="description">
<a
href="https://github.com/UnblockNeteaseMusic/server-rust/tree/main/engines#qq-cookie-設定說明"
target="_blank"
>设置说明请参见此处。</a
>
留空则不进行相关设置。
>{{ $t('settings.unm.cookie.desc1') }},
</a>
{{ $t('settings.unm.cookie.desc2') }}
</div>
</div>
<div class="right">
Expand All @@ -345,13 +353,14 @@

<div class="item">
<div class="left">
<div class="title"> YtDl 引擎要使用的 youtube-dl 运行档 </div>
<div class="title"> {{ $t('settings.unm.ytdl') }} </div>
<div class="description">
<a
href="https://github.com/UnblockNeteaseMusic/server-rust/tree/main/engines#ytdlexe-設定說明"
target="_blank"
>设置说明请参见此处。</a
>留空则不进行相关设置。
>{{ $t('settings.unm.cookie.desc1') }},
</a>
{{ $t('settings.unm.cookie.desc2') }}
</div>
</div>
<div class="right">
Expand All @@ -365,10 +374,10 @@

<div class="item">
<div class="left">
<div class="title"> 用于 UNM 的 Proxy 服务器 </div>
<div class="title"> {{ $t('settings.unm.proxy.title') }} </div>
<div class="description">
请求如 YouTube 音源服务时要使用的 Proxy 服务器。<br />
留空则不进行相关设置。
{{ $t('settings.unm.proxy.desc1') }}<br />
{{ $t('settings.unm.proxy.desc2') }}
</div>
</div>
<div class="right">
memorydream marked this conversation as resolved.
Show resolved Hide resolved
Expand Down