|
From: Coda H. <chi...@gm...> - 2009-11-03 18:56:23
|
On Tue, Nov 3, 2009 at 8:38 AM, Roland Zoder <rz...@ra...> wrote:
>
> Hi all,
>
>
>
> I have some problems getting a localized version of the
>
> QxtCountryComboBox. Though my locale is German (and I also tried to
>
> explicitly set that inside my Qt application) I always get english
>
> country names (which is somewaht annoying for my - german - users). If I
>
> understood correctly there should be german names on a german system?!?
>
>
>
> FWIW: Qt 4.5.1, libqxt 0.5.0 on Win Vista.
We read the country names from QLocale the first time the model is
populated. Make sure that QLocale::language() returns the right value
before constructing the first QxtCountryModel (that is, the first
QxtCountryComboBox) in your application. If this still doesn't work,
check to confirm that calling QApplication::translate("QLocale",
"Germany") returns the right string; if it doesn't, the bug is
possibly in Qt itself.
attn: developers: Storing the localized versions in static storage
seems like a bad idea; this won't handle changing locales at run-time.
This should probably be fixed for 0.6.
/s/ Adam
|