[Interest] Issues loading Qt's meta catalog translation files

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue Jul 7 02:09:13 CEST 2020


Il 02/07/20 18:16, Julius Bullinger ha scritto:
> 
> from the Qt Linguist documentation [1]:
> 
>> In Qt 4, there is one big, monolithic .qm file per locale. For > example, the file qt_de.qm contains the 
> German translation of all > libraries. > > In Qt 5, the .qm files were 
> split up by module and there is a > so-called meta catalog file which 
> includes the .qm files of all > modules. The name of the meta catalog 
> file is identical to the name > of Qt 4's monolithic .qm file so that 
> existing loader code works as > before provided all included .qm files 
> are found.
> 
> However, loading the meta catalog with QTranslator doesn't seem to work:
> 

I think the key part of the sentence is "provided all included .qm files 
are found". If you open up your qt_de.qm, chances are it's trying to 
reference .qm files for modules you don't have installed (e.g. QtScript).

See also the discussion here:

> https://doc.qt.io/qt-5/internationalization.html#available-catalogs

HTH,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200707/8a21af0f/attachment.bin>


More information about the Interest mailing list