[maemo-developers] call_fi_call_type_cellular value in Qt?

From: Alberto Mardegan mardy at users.sourceforge.net
Date: Thu Aug 5 00:03:56 EEST 2010
On 08/04/2010 10:51 PM, Felipe Crochik wrote:
> What is the best way to get the localized version of, for example,
> “call_fi_call_type_cellular” in qt?

gettext is a C function which comes with GNU libc, so it's available for 
Qt applications too. You'll need to use dgettext() and specify the 
catalog file where that string is located, too.

Note the result is an UTF-8 string, so you'll have to pass it to 
QString::fromUtf8().

Ciao,
   Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!
More information about the maemo-developers mailing list