Title: [142311] trunk/Source/WebCore
Revision
142311
Author
[email protected]
Date
2013-02-08 12:24:11 -0800 (Fri, 08 Feb 2013)

Log Message

Put snapshotting label text into localizable strings
https://bugs.webkit.org/show_bug.cgi?id=108268

Reviewed by Simon Fraser.

In preparation for a snapshotted plug-in using a ShadowRoot, allow
its label to be localized.

* English.lproj/Localizable.strings:
* platform/LocalizedStrings.cpp:
(WebCore::snapshottedPlugInLabelTitle): New method for returning title.
(WebCore::snapshottedPlugInLabelSubtitle): New method for returning subtitle.
* platform/LocalizedStrings.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (142310 => 142311)


--- trunk/Source/WebCore/ChangeLog	2013-02-08 20:23:50 UTC (rev 142310)
+++ trunk/Source/WebCore/ChangeLog	2013-02-08 20:24:11 UTC (rev 142311)
@@ -1,5 +1,21 @@
 2013-02-08  Dean Jackson  <[email protected]>
 
+        Put snapshotting label text into localizable strings
+        https://bugs.webkit.org/show_bug.cgi?id=108268
+
+        Reviewed by Simon Fraser.
+
+        In preparation for a snapshotted plug-in using a ShadowRoot, allow
+        its label to be localized.
+
+        * English.lproj/Localizable.strings:
+        * platform/LocalizedStrings.cpp:
+        (WebCore::snapshottedPlugInLabelTitle): New method for returning title.
+        (WebCore::snapshottedPlugInLabelSubtitle): New method for returning subtitle.
+        * platform/LocalizedStrings.h:
+
+2013-02-08  Dean Jackson  <[email protected]>
+
         Do not register autostart for plugins from file:// (or nowhere)
         https://bugs.webkit.org/show_bug.cgi?id=108271
 

Modified: trunk/Source/WebCore/English.lproj/Localizable.strings (142310 => 142311)


--- trunk/Source/WebCore/English.lproj/Localizable.strings	2013-02-08 20:23:50 UTC (rev 142310)
+++ trunk/Source/WebCore/English.lproj/Localizable.strings	2013-02-08 20:24:11 UTC (rev 142311)
@@ -100,6 +100,9 @@
 /* Message to display in browser window when in webkit full screen mode. */
 "Click to exit full screen mode" = "Click to exit full screen mode";
 
+/* Subtitle of the label to show on a snapshotted plug-in */
+"Click to restart" = "Click to restart";
+
 /* WebKitErrorCannotShowMIMEType description */
 "Content with specified MIME type can t be shown" = "Content with specified MIME type can t be shown";
 
@@ -403,6 +406,9 @@
 /* Smart Quotes context menu item */
 "Smart Quotes" = "Smart Quotes";
 
+/* Title of the label to show on a snapshotted plug-in */
+"Snapshotted Plug-In" = "Snapshotted Plug-In";
+
 /* Speech context sub-menu item */
 "Speech" = "Speech";
 

Modified: trunk/Source/WebCore/platform/LocalizedStrings.cpp (142310 => 142311)


--- trunk/Source/WebCore/platform/LocalizedStrings.cpp	2013-02-08 20:23:50 UTC (rev 142310)
+++ trunk/Source/WebCore/platform/LocalizedStrings.cpp	2013-02-08 20:24:11 UTC (rev 142311)
@@ -1031,4 +1031,14 @@
 }
 #endif
 
+String snapshottedPlugInLabelTitle()
+{
+    return WEB_UI_STRING("Snapshotted Plug-In", "Title of the label to show on a snapshotted plug-in");
+}
+
+String snapshottedPlugInLabelSubtitle()
+{
+    return WEB_UI_STRING("Click to restart", "Subtitle of the label to show on a snapshotted plug-in");
+}
+
 } // namespace WebCore

Modified: trunk/Source/WebCore/platform/LocalizedStrings.h (142310 => 142311)


--- trunk/Source/WebCore/platform/LocalizedStrings.h	2013-02-08 20:23:50 UTC (rev 142310)
+++ trunk/Source/WebCore/platform/LocalizedStrings.h	2013-02-08 20:24:11 UTC (rev 142311)
@@ -270,6 +270,9 @@
     String textTrackNoLabelText();
 #endif
 
+    String snapshottedPlugInLabelTitle();
+    String snapshottedPlugInLabelSubtitle();
+
 #if !PLATFORM(CHROMIUM)
 #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