Title: [203801] trunk/Source/WebCore
Revision
203801
Author
[email protected]
Date
2016-07-27 15:34:02 -0700 (Wed, 27 Jul 2016)

Log Message

Add localizable strings for inserting list types
https://bugs.webkit.org/show_bug.cgi?id=160233
-and corresponding-
rdar://problem/26102954

Reviewed by Dan Bernstein.

* English.lproj/Localizable.strings:
* platform/LocalizedStrings.cpp:
(WebCore::insertListTypeNone):
(WebCore::insertListTypeNoneAccessibilityTitle):
(WebCore::insertListTypeBulleted):
(WebCore::insertListTypeBulletedAccessibilityTitle):
(WebCore::insertListTypeNumbered):
(WebCore::insertListTypeNumberedAccessibilityTitle):
* platform/LocalizedStrings.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (203800 => 203801)


--- trunk/Source/WebCore/ChangeLog	2016-07-27 22:15:37 UTC (rev 203800)
+++ trunk/Source/WebCore/ChangeLog	2016-07-27 22:34:02 UTC (rev 203801)
@@ -1,3 +1,22 @@
+2016-07-27  Beth Dakin  <[email protected]>
+
+        Add localizable strings for inserting list types
+        https://bugs.webkit.org/show_bug.cgi?id=160233
+        -and corresponding-
+        rdar://problem/26102954
+
+        Reviewed by Dan Bernstein.
+
+        * English.lproj/Localizable.strings:
+        * platform/LocalizedStrings.cpp:
+        (WebCore::insertListTypeNone):
+        (WebCore::insertListTypeNoneAccessibilityTitle):
+        (WebCore::insertListTypeBulleted):
+        (WebCore::insertListTypeBulletedAccessibilityTitle):
+        (WebCore::insertListTypeNumbered):
+        (WebCore::insertListTypeNumberedAccessibilityTitle):
+        * platform/LocalizedStrings.h:
+
 2016-07-27  Chris Dumez  <[email protected]>
 
         Parameters to DOMParser.parseFromString() should be mandatory

Modified: trunk/Source/WebCore/English.lproj/Localizable.strings (203800 => 203801)


--- trunk/Source/WebCore/English.lproj/Localizable.strings	2016-07-27 22:15:37 UTC (rev 203800)
+++ trunk/Source/WebCore/English.lproj/Localizable.strings	2016-07-27 22:34:02 UTC (rev 203801)
@@ -79,6 +79,9 @@
 /* File Upload single video label */
 "1 Video (file upload on page label for one video)" = "1 Video";
 
+/* Option in segmented control for choosing list type in text editing */
+"1. 2. 3.…" = "1. 2. 3.…";
+
 /* Menu item title for KEYGEN pop-up menu */
 "1024 (Medium Grade)" = "1024 (Medium Grade)";
 
@@ -289,6 +292,12 @@
 /* Undo action name */
 "Insert List (Undo action name)" = "Insert List";
 
+/* Option in segmented control for inserting a bulleted list in text editing */
+"Insert a bulleted list" = "Insert a bulleted list";
+
+/* Option in segmented control for inserting a numbered list in text editing */
+"Insert a numbered list" = "Insert a numbered list";
+
 /* Inspect Element context menu item */
 "Inspect Element" = "Inspect Element";
 
@@ -364,9 +373,15 @@
 /* Empty select list */
 "No Options Select Popover" = "No Options";
 
+/* Accessibility label for not inserting a list in text editing */
+"No list" = "No list";
+
 /* Label for only item in menu that appears when clicking on the search field image, when no searches have been performed */
 "No recent searches" = "No recent searches";
 
+/* Option in segmented control for choosing list type in text editing */
+"None" = "None";
+
 /* WebKitErrorCannotUseRestrictedPort description */
 "Not allowed to use restricted network port" = "Not allowed to use restricted network port";
 
@@ -604,6 +619,9 @@
 /* WebKitErrorBlockedByContentBlocker description */
 "The URL was blocked by a content blocker" = "The URL was blocked by a content blocker";
 
+/* WebKitErrorFrameLoadBlockedByContentFilter description */
+"The URL was blocked by a content filter" = "The URL was blocked by a content filter";
+
 /* WKErrorWebViewInvalidated description */
 "The WKWebView was invalidated" = "The WKWebView was invalidated";
 
@@ -1117,5 +1135,6 @@
 /* An ARIA accessibility group that acts as an dialog. */
 "web dialog" = "web dialog";
 
-/* WebKitErrorFrameLoadBlockedByContentFilter description */
-"The URL was blocked by a content filter" = "The URL was blocked by a content filter";
+/* Option in segmented control for choosing list type in text editing */
+"•" = "•";
+

Modified: trunk/Source/WebCore/platform/LocalizedStrings.cpp (203800 => 203801)


--- trunk/Source/WebCore/platform/LocalizedStrings.cpp	2016-07-27 22:15:37 UTC (rev 203800)
+++ trunk/Source/WebCore/platform/LocalizedStrings.cpp	2016-07-27 22:34:02 UTC (rev 203801)
@@ -1176,4 +1176,36 @@
 }
 #endif
 
+#if PLATFORM(MAC)
+String insertListTypeNone()
+{
+    return WEB_UI_STRING("None", "Option in segmented control for choosing list type in text editing");
+}
+
+String insertListTypeNoneAccessibilityTitle()
+{
+    return WEB_UI_STRING("No list", "Accessibility label for not inserting a list in text editing");
+}
+
+String insertListTypeBulleted()
+{
+    return WEB_UI_STRING("•", "Option in segmented control for choosing list type in text editing");
+}
+
+String insertListTypeBulletedAccessibilityTitle()
+{
+    return WEB_UI_STRING("Insert a bulleted list", "Option in segmented control for inserting a bulleted list in text editing");
+}
+
+String insertListTypeNumbered()
+{
+    return WEB_UI_STRING("1. 2. 3.…", "Option in segmented control for choosing list type in text editing");
+}
+
+String insertListTypeNumberedAccessibilityTitle()
+{
+    return WEB_UI_STRING("Insert a numbered list", "Option in segmented control for inserting a numbered list in text editing");
+}
+#endif // PLATFORM(MAC)
+
 } // namespace WebCore

Modified: trunk/Source/WebCore/platform/LocalizedStrings.h (203800 => 203801)


--- trunk/Source/WebCore/platform/LocalizedStrings.h	2016-07-27 22:15:37 UTC (rev 203800)
+++ trunk/Source/WebCore/platform/LocalizedStrings.h	2016-07-27 22:34:02 UTC (rev 203801)
@@ -279,6 +279,15 @@
     String webCryptoMasterKeyKeychainComment();
 #endif
 
+#if PLATFORM(MAC)
+    WEBCORE_EXPORT String insertListTypeNone();
+    WEBCORE_EXPORT String insertListTypeNoneAccessibilityTitle();
+    WEBCORE_EXPORT String insertListTypeBulleted();
+    WEBCORE_EXPORT String insertListTypeBulletedAccessibilityTitle();
+    WEBCORE_EXPORT String insertListTypeNumbered();
+    WEBCORE_EXPORT String insertListTypeNumberedAccessibilityTitle();
+#endif
+
 #define WEB_UI_STRING(string, description) WebCore::localizedString(string)
 #define WEB_UI_STRING_KEY(string, key, description) WebCore::localizedString(key)
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to