Opening/Editing Qt Resource File (.rcc)
Asked Answered
K

2

9

I want to translate a program; but its language files (.qm) are in a .rcc file.

The program is not mine, so I haven't got any .qrc file.

Before asking this question, I have searched this site about this issue; but I don't attain anything.

Is there any way to extract/decompile it?

Kurtzman answered 24/2, 2016 at 7:57 Comment(0)
T
9

You can take my tool RccExtended - it based on the official Qt resource compiler with additional function to decompile binary resources.

Usage example:

cd \Path\To\MyQtResources\
rcc --reverse

Decompiler will unpack all .rcc files in the current directory, generate .qrc files and make.bat file to compile resources back to the binary format.

Territus answered 14/1, 2020 at 9:47 Comment(2)
Very nice. Thank you so much zed.Kurtzman
Nice work; thanks for writing this.Hauge
C
2

There isn't a supported way to decompile it as far as I'm aware, but it's a binary file format that can be read and handled. There's a nodejs example of how to read the file and extract PNGs on github: https://github.com/gcochard/png-extractor. It may be possible to extend that method out for the .qm files.

However there's other issues with attempting to add more translations to a Qt application without having the code, depending on the language you're attempting to add, how the developer has exposed the other languages etc.

Cumbrous answered 24/2, 2016 at 9:25 Comment(1)
As I understand it, there is no way to reach qm files which are in the .rcc file. Any way, thanks for your help.Kurtzman

© 2022 - 2024 — McMap. All rights reserved.