mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-03-27 06:20:08 +01:00
🌐 Move strings for popover to translation file
This commit is contained in:
@@ -20,31 +20,31 @@ struct SecurePopoverView: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
if expires == nil {
|
||||
Text("The domain \"\(name).\(tld)\" is not secured.")
|
||||
Text("cert_popover.insecure_domain".localized("\(name).\(tld)"))
|
||||
.fontWeight(.bold)
|
||||
DisclaimerView(
|
||||
iconName: "info.circle.fill",
|
||||
message: "Traffic is served by nginx over plain HTTP. Keep in mind that certain web features may not work correctly without a secure connection.",
|
||||
message: "cert_popover.insecure_domain_text".localized,
|
||||
color: Color.statusColorRed
|
||||
)
|
||||
} else {
|
||||
Text("The domain \"\(name).\(tld)\" is secured.")
|
||||
Text("cert_popover.secure_domain".localized("\(name).\(tld)"))
|
||||
.fontWeight(.bold)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
if let expires {
|
||||
Text("Because this domain has been secured with a certificate, traffic to this domain is served by nginx over HTTPS.")
|
||||
Text("cert_popover.secure_domain_traffic".localized)
|
||||
.font(.subheadline)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
if expires < Date() {
|
||||
DisclaimerView(
|
||||
iconName: "info.circle.fill",
|
||||
message: "The certificate expired on \(expires.formatted()). You must renew it to continue using HTTPS without errors.",
|
||||
iconName: "exclamationmark.triangle.fill",
|
||||
message: "cert_popover.secure_domain_expired".localized(expires.formatted()),
|
||||
color: Color.statusColorOrange
|
||||
)
|
||||
} else {
|
||||
DisclaimerView(
|
||||
iconName: "info.circle.fill",
|
||||
message: "The certificate is valid. It will expire on \(expires.formatted()). At that point it will need to be renewed, but you will be notified.",
|
||||
iconName: "checkmark.circle.fill",
|
||||
message: "cert_popover.secure_domain_expiring_later".localized(expires.formatted()),
|
||||
color: Color.statusColorGreen
|
||||
)
|
||||
}
|
||||
|
||||
@@ -912,3 +912,10 @@ If you want to make edits to this file, please do so before upgrading. When you
|
||||
"valet_upgraded.title" = "Valet has been upgraded!";
|
||||
"valet_upgraded.subtitle" = "Sometimes, upgrades may require you to run `valet install` in a terminal after upgrading.";
|
||||
"valet_upgraded.description" = "PHP Monitor cannot know if this is necessary, so it doesn't do this automatically. However, if things don't seem to work correctly, you can try running `valet install` again and restart PHP Monitor.";
|
||||
|
||||
"cert_popover.insecure_domain" = "The domain \"%@\" is not secured.";
|
||||
"cert_popover.insecure_domain_text" = "Traffic is served by nginx over plain HTTP. Keep in mind that certain web features may not work correctly without a secure connection.";
|
||||
"cert_popover.secure_domain" = "The domain \"%@\" is secured.";
|
||||
"cert_popover.secure_domain_traffic" = "Because this domain has been secured with a certificate, traffic to this domain is served by nginx over HTTPS.";
|
||||
"cert_popover.secure_domain_expired" = "The certificate expired on %@. You must renew it to continue using HTTPS without errors.";
|
||||
"cert_popover.secure_domain_expiring_later" = "The certificate is valid. It will expire on %@. At that point it will need to be renewed, but you will be notified.";
|
||||
|
||||
Reference in New Issue
Block a user