Re: Brazilian Portuguese Translation
Posted by
LordOfBikes on
Oct 29, 2013; 9:48pm
URL: https://forum.librecad.org/Brazilian-Portuguese-Translation-tp5709045p5709099.html
Hi Bruno,
the translation files are build in the postprocess script, which should be called at the end of the application build process and is located in the scripts folder. Which script is used depends on your operating system.
This script calls the lrelease tool which generate qm files from the ts files. The qm files, librecad_??.qm and plugins_??.qm should be in the resources/qm/ folder inside the application folder. So you can check, if these files are up to date. Replace the ?? with the code of your language.
You can generate the qm files manually with the Qt Linguist tool. Open a ts file in Qt Linguist and use File->Release to generate the associated qm file. Copy the qm files into the resources/qm folder to use it.
Beside the LibreCAD qm files you need a qt_??.qm file. LibreCAD uses standard dialogs from Qt libraries, e.g. the file open/save dialogs. The button labels are still in English, if you don't have the qt_??.qm file. You have to look on the Qt site or your Qt installation if there is a localisation file for your language. If a qm file exists, copy it into the resources/qm folder too. If there is no qt_??.qm file for your language, one option is to find the qt_en.ts file in the Qt sources, copy it to qm_??.ts and translate it with Qt Linguist.
Hope, this answers some of your questions.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution