Skip to content

Commit

Permalink
初步实现Widget与完善英语翻译 (#421)
Browse files Browse the repository at this point in the history
* 初步实现Widget与完善英语翻译

这个提交是作为#409的延续提交的,处理了#409提交时所提及的问题,并且继续完善了英语翻译

* 删除模版

* 删除.DS_Store

* 删除空Swift文件

* 添加Package.resolved

* 删除MeowWidgetLiveActivity()

---------

Co-authored-by: Mark Chan <[email protected]>
  • Loading branch information
FengzihangCode and Mark Chan authored Oct 19, 2024
1 parent 622024e commit 5da339e
Show file tree
Hide file tree
Showing 15 changed files with 727 additions and 23 deletions.
217 changes: 216 additions & 1 deletion DarockBili.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"originHash" : "8c2c877bde34ef404029556772999ba0d07e63e1ddebb393eb9aacd889b58866",
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire",
"state" : {
"revision" : "f455c2975872ccd2d9c81594c658af65716e9b9a",
"version" : "5.9.1"
"revision" : "ea6a94b7dddffd0ca4d0f29252d95310b84dec84",
"version" : "5.10.0"
}
},
{
Expand Down Expand Up @@ -42,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Serene-Garden/Cepheus",
"state" : {
"revision" : "9ba67002a9ac27ba93fc91377798fc2d2e113e69",
"version" : "2.4.1"
"revision" : "8508ddae95de0300c9d45ebdc21078171779adcd",
"version" : "2.5.1"
}
},
{
Expand All @@ -52,7 +51,7 @@
"location" : "https://github.com/Darock-Studio/DarockKit",
"state" : {
"branch" : "main",
"revision" : "c36f40dc6174d729836a9fe1cb45bd18573589e5"
"revision" : "0c80f45f9b1e65903d11951f0172d1c0e4b5f270"
}
},
{
Expand All @@ -69,7 +68,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/EFPrefix/EFQRCode",
"state" : {
"revision" : "2991c2f318ad9529d93b2a73a382a3f9c72c64ce",
"revision" : "3a6c5012f1a0df404a92e55bb01b4b685ff5a2d1",
"version" : "6.2.2"
}
},
Expand All @@ -96,8 +95,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/gonzalezreal/NetworkImage",
"state" : {
"revision" : "7aff8d1b31148d32c5933d75557d42f6323ee3d1",
"version" : "6.0.0"
"revision" : "2849f5323265386e200484b0d0f896e73c3411b9",
"version" : "6.0.1"
}
},
{
Expand Down Expand Up @@ -163,22 +162,31 @@
"version" : "2.3.0"
}
},
{
"identity" : "swift-cmark",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-cmark",
"state" : {
"revision" : "3ccff77b2dc5b96b77db3da0d68d28068593fa53",
"version" : "0.5.0"
}
},
{
"identity" : "swift-markdown-ui",
"kind" : "remoteSourceControl",
"location" : "https://github.com/gonzalezreal/swift-markdown-ui",
"state" : {
"revision" : "55441810c0f678c78ed7e2ebd46dde89228e02fc",
"version" : "2.4.0"
"revision" : "5f613358148239d0292c0cef674a3c2314737f9e",
"version" : "2.4.1"
}
},
{
"identity" : "swift_qrcodejs",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ApolloZhu/swift_qrcodejs.git",
"location" : "https://github.com/EFPrefix/swift_qrcodejs.git",
"state" : {
"revision" : "374dc7f7b9e76c6aeb393f6a84590c6d387e1ecb",
"version" : "2.2.2"
"revision" : "817ba220a2eba840bae888e7eeb11207bec05f8c",
"version" : "2.3.0"
}
},
{
Expand Down Expand Up @@ -213,10 +221,10 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/ZipArchive/ZipArchive",
"state" : {
"revision" : "79d4dc9729096c6ad83dd3cee2b9f354d1b4ab7b",
"version" : "2.5.5"
"revision" : "df35718ea19a94e015b91dc4881dee028ce4cdba",
"version" : "2.6.0"
}
}
],
"version" : 3
"version" : 2
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1600"
version = "1.7">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand Down
46 changes: 42 additions & 4 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -9301,7 +9301,14 @@
}
},
"允许后台播放" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Allow Background Sound"
}
}
}
},
"允许收集使用信息" : {
"extractionState" : "stale",
Expand Down Expand Up @@ -10228,6 +10235,16 @@
}
}
},
"手记建议" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Suggestions for Journal"
}
}
}
},
"扩展的触感反馈" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -10341,7 +10358,14 @@
}
},
"搜索 - %@" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Search - %@"
}
}
}
},
"播放" : {
"localizations" : {
Expand Down Expand Up @@ -10775,7 +10799,14 @@
}
},
"版本 %@ 现已可用" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Version %@ is now available"
}
}
}
},
"状态" : {
"localizations" : {
Expand Down Expand Up @@ -10979,7 +11010,14 @@
}
},
"若要在后台播放,你需要在播放前连接蓝牙音频设备。" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "To play in the background, you need to connect a Bluetooth audio device before playing videos."
}
}
}
},
"虽然我们无法一一以文字回复提交的每一份反馈,但我们会查看每一份反馈并监控提交的反馈数量,以便更好地了解问题的范围。" : {
"localizations" : {
Expand Down
8 changes: 8 additions & 0 deletions MeowBili/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<string>drkbili</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>meowbili</string>
</array>
</dict>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
Expand Down
6 changes: 6 additions & 0 deletions MeowWidget/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
14 changes: 14 additions & 0 deletions MeowWidget/Assets.xcassets/MeowBili.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "ico1.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "255",
"green" : "255",
"red" : "255"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "26",
"green" : "24",
"red" : "23"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
38 changes: 38 additions & 0 deletions MeowWidget/Assets.xcassets/WidgetTitleColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "153",
"green" : "103",
"red" : "255"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "126",
"green" : "79",
"red" : "212"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
11 changes: 11 additions & 0 deletions MeowWidget/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.widgetkit-extension</string>
</dict>
</dict>
</plist>
Loading

0 comments on commit 5da339e

Please sign in to comment.