Page 1 of 1
Interface translation *.ui
Posted: Tue Sep 03, 2019 10:40 am
by pietro_72_
Hello
How do you translate an interface (for example: OrthogonalProjections.ui) from English to Italian or another language
Re: Interface translation *.ui
Posted: Wed Sep 04, 2019 7:46 am
by andrew
You can use Qt tools to create a TS (translation source file):
1. lupdate File.ui -ts File_it.ts
2. Translate file File_it.ts (e.g. using Qt Linguist)
3. lrelease File_it.ts
4. Load translation file in source code:
Code: Select all
var translator = new QTranslator(qApp);
if (translator.load("File_it", "path/to/translationfile")) {
QCoreApplication.installTranslator(translator);
}
Re: Interface translation *.ui
Posted: Wed Sep 04, 2019 8:00 am
by pietro_72_
thank you