qm file


  1. Posts : 100
    Windows 10 21H2/Windows 11 21H2 (22000.100)
       #1

    qm file


    Hello, how can I please edit the qm file containing the language I would like to translate (qt_en.qm). Thank you
      My Computer


  2. Posts : 4,801
    Windows 11 Pro 64 Bit 22H2
       #2

    According to Chat GPT
    To edit a .qm file, which is a compiled translation file used in Qt applications, you typically need to follow these steps:

    Decompile the .qm file: .qm files are binary files compiled from .ts (Qt Linguist Translation Source) files. To edit them, you need to decompile them back to their source format, which is usually XML-based. You can use a tool called lconvert that comes with Qt to decompile .qm files.

    You can decompile a .qm file like this:

    css
    Copy code
    lconvert -i qt_en.qm -o qt_en.ts
    This command will generate a .ts file (qt_en.ts) from the compiled .qm file.

    Edit the .ts file: Once you have the .ts file, you can open it in a text editor or a specialized translation tool such as Qt Linguist. Qt Linguist provides a user-friendly interface for editing translations.

    Make your changes: In the .ts file, you'll find the original source text along with its translations. You can modify the translations to suit your needs.

    Compile the .ts file back to .qm: Once you've made your changes, you need to compile the .ts file back to a .qm file so it can be used by your Qt application.

    You can compile a .ts file like this:

    Copy code
    lrelease qt_en.ts
    This command will generate a new .qm file (qt_en.qm) from the modified .ts file.

    Replace the original .qm file: Finally, replace the original qt_en.qm file with the newly compiled one. Make sure to keep a backup of the original file in case you need to revert your changes.

    By following these steps, you should be able to edit the translations in your .qm file effectively.
      My Computer


  3. Posts : 100
    Windows 10 21H2/Windows 11 21H2 (22000.100)
    Thread Starter
       #3

    Ok thank you I will study
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:06.
Find Us




Windows 10 Forums