Skip to content

Commit

Permalink
Actually make the localizable strings work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Aug 9, 2024
1 parent e6d31e9 commit 5e2b6f4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
40 changes: 26 additions & 14 deletions palera1nLoader/Localization/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -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(進階) 配置文件可以在選項 -> 更改下載網址中更改。"
}
}
}
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions palera1nLoader/View/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 5e2b6f4

Please sign in to comment.