From b2b0af9e83593fe9a91916f63af0b28aa0738dea Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Thu, 19 Jan 2023 16:52:13 -0800 Subject: [PATCH] add zh-Hans localizable file in OmnivoreKit --- apple/Omnivore.xcodeproj/project.pbxproj | 3 ++ .../Resources/en.lproj/Localizable.strings | 28 ++++++++++ .../zh-Hans.lproj/Localizable.strings | 44 ++++++++++++++++ .../zh-Hans.lproj/LaunchScreen.strings | 52 ------------------- 4 files changed, 75 insertions(+), 52 deletions(-) create mode 100644 apple/OmnivoreKit/Sources/Views/Resources/zh-Hans.lproj/Localizable.strings diff --git a/apple/Omnivore.xcodeproj/project.pbxproj b/apple/Omnivore.xcodeproj/project.pbxproj index 0722253ee..8e89bd618 100644 --- a/apple/Omnivore.xcodeproj/project.pbxproj +++ b/apple/Omnivore.xcodeproj/project.pbxproj @@ -195,6 +195,7 @@ 046C5CD426A3F89A00AC5349 /* icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = icon.icns; sourceTree = ""; }; 046C5CDB26A3F89A00AC5349 /* ShareExtensionMac.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = ShareExtensionMac.plist; sourceTree = ""; }; 046C5CDC26A3F89A00AC5349 /* ShareExtensionMac.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ShareExtensionMac.entitlements; sourceTree = ""; }; + 047AA41F297A17FB00F0BEBF /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = ""; }; 047AD6F52724CF8A004FD5CF /* SafariExtension (iOS).entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "SafariExtension (iOS).entitlements"; sourceTree = ""; }; 047AD6F62724E513004FD5CF /* SafariExtension (iOS)Release.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "SafariExtension (iOS)Release.entitlements"; sourceTree = ""; }; 0480E70B26D8A07A006CAE2F /* Omnivore-Mac.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = "Omnivore-Mac.xctestplan"; sourceTree = ""; }; @@ -834,6 +835,7 @@ knownRegions = ( Base, en, + "zh-Hans", ); mainGroup = 2EE5B57B588CF4ADBA39A106; packageReferences = ( @@ -1192,6 +1194,7 @@ children = ( 082449FB9F5F3730EE0D8D3F /* Base */, A25B2B310A2800932EECD5FD /* en */, + 047AA41F297A17FB00F0BEBF /* zh-Hans */, ); name = LaunchScreen.storyboard; sourceTree = ""; diff --git a/apple/OmnivoreKit/Sources/Views/Resources/en.lproj/Localizable.strings b/apple/OmnivoreKit/Sources/Views/Resources/en.lproj/Localizable.strings index 3c8569321..d4f9d0996 100644 --- a/apple/OmnivoreKit/Sources/Views/Resources/en.lproj/Localizable.strings +++ b/apple/OmnivoreKit/Sources/Views/Resources/en.lproj/Localizable.strings @@ -14,3 +14,31 @@ "saveArticleSavedState" = "Saved to Omnivore"; "saveArticleProcessingState" = "Saved to Omnivore"; "dismissButton" = "Dismiss"; + +"labels.generic" = "Labels"; +"emails.generic" = "Emails"; +"subscriptions.generic" = "Subscriptions"; +"textToSpeech.generic" = "Subscriptions"; +"privacy.policy.generic" = "Privacy Policy"; +"termsAndConditions.generic" = "Terms and Conditions"; +"feedback.generic" = "Feedback"; +"manageAccount.generic" = "Manage Account"; +"logout.generic" = "Logout"; +"done.generic" = "Done"; +"cancel.generic" = "Cancel"; +"inbox.generic" = "Inbox"; +"readLater.generic" = "Read Later"; +"newsletters.generic" = "Newsletters"; +"all.generic" = "All"; +"archived.generic" = "Archived"; +"highlighted.generic" = "Highlighted"; +"files.generic" = "Files"; +"newest.generic" = "Newest"; +"oldest.generic" = "Oldest"; +"recentlyRead.generic" = "Recently Read"; +"recentlyPublished.generic" = "Recently Published"; +"create.label.message" = "Create a new Label"; +"create.new.email.message" = "Create a new email address"; +"newsletters.description" = "Add PDFs to your library, or subscribe to newsletters using an Omnivore email address."; +"labels.purpose.description" = "Use labels to create curated collections of links."; +"no.current.subscriptions.message" = "You have no current Subscriptions."; diff --git a/apple/OmnivoreKit/Sources/Views/Resources/zh-Hans.lproj/Localizable.strings b/apple/OmnivoreKit/Sources/Views/Resources/zh-Hans.lproj/Localizable.strings new file mode 100644 index 000000000..cdcd4168c --- /dev/null +++ b/apple/OmnivoreKit/Sources/Views/Resources/zh-Hans.lproj/Localizable.strings @@ -0,0 +1,44 @@ +"signInScreenHeadline" = "Save and share the best of the web."; +"googleAuthButton" = "Continue with Google"; +"registrationViewSignInHeadline" = "Login"; +"registrationViewSignUpHeadline" = "Sign Up"; +"registrationViewHeadline" = "Welcome"; +"username.validation.error.invalidPattern" = "Username can only contain letters, numbers, and underscores in the middle."; +"username.validation.error.tooshort" = "Username should contain at least three characters."; +"username.validation.error.toolong" = "Username cannot be longer than fifteen characters."; +"error.network" = "We are having trouble connecting to the internet."; +"error.generic" = "Something went wrong, please try again."; +"extensionAppUnauthorized" = "Please login to Omnivore from the app before saving your first link."; +"loginError.invalidCreds" = "The login credentials provided are invalid."; +"saveArticleSavingState" = "Saving..."; +"saveArticleSavedState" = "Saved to Omnivore"; +"saveArticleProcessingState" = "Saved to Omnivore"; +"dismissButton" = "Dismiss"; + +"labels.generic" = "标签"; +"emails.generic" = "电子邮件"; +"subscriptions.generic" = "订阅"; +"textToSpeech.generic" = "文本转语音"; +"privacy.policy.generic" = "隐私策略"; +"termsAndConditions.generic" = "条款与条件"; +"feedback.generic" = "反馈"; +"manageAccount.generic" = "管理帐户"; +"logout.generic" = "退出登陆"; +"done.generic" = "完成"; +"cancel.generic" = "取消"; +"inbox.generic" = "收集箱"; +"readLater.generic" = "稍后阅读"; +"newsletters.generic" = "新闻稿件"; +"all.generic" = "全部"; +"archived.generic" = "存档"; +"highlighted.generic" = "高亮"; +"files.generic" = "文件"; +"newest.generic" = "最新"; +"oldest.generic" = "最早"; +"recentlyRead.generic" = "最近阅读"; +"recentlyPublished.generic" = "最近发布"; +"create.label.message" = "创建新标签"; +"create.new.email.message" = "创建新的电子邮件地址"; +"newsletters.description" = "将 PDF 添加到您的资料库,或使用 Omnivore 电子邮件地址订阅新闻稿件。"; +"labels.purpose.description" = "使用标签创建精选的链接集合。"; +"no.current.subscriptions.message" = "您当前没有任何订阅。"; diff --git a/apple/Resources/zh-Hans.lproj/LaunchScreen.strings b/apple/Resources/zh-Hans.lproj/LaunchScreen.strings index 0ca6e5830..8b1378917 100644 --- a/apple/Resources/zh-Hans.lproj/LaunchScreen.strings +++ b/apple/Resources/zh-Hans.lproj/LaunchScreen.strings @@ -1,53 +1 @@ -"Labels" = "标签" -"Emails" = "电子邮件" - -"Subscriptions" = "订阅" - -"Text to Speech" = "文本转语音" - -"Privacy Policy" = "隐私策略" - -"Terms and Conditions" = "条款与条件" - -"Feedback" = "反馈" - -"Manage Account" = "管理帐户" - -"Logout" = "退出登陆" - -"Done" = "完成" - -"Cancel" = "取消" - -"Inbox" = "收集箱" - -"Read Later" = "稍后阅读" - -"Newsletters" = "新闻稿件" - -"All" = "全部" - -"Archived" = "存档" - -"Highlighted" = "高亮" - -"Files" = "文件" - -"Newest" = "最新" - -"Oldest" = "最早" - -"Recently Read" = "最近阅读" - -"Recently Published" = "最近发布" - -"Create a new Label" = "创建新标签" - -"Create a new email address" = "创建新的电子邮件地址" - -"Add PDFs to your library, or subscribe to newsletters using an Omnivore email address." = "将 PDF 添加到您的资料库,或使用 Omnivore 电子邮件地址订阅新闻稿件。" - -"Use labels to create curated collections of links." = "使用标签创建精选的链接集合。" - -"You have no current Subscriptions." = "您当前没有任何订阅。"