The interface's words follow the style guide (#507)
docs/STYLE-GUIDE.md sets the rules: sentence case, "Unable to ..." and what to do for a failure, podcast not show, address not URL, check not scan, no dashes or symbols for words, buttons that start with a verb. The page, admin, sign-in and the app's alert now follow it: the copy failure, the download and sharing states, the feed's error label, the DeadAir lines, the search boxes' clear buttons (which said only "Clear"), the icon picker's Auto and Initials, the r key's "Refresh" (it reloads the lists), the admin log's Scans tab. "add it in Settings" stays in lower case: it is a link inside a sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
@@ -158,12 +158,12 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKUIDeleg
|
||||
}
|
||||
triedCache = false
|
||||
let host = Server.url?.host ?? "the server"
|
||||
let alert = UIAlertController(title: "Cannot reach \(host)",
|
||||
let alert = UIAlertController(title: "Unable to reach \(host)",
|
||||
message: error.localizedDescription, preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: "Try Again", style: .default) { [weak self] _ in
|
||||
alert.addAction(UIAlertAction(title: "Try again", style: .default) { [weak self] _ in
|
||||
if let url = Server.url { self?.webView.load(URLRequest(url: url)) }
|
||||
})
|
||||
alert.addAction(UIAlertAction(title: "Change Server", style: .default) { [weak self] _ in
|
||||
alert.addAction(UIAlertAction(title: "Change server", style: .default) { [weak self] _ in
|
||||
self?.askForServer()
|
||||
})
|
||||
if presentedViewController == nil { present(alert, animated: true) }
|
||||
|
||||
Reference in New Issue
Block a user