From b0376c07f592da1df83af6e37dbe6ffea2ad082c Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 1 May 2022 22:20:59 -0500 Subject: [PATCH] Fix some translations Fixes #975 --- src/NzbDrone.Core/Languages/Language.cs | 8 ++- .../Localization/Core/zh_Hans.json | 71 ------------------- src/NzbDrone.Core/Parser/IsoLanguages.cs | 10 ++- 3 files changed, 15 insertions(+), 74 deletions(-) delete mode 100644 src/NzbDrone.Core/Localization/Core/zh_Hans.json diff --git a/src/NzbDrone.Core/Languages/Language.cs b/src/NzbDrone.Core/Languages/Language.cs index 87de7e019..0265858e0 100644 --- a/src/NzbDrone.Core/Languages/Language.cs +++ b/src/NzbDrone.Core/Languages/Language.cs @@ -80,7 +80,7 @@ namespace NzbDrone.Core.Languages public static Language Dutch => new Language(7, "Dutch"); public static Language Japanese => new Language(8, "Japanese"); public static Language Icelandic => new Language(9, "Icelandic"); - public static Language Chinese => new Language(10, "Chinese"); + public static Language Chinese => new Language(10, "Chinese (Simplified)"); public static Language Russian => new Language(11, "Russian"); public static Language Polish => new Language(12, "Polish"); public static Language Vietnamese => new Language(13, "Vietnamese"); @@ -100,6 +100,12 @@ namespace NzbDrone.Core.Languages public static Language Romanian => new Language(27, "Romanian"); public static Language Thai => new Language(28, "Thai"); public static Language Bulgarian => new Language(29, "Bulgarian"); + public static Language PortugueseBR => new Language(30, "Portuguese (Brazil)"); + public static Language Arabic => new Language(31, "Arabic"); + public static Language Ukrainian => new Language(32, "Ukrainian"); + public static Language Persian => new Language(33, "Persian"); + public static Language Bengali => new Language(34, "Bengali"); + public static Language ChineseTW => new Language(35, "Chinese (Traditional)"); public static Language Any => new Language(-1, "Any"); public static Language Original => new Language(-2, "Original"); diff --git a/src/NzbDrone.Core/Localization/Core/zh_Hans.json b/src/NzbDrone.Core/Localization/Core/zh_Hans.json deleted file mode 100644 index 24e95b4dd..000000000 --- a/src/NzbDrone.Core/Localization/Core/zh_Hans.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "Added": "已添加", - "AddDownloadClient": "添加下载客户端", - "Add": "添加", - "About": "关于", - "Analytics": "分析", - "AddIndexer": "添加索引器", - "ApiKey": "API密钥", - "AddingTag": "添加标签", - "AddAppProfile": "‎添加应用‎‎同步‎‎配置文件‎", - "AddNewIndexer": "添加新的索引器", - "AddRemoveOnly": "仅读写", - "AddIndexerProxy": "添加索引器代理", - "Apply": "应用", - "AddDownloadClientToProwlarr": "添加一个支持 Prowlarr 在执行手动‎‎搜索‎‎时发送资源的下载客户端", - "AddedToDownloadClient": "‎已添加到‎‎客户端‎‎的版本‎", - "ApplyTagsHelpTexts1": "‎如何将标记‎‎应用于‎‎选定的‎‎索引器‎", - "AppProfileInUse": "‎正在使用中的应用配置文件‎", - "Apps": "‎应用程序‎", - "AppSettingsSummary": "‎用于‎‎配置 ‎‎Prowlarr‎‎ 如何与您的 PVR 程序交互的应用程序和‎‎设置‎", - "AreYouSureYouWantToResetYourAPIKey": "你‎是否确实要重置 ‎‎API‎‎ 密钥‎‎‎?", - "Auth": "‎认证‎", - "Age": "年龄", - "All": "全部", - "AllIndexersHiddenDueToFilter": "所有‎‎索引器‎‎都处于隐藏状态,‎由于应用了‎‎筛选器‎‎。‎", - "AnalyticsEnabledHelpText": "‎将匿名使用情况和错误‎‎信息‎‎发送到‎‎Prowlarr‎‎的服务器。这包括有关您的‎‎浏览器中的‎‎Prowlarr‎‎ ‎‎WebUI‎‎页面,错误‎‎报告‎‎以及‎‎操作系统‎‎和‎‎运行时‎‎版本。我们将使用‎‎此信息‎‎来确定功能和‎‎错误‎‎修复的优先级。‎", - "AppDataDirectory": "‎应用程序数据‎‎目录‎", - "AppDataLocationHealthCheckMessage": "‎无法进行更新以防止在‎‎更新‎‎时删除‎‎应用程序数据‎", - "Applications": "‎应用‎", - "ApplicationStatusCheckAllClientMessage": "‎所有‎‎应用程序‎‎都因故障而不可用‎", - "ApplicationStatusCheckSingleClientMessage": "‎应用程序‎‎因故障而不可用:{0}‎", - "ApplyTags": "‎应用‎‎标签‎", - "AppProfile": "‎应用配置文件‎", - "AcceptConfirmationModal": "‎接受默认模式‎", - "Actions": "行为", - "AddToDownloadClient": "‎添加‎‎版本以‎‎下载‎‎客户端‎", - "Application": "‎应用‎", - "ApplyTagsHelpTexts2": "‎添加‎‎:将标签‎‎添加到‎‎现有的标签‎‎列表中‎", - "ApplyTagsHelpTexts3": "‎移除‎‎:‎‎移除‎‎输入的标签‎", - "ApplyTagsHelpTexts4": "‎替换‎‎:‎‎将标记替换为‎‎输入的标记(不输入任何标记以‎‎清除‎‎所有标记)‎", - "AppProfileDeleteConfirm": "你‎是否确实要‎‎删除‎‎{0}?‎", - "AppProfiles": "‎应用配置文件‎", - "AppProfileSelectHelpText": "‎应用程序配置文件用于控制应用程序‎‎同步‎‎时‎‎的 RSS‎‎、自动‎‎搜索‎‎和‎‎交互式‎‎搜索‎‎设置‎", - "AudioSearch": "‎音频‎‎搜索‎", - "Authentication": "认证", - "AuthenticationMethodHelpText": "访问 Prowlarr 时需要提供用户名和密码", - "Automatic": "自动化", - "AutomaticSearch": "自动搜索", - "Backup": "备份", - "BackupIntervalHelpText": "自动备份时间间隔", - "Clear": "清除", - "Categories": "目录", - "BackupNow": "立即备份", - "BackupRetentionHelpText": "超过保留时间的自动备份将被自动清除", - "Backups": "备份", - "BindAddressHelpText": "填入有效 IP 地址或使用 '*' 接受所有连接", - "BookSearch": "图书搜索", - "BranchUpdate": "Prowlarr 更新时使用的 Branch", - "Branch": "", - "CertificateValidationHelpText": "设置 HTTPS 认证等级", - "CertificateValidation": "证书认证", - "Category": "目录", - "CancelPendingTask": "取消这个进行的任务?", - "Cancel": "取消", - "BypassProxyForLocalAddresses": "不代理本地 IP 地址", - "BackupFolderHelpText": "Prowlarr 安装目录下的相对路径", - "BindAddress": "绑定地址", - "ChangeHasNotBeenSavedYet": "设置未保存", - "Close": "关闭", - "CloneProfile": "复制配置文件" -} diff --git a/src/NzbDrone.Core/Parser/IsoLanguages.cs b/src/NzbDrone.Core/Parser/IsoLanguages.cs index ecd0d92b5..141075c31 100644 --- a/src/NzbDrone.Core/Parser/IsoLanguages.cs +++ b/src/NzbDrone.Core/Parser/IsoLanguages.cs @@ -17,7 +17,8 @@ namespace NzbDrone.Core.Parser new IsoLanguage("nl", "", "nld", "Dutch", Language.Dutch), new IsoLanguage("ja", "", "jpn", "Japanese", Language.Japanese), new IsoLanguage("is", "", "isl", "Icelandic", Language.Icelandic), - new IsoLanguage("zh", "", "zho", "Chinese", Language.Chinese), + new IsoLanguage("zh", "cn", "zho", "Chinese (Simplified)", Language.Chinese), + new IsoLanguage("zh", "tw", "zho", "Chinese (Traditional)", Language.ChineseTW), new IsoLanguage("ru", "", "rus", "Russian", Language.Russian), new IsoLanguage("pl", "", "pol", "Polish", Language.Polish), new IsoLanguage("vi", "", "vie", "Vietnamese", Language.Vietnamese), @@ -35,7 +36,12 @@ namespace NzbDrone.Core.Parser new IsoLanguage("hi", "", "hin", "Hindi", Language.Hindi), new IsoLanguage("th", "", "tha", "Thai", Language.Thai), new IsoLanguage("bg", "", "bul", "Bulgarian", Language.Bulgarian), - new IsoLanguage("ro", "", "ron", "Romanian", Language.Romanian) + new IsoLanguage("ro", "", "ron", "Romanian", Language.Romanian), + new IsoLanguage("pt", "br", "", "Portuguese (Brazil)", Language.PortugueseBR), + new IsoLanguage("ar", "", "ara", "Arabic", Language.Arabic), + new IsoLanguage("uk", "", "ukr", "Ukrainian", Language.Ukrainian), + new IsoLanguage("fa", "", "fas", "Persian", Language.Persian), + new IsoLanguage("be", "", "ben", "Bengali", Language.Bengali) }; public static IsoLanguage Find(string isoCode)