Quote:
Originally Posted by KevinH
This will depend if people have installed Qt themselves or compiled it themselves with Qt's internal translation file on their system in one of the languages supported by Qt and of course their locale settings. So you might get different answers from Linux users and from people who compile Qt themselves.
|
Regardless of their locale settings, Sigil makes no attempt to load the qtbase_XX.qm files. So even on my Linux system with the Qt translation package installed, the dialog in the OP's test failed to translate the buttons. The change I recently pushed to master should handle this. If the translation files are present (where Qt expects them to be), Sigil will load the one that corresponds to Sigil's selected interface language if it can find it. My system "passed the test" when I changed languages after making the change.
A couple of points to note:
1) I'm including the qtbase_xx.qm files that have corresponding sigil_xx.qm entries included in the Windows installer. Package size increase is negligible.
2) I'm only including the translations in the Windows installer that are available in the version of Qt5 that Windows Sigil is built against and ships with (currently Qt5.6.2). So there's really not that many. Many languages still may not see standard Qt message box buttons being translated in the forthcoming release of Sigil.
Quote:
Originally Posted by RbnJrg
I'm using Windows 7 -in spanish- and Sigil with the GUI also in spanish. In my system, besides the cases you mention, they are not translated...
|
Spanish is one of the languages for which Qt5.6.2 provides no base (qtbase_es.qm) translation file. Later versions of Qt do. You may have to track down a qtbase_es.qm file from a newer version of Qt5 and manually copy it to Sigil's "translation" folder. This seemed to work for me, but there could be glitches with using translation files that don't match Sigil's Qt version. The only other solution is to wait until Sigil (Windows) updates the version of Qt5 it's built against in some later release (it won't be the forthcoming one).