Title: [109744] trunk/Source/WebCore
Revision
109744
Author
[email protected]
Date
2012-03-05 07:30:54 -0800 (Mon, 05 Mar 2012)

Log Message

[BlackBerry] Update LocalizedStringsBlackBerry.cpp
https://bugs.webkit.org/show_bug.cgi?id=80278

Reviewed by Antonio Gomes.

Update LocalizedStringsBlackBerry.cpp to current HEAD.

* platform/blackberry/LocalizedStringsBlackBerry.cpp:
(WebCore::inputElementAltText): fall back to "Submit".
(WebCore::imageTitle): choose the format "filename(widthxheight)" like Chrome does.
(WebCore::fileButtonNoFilesSelectedLabel): fall back to "No File Chosen" translation like Chrome does.
(WebCore):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (109743 => 109744)


--- trunk/Source/WebCore/ChangeLog	2012-03-05 15:24:45 UTC (rev 109743)
+++ trunk/Source/WebCore/ChangeLog	2012-03-05 15:30:54 UTC (rev 109744)
@@ -1,3 +1,18 @@
+2012-03-05  Rob Buis  <[email protected]>
+
+        [BlackBerry] Update LocalizedStringsBlackBerry.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=80278
+
+        Reviewed by Antonio Gomes.
+
+        Update LocalizedStringsBlackBerry.cpp to current HEAD.
+
+        * platform/blackberry/LocalizedStringsBlackBerry.cpp:
+        (WebCore::inputElementAltText): fall back to "Submit".
+        (WebCore::imageTitle): choose the format "filename(widthxheight)" like Chrome does.
+        (WebCore::fileButtonNoFilesSelectedLabel): fall back to "No File Chosen" translation like Chrome does.
+        (WebCore):
+
 2012-03-05  Ilya Tikhonovsky  <[email protected]>
 
         Web Inspector: [chromium] introduce HeapSnapshot performance test.

Modified: trunk/Source/WebCore/platform/blackberry/LocalizedStringsBlackBerry.cpp (109743 => 109744)


--- trunk/Source/WebCore/platform/blackberry/LocalizedStringsBlackBerry.cpp	2012-03-05 15:24:45 UTC (rev 109743)
+++ trunk/Source/WebCore/platform/blackberry/LocalizedStringsBlackBerry.cpp	2012-03-05 15:30:54 UTC (rev 109744)
@@ -57,8 +57,7 @@
 
 String inputElementAltText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(s_resource.getString(BlackBerry::Platform::SUBMIT_BUTTON_LABEL));
 }
 
 static String platformLanguage()
@@ -370,10 +369,9 @@
     return String();
 }
 
-String imageTitle(String const&, IntSize const&)
+String imageTitle(String const& filename, IntSize const& size)
 {
-    notImplemented();
-    return String();
+    return filename + " (" + String::number(size.width()) + "x" + String::number(size.height()) + ")";
 }
 
 String AXButtonActionVerb()
@@ -578,4 +576,9 @@
     return String::fromUTF8(s_resource.getString(BlackBerry::Platform::DETAILS_SUMMARY));
 }
 
+String fileButtonNoFilesSelectedLabel()
+{
+    return String::fromUTF8(s_resource.getString(BlackBerry::Platform::FILE_BUTTON_NO_FILE_SELECTED_LABEL));
+}
+
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to