Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, January 2008
AW: QObject::tr() and float values


Message 1 in thread

for your information: i've reported this to the trolls, and you can watch (and/or vote on) it here:
http://trolltech.com/developer/task-tracker/index_html?id=196596+&method=entry
http://trolltech.com/customer/task-tracker/index_html?id=196596+&method=entry

Cheers,
Peter

> -----Ursprüngliche Nachricht-----
> Von: Gordon Schumacher [mailto:gordon@xxxxxxxxx] 
> Gesendet: Freitag, 25. Januar 2008 16:41
> An: Qt-Interest
> Betreff: QObject::tr() and float values
> 
> The documentation for tr() documents the method for inflecting the 
> translated phrase properly for the number the user passes in - the 
> tr(char const*, char const*, int) version.
> 
> I have a situation where I must handle a floating-point 
> number - imagine 
> a string that reports "20.5 degrees Celsius", for instance.  
> My quandary 
> is that in English, "1.5 apples" gets a plural, but I am far 
> from sure 
> that this is true for all languages - much less how to deal with 
> languages which have more numerical classes than singular and plural 
> (i.e., Arabic).
> 
> Has anybody out there had to deal with this?  Could this, 
> perhaps, get 
> added to the tr() function in a future version of Qt?
> 
> Thanks much!

--
 [ signature omitted ]