[BlackBerry] Update LocalizedStringsBlackBerry.cpp
authorrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2012 15:30:54 +0000 (15:30 +0000)
committerrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Mar 2012 15:30:54 +0000 (15:30 +0000)
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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/blackberry/LocalizedStringsBlackBerry.cpp

index 6e262b6..65b329d 100644 (file)
@@ -1,3 +1,18 @@
+2012-03-05  Rob Buis  <rbuis@rim.com>
+
+        [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  <loislo@chromium.org>
 
         Web Inspector: [chromium] introduce HeapSnapshot performance test.
index 48e5025..7f5bef7 100644 (file)
@@ -57,8 +57,7 @@ String submitButtonDefaultLabel()
 
 String inputElementAltText()
 {
-    notImplemented();
-    return String();
+    return String::fromUTF8(s_resource.getString(BlackBerry::Platform::SUBMIT_BUTTON_LABEL));
 }
 
 static String platformLanguage()
@@ -370,10 +369,9 @@ String searchMenuClearRecentSearchesText()
     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 @@ String defaultDetailsSummaryText()
     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