Skip to content
Evan Teran edited this page Jan 17, 2024 · 3 revisions

OK, so here's the first steps (assuming "fr" for french)

  1. install Qt linguist

  2. cd into the src directory of edb

  3. run lupdate $(find ./ -type f \( -name \*.cpp -o -name \*.h -o -name \*.ui \)) -ts res/translations/edb_fr.ts.
    This will produce the XML file for translation

  4. run linguist res/translations/edb_fr.ts

  5. edit src/CMakeLists.txt and update this section to include your new file:

    qt5_add_translation(QM_FILES
        # add translation files in /src/res/translations here
    )
    

    For example:

    qt5_add_translation(QM_FILES
        # add translation files in /src/res/translations here
        res/translations/edb_fr.ts
    )
    

Once this is complete, submit a PR to add this file to the repo

Clone this wiki locally