QTranslator: Which Qt elements translated by default?

ekhumoro ekhumoro at gmx.com
Sun Jun 18 12:45:56 BST 2023


On 18/06/2023 11:16, c.buhtz at posteo.jp wrote:
> Hi,
>
> when using QTranslator it is useful to have standard buttons like
> Yes/No/Cancle translated into the desired language.
>
> Beside such buttons what else is influenced by the translator. Which Qt
> elements do use strings that would be translated when using QTranslator?

If you have Qt Linguist installed, it can display all the elements that have default translations. To do this, select
File > Open and navigate to the translations directory. Then select "All Files (*)", so you can see all the *.qm files.
The one you'll be most interested in is qtbase_de.qm. This contains over 7500 translations, which should cover almost
all the user-visible strings provided by Qt. Anything else should be in module-specific translation files such as
qtmultimedia_de.qm.



More information about the PyQt mailing list