[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork
From: David Jarvie <software () astrojar ! org ! uk>
Date: 2007-04-10 0:27:37
Message-ID: 1176164857.242264.8113.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 652052 by djarvie:
Add fancy date option to KLocale::formatDate(), KLocale::formatDateTime()
M +1 -1 kopete/kopete/chatwindow/chatmessagepart.cpp
M +1 -1 kopete/protocols/irc/irccontact_channel.cpp
M +1 -1 kopete/protocols/jabber/jabberbasecontact.cpp
M +1 -1 kppp/logview/monthly.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/chatwindow/chatmessagepart.cpp #652051:652052
@@ -998,7 +998,7 @@
// Replace %destinationName%
resultHTML = resultHTML.replace( QLatin1String("%destinationName%"), \
formatName(destinationName) ); // For %timeOpened%, display the date and time (also \
the seconds).
- resultHTML = resultHTML.replace( QLatin1String("%timeOpened%"), \
KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), true, true ) ); \
+ resultHTML = resultHTML.replace( QLatin1String("%timeOpened%"), \
KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), KLocale::ShortDate, \
true ) );
// Look for %timeOpened{X}%
QRegExp timeRegExp("%timeOpened\\{([^}]*)\\}%");
--- trunk/KDE/kdenetwork/kopete/protocols/irc/irccontact_channel.cpp #652051:652052
@@ -372,7 +372,7 @@
Kopete::Message msg(account->myServer(), mMyself,
i18n("Topic set by %1 at %2").arg(nick).arg(
- KGlobal::locale()->formatDateTime(time, true)
+ KGlobal::locale()->formatDateTime(time, KLocale::ShortDate)
), Kopete::Message::Internal, Kopete::Message::PlainText, CHAT_VIEW);
msg.setImportance(Kopete::Message::Low); //set the importance manualy to low
appendMessage(msg);
--- trunk/KDE/kdenetwork/kopete/protocols/jabber/jabberbasecontact.cpp #652051:652052
@@ -271,7 +271,7 @@
// resource timestamp
resourceListStr += QString ( "<tr><td>%1: %2</td></tr>" ).
- arg ( i18n ( "Timestamp" ), KGlobal::locale()->formatDateTime ( \
(*it)->resource().status().timeStamp(), true, true ) ); + arg ( i18n ( \
"Timestamp" ), KGlobal::locale()->formatDateTime ( \
(*it)->resource().status().timeStamp(), KLocale::ShortDate, true ) );
// message, if any
if ( !(*it)->resource().status().status().trimmed().isEmpty () )
--- trunk/KDE/kdenetwork/kppp/logview/monthly.cpp #652051:652052
@@ -594,7 +594,7 @@
costsMonth(costs, costs);
QString m_costs(KGlobal::locale()->formatMoney(costs, QString::null, 2));
- QString datetime = KGlobal::locale()->formatDateTime( QDateTime::currentDateTime(), \
true); + QString datetime = KGlobal::locale()->formatDateTime( \
QDateTime::currentDateTime(), KLocale::ShortDate);
exportIFace->addEmptyLine();
exportIFace->addDataline(i18n("Monthly estimates (%1)", datetime),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic