Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
4c7f61d6
Commit
4c7f61d6
authored
Dec 15, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update i18n
parent
4d172e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
update.html
update.html
+34
-3
No files found.
update.html
View file @
4c7f61d6
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
<!--<meta name="author" content="">-->
<!--<meta name="author" content="">-->
<!--<link rel="icon" href="../../favicon.ico">-->
<!--<link rel="icon" href="../../favicon.ico">-->
<title>
更新消息
</title>
<title
lang=
"zh-CN"
>
更新消息
</title>
<title
lang=
"en-US"
>
Update
</title>
<!-- Bootstrap core CSS -->
<!-- Bootstrap core CSS -->
<link
href=
"node_modules/bootstrap/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"node_modules/bootstrap/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
<body>
<body>
<div
class=
"container"
>
<div
class=
"container"
lang=
"zh-CN"
>
<h1>
MyCard 更新下载完毕
</h1>
<h1>
MyCard 更新下载完毕
</h1>
<p>
点击【现在安装更新】,会立即关闭 MyCard 平台及正在运行中的游戏,并安装更新。
</p>
<p>
点击【现在安装更新】,会立即关闭 MyCard 平台及正在运行中的游戏,并安装更新。
</p>
...
@@ -42,8 +43,38 @@
...
@@ -42,8 +43,38 @@
</p>
</p>
</div>
<!-- /.container -->
</div>
<!-- /.container -->
<div
class=
"container"
lang=
"en-US"
>
<h1>
Update downloaded
</h1>
<p>
If you install now, MyCard will go offline and update immediately, your gaming progress may be affected.
</p>
<p>
If you install later, then the update will be automatically installed when you start-up MyCard next time.
</p>
<p>
You may also click the Update button to install the update anytime.
</p>
<!--<p>If auto-update failed, please refer to-->
<!--<a href="https://mycard.moe" target="_blank">https://mycard.moe</a> to download latest version</p>-->
<p
id=
"actions"
>
<button
id=
"close"
class=
"btn btn-secondary"
>
Install Later _(:3 」∠)_
</button>
<button
id=
"update"
class=
"btn btn-primary"
>
(。・`ω´・) Install Now
</button>
</p>
</div>
<!-- /.container -->
<script>
<script>
const
{
ipcRenderer
}
=
require
(
'
electron
'
);
const
{
ipcRenderer
,
remote
}
=
require
(
'
electron
'
);
let
locale
=
localStorage
.
getItem
(
'
locale
'
)
||
remote
.
app
.
getLocale
();
if
(
locale
.
startsWith
(
'
zh-
'
))
{
locale
=
'
zh-CN
'
}
else
{
locale
=
'
en-US
'
}
for
(
let
element
of
document
.
querySelectorAll
(
'
[lang]
'
))
{
if
(
element
.
getAttribute
(
'
lang
'
)
!=
locale
)
{
element
.
parentNode
.
removeChild
(
element
);
}
}
document
.
getElementById
(
'
update
'
).
addEventListener
(
'
click
'
,
()
=>
{
document
.
getElementById
(
'
update
'
).
addEventListener
(
'
click
'
,
()
=>
{
ipcRenderer
.
send
(
'
update
'
);
ipcRenderer
.
send
(
'
update
'
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment