Added device specific local account names.
This commit is contained in:
parent
2972410930
commit
17caa31ee5
|
@ -6,6 +6,10 @@
|
||||||
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if os(iOS)
|
||||||
|
import UIKit
|
||||||
|
#endif
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import RSCore
|
import RSCore
|
||||||
import Articles
|
import Articles
|
||||||
|
@ -167,7 +171,15 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||||
|
|
||||||
switch type {
|
switch type {
|
||||||
case .onMyMac:
|
case .onMyMac:
|
||||||
|
#if os(macOS)
|
||||||
defaultName = NSLocalizedString("On My Mac", comment: "Account name")
|
defaultName = NSLocalizedString("On My Mac", comment: "Account name")
|
||||||
|
#else
|
||||||
|
if UIDevice.current.userInterfaceIdiom == .pad {
|
||||||
|
defaultName = NSLocalizedString("On My iPad", comment: "Account name")
|
||||||
|
} else {
|
||||||
|
defaultName = NSLocalizedString("On My iPhone", comment: "Account name")
|
||||||
|
}
|
||||||
|
#endif
|
||||||
case .feedly:
|
case .feedly:
|
||||||
defaultName = "Feedly"
|
defaultName = "Feedly"
|
||||||
case .feedbin:
|
case .feedbin:
|
||||||
|
|
Loading…
Reference in New Issue