Translation / Localization
Posted: Tue Nov 10, 2015 3:07 pm
[edited]
I've setup a very early support for 'localization'. It will be enhanced over time.
Translation files
Copy an existing '.ts' file from the in translations folder: https://github.com/CloudCompare/CloudCo ... anslations.
Rename it 'CloudCompare_XX.ts' where XX is a shortcut for your language.
Then open the resulting '.ts' file with Qt Linguist (see below) and use the 'Edit > Translation File Settings' menu to change the target language. Then you can start the translation over.
Don't forget to drop a message in this thread so that other users know which languages are currently translated.
Translating
Translation is done with Qt Linguist (see the documentation here: http://doc.qt.io/qt-5/linguist-translators.html). Simply install the latest version of Qt to get it (you'll found linguist.exe in the 'bin' folder).
Then simply open the right '.ts' file in Qt Linguist and you can start the translation job! Start by the 'MainWindow' component (this is the main GUI of CloudCompare). You can easily see how the work progresses (see below).
Releasing / testing
Once done or any time you want to test the result for real, you have to 'release' the translation file (use the 'File > Release' menu). This will generate a '.qm' file next to the original '.ts' file. This file can be copied into the '/tr' folder next to CloudCompare's executable.
You will need the latest release of CloudCompare. For now only the dialog texts can be translated. We still need to update all the in-code strings.
Sharing the result
Once the translation job is done, don't forget to share the result!
Either send me the '.ts' translation file by email (admin [at] cloudcompare.org) or make a 'Pull request' on github.
I've setup a very early support for 'localization'. It will be enhanced over time.
Translation files
Copy an existing '.ts' file from the in translations folder: https://github.com/CloudCompare/CloudCo ... anslations.
Rename it 'CloudCompare_XX.ts' where XX is a shortcut for your language.
Then open the resulting '.ts' file with Qt Linguist (see below) and use the 'Edit > Translation File Settings' menu to change the target language. Then you can start the translation over.
Don't forget to drop a message in this thread so that other users know which languages are currently translated.
Translating
Translation is done with Qt Linguist (see the documentation here: http://doc.qt.io/qt-5/linguist-translators.html). Simply install the latest version of Qt to get it (you'll found linguist.exe in the 'bin' folder).
Then simply open the right '.ts' file in Qt Linguist and you can start the translation job! Start by the 'MainWindow' component (this is the main GUI of CloudCompare). You can easily see how the work progresses (see below).
Releasing / testing
Once done or any time you want to test the result for real, you have to 'release' the translation file (use the 'File > Release' menu). This will generate a '.qm' file next to the original '.ts' file. This file can be copied into the '/tr' folder next to CloudCompare's executable.
You will need the latest release of CloudCompare. For now only the dialog texts can be translated. We still need to update all the in-code strings.
Sharing the result
Once the translation job is done, don't forget to share the result!
Either send me the '.ts' translation file by email (admin [at] cloudcompare.org) or make a 'Pull request' on github.