[maemo-developers] call_fi_call_type_cellular value in Qt?
From: Felipe Crochik felipe at crochik.comDate: Thu Aug 5 00:21:21 EEST 2010
- Previous message: call_fi_call_type_cellular value in Qt?
- Next message: call_fi_call_type_cellular value in Qt?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Now the second part of the problem: what is the "catalog"? I am getting this string from the profile files at "/usr/share/osso-rtcom/" and the strings should be the "telepathy account names" (Cellular, Skype, Facebook, ... )... Some of them are the actual names (e.g. "Facebook") and some of them are entries to what I imagine is the "localized" version of the string (e.g. "call_fi_call_type_cellular"). Thanks again Felipe -----Original Message----- From: maemo-developers-bounces at maemo.org [mailto:maemo-developers-bounces at maemo.org] On Behalf Of Alberto Mardegan Sent: Wednesday, August 04, 2010 5:04 PM To: maemo-developers at maemo.org Subject: Re: call_fi_call_type_cellular value in Qt? 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! _______________________________________________ maemo-developers mailing list maemo-developers at maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: call_fi_call_type_cellular value in Qt?
- Next message: call_fi_call_type_cellular value in Qt?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]