Title: [295615] trunk/Source
Revision
295615
Author
[email protected]
Date
2022-06-16 16:23:20 -0700 (Thu, 16 Jun 2022)

Log Message

[iOS] Update the title of the context menu action to save an image
https://bugs.webkit.org/show_bug.cgi?id=241690
rdar://95117013

Reviewed by Kate Cheney.

Change the title from "Add to Photos" to "Save to Photos" to align with
strings used in the Photos app.

* Source/WebCore/en.lproj/Localizable.strings:
* Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm:
(+[_WKElementAction _elementActionWithType:customTitle:assistant:]):

Canonical link: https://commits.webkit.org/251620@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/en.lproj/Localizable.strings (295614 => 295615)


--- trunk/Source/WebCore/en.lproj/Localizable.strings	2022-06-16 23:08:33 UTC (rev 295614)
+++ trunk/Source/WebCore/en.lproj/Localizable.strings	2022-06-16 23:23:20 UTC (rev 295615)
@@ -130,8 +130,8 @@
 /* Label for the add money with Apple Pay button. */
 "Add money with Apple Pay" = "Add money with Apple Pay";
 
-/* Title for Add to Photos action button */
-"Add to Photos" = "Add to Photos";
+/* Title for Save to Photos action button */
+"Save to Photos" = "Save to Photos";
 
 /* Add to Quick Note context menu item. */
 "Add to Quick Note" = "Add to Quick Note";

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm (295614 => 295615)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm	2022-06-16 23:08:33 UTC (rev 295614)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm	2022-06-16 23:23:20 UTC (rev 295615)
@@ -140,7 +140,7 @@
         };
         break;
     case _WKElementActionTypeSaveImage:
-        title = WEB_UI_STRING("Add to Photos", "Title for Add to Photos action button");
+        title = WEB_UI_STRING("Save to Photos", "Title for Save to Photos action button");
         handler = ^(WKActionSheetAssistant *assistant, _WKActivatedElementInfo *actionInfo) {
             [assistant handleElementActionWithType:type element:actionInfo needsInteraction:YES];
         };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to