diff --git a/phpmon/Domain/DomainList/Cells/DomainListPhpCell.swift b/phpmon/Domain/DomainList/Cells/DomainListPhpCell.swift index e1aa67c..65bd1c5 100644 --- a/phpmon/Domain/DomainList/Cells/DomainListPhpCell.swift +++ b/phpmon/Domain/DomainList/Cells/DomainListPhpCell.swift @@ -23,12 +23,16 @@ class DomainListPhpCell: NSTableCellView, DomainListCellProtocol buttonPhpVersion.title = " PHP \(site.servingPhpVersion)" + imageViewPhpVersionOK.toolTip = nil + if site.isolatedPhpVersion != nil { imageViewPhpVersionOK.isHidden = false imageViewPhpVersionOK.image = NSImage(named: "Isolated") + imageViewPhpVersionOK.toolTip = "domain_list.tooltips.isolated".localized(site.servingPhpVersion) } else { imageViewPhpVersionOK.isHidden = (site.composerPhp == "???" || !site.composerPhpCompatibleWithLinked) imageViewPhpVersionOK.image = NSImage(named: "Checkmark") + imageViewPhpVersionOK.toolTip = "domain_list.tooltips.checkmark".localized(site.composerPhp) } } diff --git a/phpmon/Localizable.strings b/phpmon/Localizable.strings index 7296f74..1b23f3f 100644 --- a/phpmon/Localizable.strings +++ b/phpmon/Localizable.strings @@ -71,6 +71,9 @@ "domain_list.title" = "Domains"; "domain_list.subtitle" = "Linked & Parked"; +"domain_list.tooltips.isolated" = "This domain is isolated and using PHP %@ instead of the globally linked PHP."; +"domain_list.tooltips.checkmark" = "This domain is being served with a version of PHP that is compatible with this requirement (PHP %@). Click on the PHP version next to this checkmark to find out more information about how this requirement was determined."; + "domain_list.alerts_isolation_failed.title" = "Oops! Site Not Isolated"; "domain_list.alerts_isolation_failed.subtitle" = "Something went wrong trying to isolate this site. If this is your default site but it is not linked, I recommend manually linking the site prior to setting up isolation."; "domain_list.alerts_isolation_failed.desc" = "To find out what goes wrong, you can try running the command in your terminal manually: %@";