PDA

View Full Version : Context Menus



rodlbr
6th September 2009, 14:00
Hi, can somebody help me with context menus? I dont know if it is an installation issue, some configuration, some flag or even a bug, but when I access context menus in any of my applications fields, they appear in english, while in qt designer and linguist they appear in the language of my OS just like they should be.
This issue is happening in Mac Leopard, Ubuntu and Windows, even running different Qt builds of Qt on them.
Im using 4.5.2 and 4.5.1, I dont remember if this happened in 4.5.0.
Thanks in advice for any help with it.

wysota
6th September 2009, 17:13
We'd have to see some code of yours. In general check if you're calling tr() on menu items when setting text on them.

rodlbr
6th September 2009, 20:41
Thanks for the help wysota, I think I was not much clear about the context menu I was talking about... beginner thing...
The menus in question are the default menus from a qplaintextedit or lenedit (copy, paste, ...) that are not automatically translated to my OS language (copiar, colar, ...) i didnt change anything in code, and previewing them at Designer gives me the menus correctly translated.
Thanks again for the attention.

wysota
6th September 2009, 21:14
Do you have the translations for Qt in your language installed in your application? They are called qt_languageid.qm (i.e. qt_de.qm for german).

rodlbr
7th September 2009, 16:30
Solved!!! Thanks wysota, I didnt realize that I should load a translator for this issues, thought that the default OS locale would do it by his own. Thanks again!