summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-25 19:59:31 -0800
committerFuwn <[email protected]>2025-02-25 19:59:31 -0800
commitb390d981d49cebf632c3db964914949c5aeac658 (patch)
treeba4c68f63c49ec37ab08d496de65554e6059e043
parentfeat: Development commit (diff)
downloadsora-testing-b390d981d49cebf632c3db964914949c5aeac658.tar.xz
sora-testing-b390d981d49cebf632c3db964914949c5aeac658.zip
feat: Development commit
-rw-r--r--Localizable.xcstrings102
-rw-r--r--Sora.xcodeproj/project.pbxproj7
-rw-r--r--Sora/Views/Bookmarks/BookmarksView.swift2
-rw-r--r--Sora/Views/Post/Details/PostDetailsView.swift4
-rw-r--r--Sora/Views/Settings/Section/SettingsCreditsView.swift (renamed from Sora/Views/Settings/Section/SettingsAttributionsView.swift)2
-rw-r--r--Sora/Views/Settings/SettingsView.swift4
6 files changed, 115 insertions, 6 deletions
diff --git a/Localizable.xcstrings b/Localizable.xcstrings
new file mode 100644
index 0000000..ee06a8c
--- /dev/null
+++ b/Localizable.xcstrings
@@ -0,0 +1,102 @@
+{
+ "sourceLanguage" : "en",
+ "strings" : {
+ "Blur Content Ratings" : {
+
+ },
+ "Bookmark" : {
+
+ },
+ "Bookmarks" : {
+
+ },
+ "Clear Cached Tags (%@)" : {
+
+ },
+ "Content Filtering" : {
+
+ },
+ "Credits" : {
+
+ },
+ "Detail View Type" : {
+
+ },
+ "Details" : {
+
+ },
+ "Display Content Ratings" : {
+
+ },
+ "Display Tags" : {
+
+ },
+ "Enable \"Share Image\" Shortcut" : {
+
+ },
+ "Loading %@…" : {
+
+ },
+ "Loading Preview…" : {
+
+ },
+ "Manually Load Next Page" : {
+
+ },
+ "No Bookmarks" : {
+
+ },
+ "No bookmarks match your search" : {
+
+ },
+ "Open in Safari" : {
+
+ },
+ "Posts" : {
+
+ },
+ "Provider" : {
+
+ },
+ "Rabbit SVG created by Kim Sun Young" : {
+
+ },
+ "Reset to Defaults" : {
+
+ },
+ "Save Image" : {
+
+ },
+ "Search" : {
+
+ },
+ "Select Post" : {
+
+ },
+ "Settings" : {
+
+ },
+ "Share Image" : {
+
+ },
+ "Suggest Search Tags" : {
+
+ },
+ "Tags" : {
+
+ },
+ "Tap the bookmark button on a search page to add a bookmark." : {
+
+ },
+ "Thumbnail Columns: %lld" : {
+
+ },
+ "Thumbnail Type" : {
+
+ },
+ "Thumbnails" : {
+
+ }
+ },
+ "version" : "1.0"
+} \ No newline at end of file
diff --git a/Sora.xcodeproj/project.pbxproj b/Sora.xcodeproj/project.pbxproj
index 9f4a113..7c10187 100644
--- a/Sora.xcodeproj/project.pbxproj
+++ b/Sora.xcodeproj/project.pbxproj
@@ -8,11 +8,13 @@
/* Begin PBXBuildFile section */
4C334B072D6CC280002F5D8D /* NetworkImage in Frameworks */ = {isa = PBXBuildFile; productRef = 4C334B062D6CC280002F5D8D /* NetworkImage */; };
+ 4C67001D2D6EC75F00FFDC8D /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 4C67001C2D6EC75F00FFDC8D /* Localizable.xcstrings */; };
4CA3DE752D65B5990033035D /* WaterfallGrid in Frameworks */ = {isa = PBXBuildFile; productRef = 4CA3DE742D65B5990033035D /* WaterfallGrid */; };
4CBAE9322D6C8CAE00C02D46 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 4CBAE9312D6C8CAE00C02D46 /* Settings.bundle */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 4C67001C2D6EC75F00FFDC8D /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
4CBAE9312D6C8CAE00C02D46 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
4CD342762D6341D900565E6F /* Sora.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sora.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -54,6 +56,7 @@
4CD3426D2D6341D900565E6F = {
isa = PBXGroup;
children = (
+ 4C67001C2D6EC75F00FFDC8D /* Localizable.xcstrings */,
4CBAE9312D6C8CAE00C02D46 /* Settings.bundle */,
4CD342782D6341D900565E6F /* Sora */,
4CD342772D6341D900565E6F /* Products */,
@@ -116,6 +119,7 @@
knownRegions = (
en,
Base,
+ ja,
);
mainGroup = 4CD3426D2D6341D900565E6F;
minimizedProjectReferenceProxies = 1;
@@ -139,6 +143,7 @@
buildActionMask = 2147483647;
files = (
4CBAE9322D6C8CAE00C02D46 /* Settings.bundle in Resources */,
+ 4C67001D2D6EC75F00FFDC8D /* Localizable.xcstrings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -212,6 +217,7 @@
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
+ SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 6.0;
};
@@ -267,6 +273,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
};
name = Release;
diff --git a/Sora/Views/Bookmarks/BookmarksView.swift b/Sora/Views/Bookmarks/BookmarksView.swift
index b32b46b..5b33d03 100644
--- a/Sora/Views/Bookmarks/BookmarksView.swift
+++ b/Sora/Views/Bookmarks/BookmarksView.swift
@@ -24,7 +24,7 @@ struct BookmarksView: View {
ContentUnavailableView(
"No Bookmarks",
systemImage: "bookmark",
- description: Text("Add a bookmark by tapping the bookmark button on a search page.")
+ description: Text("Tap the bookmark button on a search page to add a bookmark.")
)
} else {
List {
diff --git a/Sora/Views/Post/Details/PostDetailsView.swift b/Sora/Views/Post/Details/PostDetailsView.swift
index d1099ea..79cbd62 100644
--- a/Sora/Views/Post/Details/PostDetailsView.swift
+++ b/Sora/Views/Post/Details/PostDetailsView.swift
@@ -55,10 +55,10 @@ struct PostDetailsView: View {
Group {
switch loadingStage {
case .loadingPreview:
- Text("Loading Preview …")
+ Text("Loading Preview…")
case .loadingFile:
- Text("Loading \(settings.detailViewType.rawValue) …")
+ Text("Loading \(settings.detailViewType.rawValue)…")
case .loaded:
EmptyView()
diff --git a/Sora/Views/Settings/Section/SettingsAttributionsView.swift b/Sora/Views/Settings/Section/SettingsCreditsView.swift
index 3c94c4e..741ce25 100644
--- a/Sora/Views/Settings/Section/SettingsAttributionsView.swift
+++ b/Sora/Views/Settings/Section/SettingsCreditsView.swift
@@ -1,6 +1,6 @@
import SwiftUI
-struct SettingsAttributionsView: View {
+struct SettingsCreditsView: View {
var body: some View {
Text("Rabbit SVG created by Kim Sun Young")
.fontWeight(.light)
diff --git a/Sora/Views/Settings/SettingsView.swift b/Sora/Views/Settings/SettingsView.swift
index a0eba01..2d09168 100644
--- a/Sora/Views/Settings/SettingsView.swift
+++ b/Sora/Views/Settings/SettingsView.swift
@@ -28,8 +28,8 @@ struct SettingsView: View {
}
}
- Section(header: Text("Attributions")) {
- SettingsAttributionsView()
+ Section(header: Text("Credits")) {
+ SettingsCreditsView()
}
}
#if os(macOS)