[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    locale settings by language
From:       Tomasz Grobelny <grotk () poczta ! onet ! pl>
Date:       2005-07-25 23:31:39
Message-ID: 200507260131.40594.grotk () poczta ! onet ! pl
[Download RAW message or body]

Is it possible to get locale settings for a given language? For example I want 
to format date in English while my current locale is Polish. If there is no 
appropriate function would such a code be safe (if it works at all):
QString oldlang=KGlobal::locale()->language();
KGlobal::locale()->setLanguage("en");
QString dateInEnglish=KGlobal::locale()->formatDate(qdate);
KGlobal::locale()->setLanguage(oldlang);

-- 
Regards,
Tomasz Grobelny
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic