Skip to content

Commit

Permalink
Do not truncate ip override import description
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Petersson authored and buggmagnet committed Jun 10, 2024
1 parent a1618f8 commit e815a48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ enum IPOverrideStatus: Equatable, CustomStringConvertible {
case .active, .noImports:
""
case let .importFailed(context):
NSLocalizedString(
String(format: NSLocalizedString(
"IP_OVERRIDE_STATUS_DESCRIPTION_INACTIVE",
tableName: "IPOverride",
value: "Import \(context.description) was unsuccessful, please try again.",
value: "Import %@ was unsuccessful, please try again.",
comment: ""
)
), context.description)
case let .importSuccessful(context):
NSLocalizedString(
String(format: NSLocalizedString(
"IP_OVERRIDE_STATUS_DESCRIPTION_INACTIVE",
tableName: "IPOverride",
value: "Import \(context.description) was successful, overrides are now active.",
value: "Import %@ was successful, overrides are now active.",
comment: ""
)
), context.description)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class IPOverrideStatusView: UIView {
let label = UILabel()
label.font = .systemFont(ofSize: 12, weight: .semibold)
label.textColor = .white.withAlphaComponent(0.6)
label.numberOfLines = 0
return label
}()

Expand Down

0 comments on commit e815a48

Please sign in to comment.