Use the system string for telephone number menu
[WebKit-https.git] / Source / WebKit2 / Platform / mac / MenuUtilities.mm
index 6d750d9e7170532e96db3df6f2bd0c97333d24f4..d1e9532cae247b2006aa3679e9a7bf6a1812ae34 100644 (file)
@@ -29,6 +29,7 @@
 #import "StringUtilities.h"
 #import <WebCore/LocalizedStrings.h>
 #import <WebCore/SoftLinking.h>
+#import <WebCore/TUCallSPI.h>
 #import <objc/runtime.h>
 
 #if ENABLE(TELEPHONE_NUMBER_DETECTION) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
@@ -55,6 +56,8 @@ namespace WebKit {
 
 NSString *menuItemTitleForTelephoneNumberGroup()
 {
+    if ([getTUCallClass() respondsToSelector:@selector(supplementalDialTelephonyCallString)])
+        return [getTUCallClass() supplementalDialTelephonyCallString];
     return WEB_UI_STRING("Call Using iPhone:", "menu item title for phone number");
 }