Hi All ,
I need to translate my application , everithing worked fine, till i had to translate static string array.
I have a ".h" file with this decleratrion
};
I'm inserting those string into QComboBox in a .cpp file
for ( int i=0; i < 4 i++ )
{
cboxBombType->insertItem( vecBombType[i], i);
}
static QString vecBombType[4] = {
QObject::trUtf8("None"),
QObject::trUtf8("Explosive"),
QObject::trUtf8("Flare"),
QObject::trUtf8("Smoke")
};
I'm inserting those string into QComboBox in a .cpp file
for ( int i=0; i < 4 i++ )
{
cboxBombType->insertItem( vecBombType[i], i);
}
To copy to clipboard, switch view to plain text mode
I've translated "Explosive" to something else , but keep on getting "Explosive" string.
Beside this all translation are OK.
How can i fix this?
Bookmarks