Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
e0642b01
Commit
e0642b01
authored
Aug 28, 2020
by
vvb2060
Committed by
John Wu
Aug 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update zh-rCN translation
parent
6bd40066
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
76 additions
and
71 deletions
+76
-71
EnvFixDialog.kt
...n/java/com/topjohnwu/magisk/events/dialog/EnvFixDialog.kt
+2
-2
SuperuserRevokeDialog.kt
...m/topjohnwu/magisk/events/dialog/SuperuserRevokeDialog.kt
+2
-2
MainActivity.kt
app/src/main/java/com/topjohnwu/magisk/ui/MainActivity.kt
+2
-2
HomeViewModel.kt
...c/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt
+0
-1
CheckSafetyNetEvent.kt
.../com/topjohnwu/magisk/ui/safetynet/CheckSafetyNetEvent.kt
+1
-1
include_home_magisk.xml
app/src/main/res/layout/include_home_magisk.xml
+1
-1
strings.xml
app/src/main/res/values-zh-rCN/strings.xml
+65
-60
strings.xml
stub/src/main/res/values-zh-rCN/strings.xml
+3
-2
No files found.
app/src/main/java/com/topjohnwu/magisk/events/dialog/EnvFixDialog.kt
View file @
e0642b01
...
@@ -17,7 +17,7 @@ class EnvFixDialog : DialogEvent() {
...
@@ -17,7 +17,7 @@ class EnvFixDialog : DialogEvent() {
.
applyTitle
(
R
.
string
.
env_fix_title
)
.
applyTitle
(
R
.
string
.
env_fix_title
)
.
applyMessage
(
R
.
string
.
env_fix_msg
)
.
applyMessage
(
R
.
string
.
env_fix_msg
)
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
titleRes
=
R
.
string
.
yes
titleRes
=
android
.
R
.
string
.
ok
preventDismiss
=
true
preventDismiss
=
true
onClick
{
onClick
{
dialog
.
applyTitle
(
R
.
string
.
setup_title
)
dialog
.
applyTitle
(
R
.
string
.
setup_title
)
...
@@ -35,7 +35,7 @@ class EnvFixDialog : DialogEvent() {
...
@@ -35,7 +35,7 @@ class EnvFixDialog : DialogEvent() {
}
}
}
}
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
titleRes
=
android
.
R
.
string
.
no
titleRes
=
android
.
R
.
string
.
cancel
}
}
.
let
{
Unit
}
.
let
{
Unit
}
...
...
app/src/main/java/com/topjohnwu/magisk/events/dialog/SuperuserRevokeDialog.kt
View file @
e0642b01
...
@@ -13,11 +13,11 @@ class SuperuserRevokeDialog(
...
@@ -13,11 +13,11 @@ class SuperuserRevokeDialog(
dialog
.
applyTitle
(
R
.
string
.
su_revoke_title
)
dialog
.
applyTitle
(
R
.
string
.
su_revoke_title
)
.
applyMessage
(
R
.
string
.
su_revoke_msg
,
callbacks
.
appName
)
.
applyMessage
(
R
.
string
.
su_revoke_msg
,
callbacks
.
appName
)
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
titleRes
=
R
.
string
.
yes
titleRes
=
android
.
R
.
string
.
ok
onClick
{
callbacks
.
listenerOnSuccess
()
}
onClick
{
callbacks
.
listenerOnSuccess
()
}
}
}
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
titleRes
=
android
.
R
.
string
.
no
titleRes
=
android
.
R
.
string
.
cancel
}
}
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/ui/MainActivity.kt
View file @
e0642b01
...
@@ -203,9 +203,9 @@ open class MainActivity : BaseUIActivity<MainViewModel, ActivityMainMd2Binding>(
...
@@ -203,9 +203,9 @@ open class MainActivity : BaseUIActivity<MainViewModel, ActivityMainMd2Binding>(
.
applyTitle
(
R
.
string
.
add_shortcut_title
)
.
applyTitle
(
R
.
string
.
add_shortcut_title
)
.
applyMessage
(
R
.
string
.
add_shortcut_msg
)
.
applyMessage
(
R
.
string
.
add_shortcut_msg
)
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
titleRes
=
R
.
string
.
no
titleRes
=
android
.
R
.
string
.
cancel
}.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
}.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
titleRes
=
R
.
string
.
yes
titleRes
=
android
.
R
.
string
.
ok
onClick
{
onClick
{
Shortcuts
.
addHomeIcon
(
this
@MainActivity
)
Shortcuts
.
addHomeIcon
(
this
@MainActivity
)
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt
View file @
e0642b01
...
@@ -52,7 +52,6 @@ class HomeViewModel(
...
@@ -52,7 +52,6 @@ class HomeViewModel(
val
magiskInstalledVersion
get
()
=
val
magiskInstalledVersion
get
()
=
"${Info.env.magiskVersionString} (${Info.env.magiskVersionCode})"
"${Info.env.magiskVersionString} (${Info.env.magiskVersionCode})"
val
magiskMode
get
()
=
R
.
string
.
home_status_normal
.
res
()
@get
:
Bindable
@get
:
Bindable
var
managerRemoteVersion
=
R
.
string
.
loading
.
res
()
var
managerRemoteVersion
=
R
.
string
.
loading
.
res
()
...
...
app/src/main/java/com/topjohnwu/magisk/ui/safetynet/CheckSafetyNetEvent.kt
View file @
e0642b01
...
@@ -116,7 +116,7 @@ class CheckSafetyNetEvent(
...
@@ -116,7 +116,7 @@ class CheckSafetyNetEvent(
.
applyMessage
(
R
.
string
.
proprietary_notice
)
.
applyMessage
(
R
.
string
.
proprietary_notice
)
.
cancellable
(
false
)
.
cancellable
(
false
)
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
POSITIVE
)
{
titleRes
=
R
.
string
.
yes
titleRes
=
android
.
R
.
string
.
ok
onClick
{
downloadInternal
()
}
onClick
{
downloadInternal
()
}
}
}
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
.
applyButton
(
MagiskDialog
.
ButtonType
.
NEGATIVE
)
{
...
...
app/src/main/res/layout/include_home_magisk.xml
View file @
e0642b01
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
<TextView
<TextView
style=
"@style/W.Home.ItemContent.Right"
style=
"@style/W.Home.ItemContent.Right"
android:text=
"@{Info.env.isActive ?
viewModel.magiskMode
: @string/not_available}"
android:text=
"@{Info.env.isActive ?
@string/home_status_normal
: @string/not_available}"
tools:text=
"Normal"
/>
tools:text=
"Normal"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/values-zh-rCN/strings.xml
View file @
e0642b01
This diff is collapsed.
Click to expand it.
stub/src/main/res/values-zh-rCN/strings.xml
View file @
e0642b01
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<string
name=
"upgrade_msg"
>
需要
升级到完整版 Magisk Manager 来完成安装。立即下载并安装
?
</string>
<string
name=
"upgrade_msg"
>
需要
下载完整版 Magisk Manager 才能正常运行。开始下载
?
</string>
<string
name=
"no_internet_msg"
>
请连接
到互联网!升级到完整版 Magisk Manager 需要互联网
连接。
</string>
<string
name=
"no_internet_msg"
>
请连接
网络,下载需要网络
连接。
</string>
<string
name=
"dling"
>
正在下载
</string>
<string
name=
"dling"
>
正在下载
</string>
<string
name=
"relaunch_app"
>
请重新打开本应用
</string>
</resources>
</resources>
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