|
@@ -152,14 +152,14 @@ class AccountRightCellView: NSTableCellView {
|
|
|
self.button_.title = NSLocalizedString("Cancel Subscription", comment: "")
|
|
|
self.button_.setTitleColor(NSColor(hex: "#666666"))
|
|
|
|
|
|
- self.expireDatelabel_.attributedStringValue = .init(string: NSLocalizedString("Expires: ", comment: "") + expireTime)
|
|
|
+ self.expireDatelabel_.attributedStringValue = .init(string: NSLocalizedString("Expires:", comment: "") + expireTime)
|
|
|
} else if status == 2 {
|
|
|
self.button_.layer?.borderWidth = 0
|
|
|
self.button_.layer?.backgroundColor = KMAppearance.themeColor().cgColor
|
|
|
self.button_.title = NSLocalizedString("Renew", comment: "")
|
|
|
self.button_.setTitleColor(.white)
|
|
|
|
|
|
- var attri = NSMutableAttributedString(string: NSLocalizedString("Expires: ", comment: ""))
|
|
|
+ var attri = NSMutableAttributedString(string: NSLocalizedString("Expires:", comment: ""))
|
|
|
attri.append(.init(string: expireTime, attributes: [.foregroundColor : NSColor(hex: "#FF0000")]))
|
|
|
self.expireDatelabel_.attributedStringValue = attri
|
|
|
|
|
@@ -173,7 +173,7 @@ class AccountRightCellView: NSTableCellView {
|
|
|
let num = self.model?.surplus_num ?? 0
|
|
|
let totalNum = self.model?.total_num ?? 0
|
|
|
if isSubscribing {
|
|
|
- var attri = NSMutableAttributedString(string: NSLocalizedString("Device Available: ", comment: ""))
|
|
|
+ var attri = NSMutableAttributedString(string: NSLocalizedString("Device", comment: "")+NSLocalizedString("Available:", comment: ""))
|
|
|
|
|
|
if num <= 0 {
|
|
|
attri.append(.init(string: "\(num)/\(totalNum)", attributes: [.foregroundColor : NSColor(hex: "#FF0000")]))
|
|
@@ -187,7 +187,7 @@ class AccountRightCellView: NSTableCellView {
|
|
|
self.button_.isHidden = false
|
|
|
self.statelabel_.isHidden = false
|
|
|
} else {
|
|
|
- self.devicelabel_.attributedStringValue = .init(string: NSLocalizedString("Device Available: ", comment: "") + "\(num)/\(totalNum)", attributes: [.foregroundColor : NSColor(hex: "#333333").withAlphaComponent(0.3)])
|
|
|
+ self.devicelabel_.attributedStringValue = .init(string: NSLocalizedString("Device", comment: "") + NSLocalizedString("Available:", comment: "") + "\(num)/\(totalNum)", attributes: [.foregroundColor : NSColor(hex: "#333333").withAlphaComponent(0.3)])
|
|
|
}
|
|
|
}
|
|
|
}
|