mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-03-29 16:10:08 +02:00
🌐 Move strings for popover to translation file
This commit is contained in:
@@ -20,31 +20,31 @@ struct SecurePopoverView: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 10) {
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
if expires == nil {
|
if expires == nil {
|
||||||
Text("The domain \"\(name).\(tld)\" is not secured.")
|
Text("cert_popover.insecure_domain".localized("\(name).\(tld)"))
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
DisclaimerView(
|
DisclaimerView(
|
||||||
iconName: "info.circle.fill",
|
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
|
color: Color.statusColorRed
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Text("The domain \"\(name).\(tld)\" is secured.")
|
Text("cert_popover.secure_domain".localized("\(name).\(tld)"))
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
if let expires {
|
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)
|
.font(.subheadline)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
if expires < Date() {
|
if expires < Date() {
|
||||||
DisclaimerView(
|
DisclaimerView(
|
||||||
iconName: "info.circle.fill",
|
iconName: "exclamationmark.triangle.fill",
|
||||||
message: "The certificate expired on \(expires.formatted()). You must renew it to continue using HTTPS without errors.",
|
message: "cert_popover.secure_domain_expired".localized(expires.formatted()),
|
||||||
color: Color.statusColorOrange
|
color: Color.statusColorOrange
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
DisclaimerView(
|
DisclaimerView(
|
||||||
iconName: "info.circle.fill",
|
iconName: "checkmark.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.",
|
message: "cert_popover.secure_domain_expiring_later".localized(expires.formatted()),
|
||||||
color: Color.statusColorGreen
|
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.title" = "Valet has been upgraded!";
|
||||||
"valet_upgraded.subtitle" = "Sometimes, upgrades may require you to run `valet install` in a terminal after upgrading.";
|
"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.";
|
"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