diff --git a/palera1nLoader/Localization/Localizable.xcstrings b/palera1nLoader/Localization/Localizable.xcstrings index 96146df4..ff23ea06 100644 --- a/palera1nLoader/Localization/Localizable.xcstrings +++ b/palera1nLoader/Localization/Localizable.xcstrings @@ -83,14 +83,20 @@ } } }, - "Apple TV Rootless is not supported, please switch to rootful.\\n\\n(Advanced) Custom configuration may be specified at Options -> Change Download URL." : { + "Apple TV Rootless not supported" : { "comment" : "✅ Alert body trying to use rootless on Apple TV, and the configuration URL is unchanged.", "extractionState" : "manual", "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Apple TV Rootless is not supported, please switch to rootful.\n\n(Advanced) Custom configuration may be specified at Options -> Change Download URL." + } + }, "zh-HK" : { "stringUnit" : { "state" : "translated", - "value" : "不支援Apple TV 無根越獄,請轉到有根越獄。\\n\\n(進階) 配置文件可以在選項 -> 更改下載網址中更改。" + "value" : "不支援Apple TV 無根越獄,請轉到有根越獄。\n\n(進階) 配置文件可以在選項 -> 更改下載網址中更改。" } } } @@ -826,6 +832,24 @@ } } }, + "Jailbreak environment not supported by current configuration" : { + "comment" : "✅ Alert body when the custom configuration file does not support the current jailbreak environment", + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "The current jailbreak environment is not supported by the current loader configuration file.\n\nSwitch to a supported jailbreak environment, or change configuration in options -> Change Download URL.\n\nPlatform: %@\nJailbreak type: %@\nCF: %d" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "當前的越獄環境不被當前的配置文件支援。\n\n請切換到一個支援的越獄環境或在選項 -> 更改下載網址中更改配置。\n\n平台:%@\n越獄類型:%@\nCF: %d" + } + } + } + }, "Kernel" : { "comment" : "Kernel version in about screen", "extractionState" : "manual", @@ -1521,18 +1545,6 @@ } } }, - "The current jailbreak environment is not supported by the current loader configuration file.\\n\\nSwitch to a supported jailbreak environment, or change configuration in options -> Change Download URL.\\n\\nPlatform: %@\\nJailbreak type: %@\\nCF: %d" : { - "comment" : "✅ Alert body when the custom configuration file does not support the current jailbreak environment", - "extractionState" : "manual", - "localizations" : { - "zh-HK" : { - "stringUnit" : { - "state" : "translated", - "value" : "當前的越獄環境不被當前的配置文件支援。\\n\\n 請切換到一個支援的越獄環境或在選項 -> 更改下載網址中更改配置文件。\\n\\n 平台: %@\\n 越獄類型:%@\\nCF: %d" - } - } - } - }, "Too Long" : { "comment" : "✅ If your set password is over the 254 char limit in the password prompt", "extractionState" : "manual", diff --git a/palera1nLoader/View/ViewController.swift b/palera1nLoader/View/ViewController.swift index 4f6f2ded..04c4e7f4 100644 --- a/palera1nLoader/View/ViewController.swift +++ b/palera1nLoader/View/ViewController.swift @@ -341,13 +341,13 @@ extension ViewController { { DispatchQueue.main.async { let lame = UIAlertAction(title: .localized("Dismiss"), style: .default, handler: nil) - let alert = UIAlertController.coolAlert(title: .localized("Not Supported"), message: .localized("Apple TV Rootless is not supported, please switch to rootful.\n\n(Advanced) Custom configuration may be specified at Options -> Change Download URL."), actions: [lame]) + let alert = UIAlertController.coolAlert(title: .localized("Not Supported"), message: .localized("Apple TV Rootless not supported"), actions: [lame]) self.present(alert, animated: true) } } else { DispatchQueue.main.async { let lame = UIAlertAction(title: .localized("Dismiss"), style: .default, handler: nil) - let alert = UIAlertController.coolAlert(title: .localized("Not Supported"), message: .localized("The current jailbreak environment is not supported by the current loader configuration file.\n\nSwitch to a supported jailbreak environment, or change configuration in options -> Change Download URL.\n\nPlatform: %@\nJailbreak type: %@\nCF: %d", arguments: device, paleInfo.palerain_option_rootful ? String.localized("Rootful") : String.localized("Rootless"), Int(floor((kCFCoreFoundationVersionNumber)))), actions: [lame]) + let alert = UIAlertController.coolAlert(title: .localized("Not Supported"), message: .localized("Jailbreak environment not supported by current configuration", arguments: device, paleInfo.palerain_option_rootful ? String.localized("Rootful") : String.localized("Rootless"), Int(floor((kCFCoreFoundationVersionNumber)))), actions: [lame]) self.present(alert, animated: true) } }