mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Reader and CloudKit Account Views
This commit is contained in:
@@ -7,4 +7,11 @@
|
||||
*/
|
||||
|
||||
"CANCEL_BUTTON_TITLE" = "Cancel";
|
||||
"DISMISS_BUTTON_TITLE" = "Dismiss";
|
||||
"DONE_BUTTON_TITLE" = "Done";
|
||||
"REMOVE_ACCOUNT_BUTTON_TITLE" = "Remove Account";
|
||||
"DEACTIVATE_BUTTON_TITLE" = "Deactivate";
|
||||
"CREDENTIALS_BUTTON_TITLE" = "Credentials";
|
||||
"ADD_ACCOUNT_BUTTON_TITLE" = "Add Account";
|
||||
"UPDATE_CREDENTIALS_BUTTON_TITLE" = "Update Credentials";
|
||||
"USE_CLOUDKIT_BUTTON_TITLE" = "Use iCloud";
|
||||
|
||||
12
Shared/Translations/Errors.strings
Normal file
12
Shared/Translations/Errors.strings
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Errors.strings
|
||||
NetNewsWire
|
||||
|
||||
Created by Stuart Breckenridge on 16/12/2022.
|
||||
Copyright © 2022 Ranchero Software. All rights reserved.
|
||||
*/
|
||||
|
||||
"ERROR_TITLE" = "Error";
|
||||
"DUPLICATE_ACCOUNT_ERROR" = "There is already an account of that type with that username created.";
|
||||
"CLOUDKIT_NOT_ENABLED_ERROR" = "Unable to add iCloud Account. Please make sure you have iCloud and iCloud Drive enabled in System Settings.";
|
||||
|
||||
30
Shared/Translations/LocalizedNetNewsWireError.swift
Normal file
30
Shared/Translations/LocalizedNetNewsWireError.swift
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// LocalizedNetNewsWireError.swift
|
||||
// NetNewsWire
|
||||
//
|
||||
// Created by Stuart Breckenridge on 16/12/2022.
|
||||
// Copyright © 2022 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public enum LocalizedNetNewsWireError: LocalizedError {
|
||||
|
||||
/// Displayed when the user tries to create a duplicate
|
||||
/// account with the same username.
|
||||
case duplicateAccount
|
||||
|
||||
/// Displayed when the user attempts to add a
|
||||
/// iCloud account but iCloud and/or iCloud Drive
|
||||
/// are not enabled/
|
||||
case iCloudDriveMissing
|
||||
|
||||
public var errorDescription: String? {
|
||||
switch self {
|
||||
case .duplicateAccount:
|
||||
return Bundle.main.localizedString(forKey: "DUPLICATE_ACCOUNT_ERROR", value: nil, table: "Errors")
|
||||
case .iCloudDriveMissing:
|
||||
return Bundle.main.localizedString(forKey: "CLOUDKIT_NOT_ENABLED_ERROR", value: nil, table: "Errors")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user