Skip to content

Commit

Permalink
modified: translation
Browse files Browse the repository at this point in the history
  • Loading branch information
teaSummer committed Jun 26, 2024
1 parent 7ed342e commit 9bf8f79
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ <h2 class="page-title" al="app"></h2>
<div class="launcher-list device-diff"></div>
<div class="launcher-title full-name"></div>
<div class="launcher-goto">
<a class="button data-url-launcher" title="跳转至GitHub仓库或官方网站" target="_blank"
style="display: none;">跳转启动器网站</a>
<a class="button data-url-launcher" target="_blank" style="display: none;"
al-aplto="title: gotoLauncherWebsite.note"><text al="gotoLauncherWebsite"></text></a>
</div>
<div class="launcher-download by-inline">
<div>
Expand All @@ -128,7 +128,7 @@ <h2 class="page-title" al="website"></h2>
<form class="searchable-form">
<label>
<mdui-text-field class="searchable-input" type="text" data-provide="typeahead"
placeholder=" ...." variant="outlined" value="">
variant="outlined" value="" al-aplto="placeholder: searchFrom">
<mdui-button-icon slot="end-icon" icon="search"
class="searchable-button inline-block" type="submit"
disabled></mdui-button-icon>
Expand Down
7 changes: 5 additions & 2 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data:
Linux.tip: Linux - Include Linux releases
unsupported: Unsupported
unknown: Unknown
unselected: '[Press to select]'
unselected: Press to select
app: Apps
launcher: Launchers
launcherOnlyJavaEdition: '{launcher}(<b>{JavaEdition}</b>)'
Expand All @@ -31,8 +31,11 @@ data:
utilityWebsite: Useful Websites
forum: Forums
config: Options
goto: Go!
goto: Just Go!
download: Download
searchFrom: ' Search from ${linkSearchFrom} ....'
gotoLauncherWebsite: To launcher website
gotoLauncherWebsite.note: To GitHub Repo or official website
unfold: More...
fold: Less
GitHubProxy: |-
Expand Down
5 changes: 4 additions & 1 deletion locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data:
Linux.tip: Linux - 含Linux发行版
unsupported: 不支持
unknown: 未知
unselected: 待选择
unselected: 待选择
app: 软件
launcher: 启动器
launcherOnlyJavaEdition: '{launcher}(<b>{JavaEdition}</b>)'
Expand All @@ -33,6 +33,9 @@ data:
config: 配置
goto: 跳转
download: 下载
searchFrom: ' 从 ${linkSearchFrom} 中搜索 ....'
gotoLauncherWebsite: 跳转启动器网站
gotoLauncherWebsite.note: 跳转至GitHub仓库或官方网站
unfold: 展开...
fold: 收起
GitHubProxy: |-
Expand Down
7 changes: 3 additions & 4 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const deviceChanged = function() {
$(e).hide();
try {
const select = $('.' + $('.device-list').val());
select.val('待选择');
select.val('*待选择 Press to select');
select.show();
} catch (err) {
$('.app-container').hide();
Expand Down Expand Up @@ -152,9 +152,8 @@ const searchableChanged = function(event = {target: $('.searchable-list')}) {
const checked = checkedOption(event.target);
searchKeyword = checked.attr('data-search');
const abbr = checked.attr('data-abbr');
searchableAbbr = abbr;
window.linkSearchFrom = searchableAbbr = abbr;
const note = checked.attr('data-note');
$('.searchable-input').attr('placeholder', ` 从 ${abbr} 中搜索 ....`);
$('.searchable-label').html(`<a class="searchable-goto by-inline" href="${checked.attr('data-url')}" title="${note}" target="_blank"><p al="goto"></p> <svg fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path><path d="M15 3h6v6"></path><path d="M10 14L21 3"></path></svg></a>`);
localStorage.setItem('searchable-checked', event.target.value);
countSearchable += 1;
Expand Down Expand Up @@ -362,7 +361,7 @@ $(document).ready(function() {
});
// 启动器
$('mdui-select.launcher-list').each(function(i, e) {
$(e).val('待选择');
$(e).val('*待选择 Press to select');
$(e).children().click(function() {
const value = $(this).attr('label');
$('mdui-select.launcher-list').val(value);
Expand Down

0 comments on commit 9bf8f79

Please sign in to comment.