[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: Karm question
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2004-07-31 17:21:20
Message-ID: 200407311920.41140.nicolasg () snafu ! de
[Download RAW message or body]
On Saturday 31 July 2004 19:13, Michal Rudolf wrote:
> karm.po
> #: rc.cpp:24
> #, no-c-format
>
> <p>You can choose to output time values in fractions of an hour or in
> minutes.</p>\n
> <p>For example, if the value is 5 hours and 45 minutes, then the Decimal
> option would output <tt>5.75</tt>, and the Hours:Minutes option would
> output <tt>5.5</tt></p>
>
> Is that really correct? How is 5.5 related to 5h 45min.?
I see following code in kdepim/karm/karmutility.cpp that format a date in one
of the 2 formats:
QString formatTime( long minutes, bool decimal )
{
QString time;
if ( decimal ) {
time.sprintf("%.2f", minutes / 60.0);
time.replace( '.', KGlobal::locale()->decimalSymbol() );
}
else time.sprintf("%ld:%02ld", minutes / 60, labs(minutes % 60));
return
}
So as far as I understood, the non-decimal option should be 5:45 (so the
example would have a wrong separator and a wrong number.)
However the question is if this is enough for breaking the message freeze. (No
idea.)
Have a nice day!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic