Commit 3e10defe authored by eric@webkit.org's avatar eric@webkit.org
Browse files

2010-06-04 Anders Bakken <agbakken@gmail.com>

        Reviewed by David Levin.

        [Qt] Localizations.cpp has coding-style errors
        https://bugs.webkit.org/show_bug.cgi?id=39773

        * platform/qt/Localizations.cpp:
        (WebCore::localizedMediaTimeDescription):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 61840bb6
2010-06-04 Anders Bakken <agbakken@gmail.com>
Reviewed by David Levin.
[Qt] Localizations.cpp has coding-style errors
https://bugs.webkit.org/show_bug.cgi?id=39773
* platform/qt/Localizations.cpp:
(WebCore::localizedMediaTimeDescription):
2010-06-04 Lyon Chen <liachen@rim.com>
Reviewed by Darin Adler.
......
......@@ -27,15 +27,15 @@
*/
#include "config.h"
#include "LocalizedStrings.h"
#include "IntSize.h"
#include "LocalizedStrings.h"
#include "NotImplemented.h"
#include "PlatformString.h"
#include <wtf/MathExtras.h>
#include <QCoreApplication>
#include <QLocale>
#include <wtf/MathExtras.h>
namespace WebCore {
......@@ -350,7 +350,7 @@ String AXMenuListActionVerb()
{
return String();
}
String missingPluginText()
{
return QCoreApplication::translate("QWebPage", "Missing Plug-in", "Label text to be used when a plug-in is missing");
......@@ -477,21 +477,18 @@ String localizedMediaTimeDescription(float time)
int minutes = (seconds / 60) % 60;
seconds %= 60;
if (days) {
if (days)
return QCoreApplication::translate("QWebPage", "%1 days %2 hours %3 minutes %4 seconds", "Media time description").arg(days).arg(hours).arg(minutes).arg(seconds);
}
if (hours) {
if (hours)
return QCoreApplication::translate("QWebPage", "%1 hours %2 minutes %3 seconds", "Media time description").arg(hours).arg(minutes).arg(seconds);
}
if (minutes) {
if (minutes)
return QCoreApplication::translate("QWebPage", "%1 minutes %2 seconds", "Media time description").arg(minutes).arg(seconds);
}
return QCoreApplication::translate("QWebPage", "%1 seconds", "Media time description").arg(seconds);
}
#endif // ENABLE(VIDEO)
#endif // ENABLE(VIDEO)
String validationMessageValueMissingText()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment