Qt.translate. Is it possible to get a translation of text without context? Or way to get list of all contexts?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Qt.translate. Is it possible to get a translation of text without context? Or way to get list of all contexts?

Post by Evgeniy »

Is it possible to get a translation of text without context?

For example:

Code: Select all

from FreeCAD import Qt
Qt.translate("Angle","Form")
Result:

Code: Select all

'Форма'
Is there any way to get a translation without using the context? In the example, this is "Angle".
Or maybe there is a way to get a list of all existing contexts?
Post Reply