Grubuntu / PieMenu

Fork of PieMenu, with some improvements
8 stars 4 forks source link

help for translation #38

Closed Grubuntu closed 6 months ago

Grubuntu commented 6 months ago

I'm trying to make the translation files in French: I managed to generate the .ts file, and translate with Qt Linguist. I generate the .qm file and drop the 2 files in the translation folder of PieMenu and if I set the language of FreeCAD to French, but the translation does not take place in PieMenu. I screwed up somewhere again ?

translationFR.zip

hasecilu commented 6 months ago

Hi, I'm checking your file and I think it could be because of the relative paths

    <message>
        <location filename="../../InitGui.py" line="3067"/>
        <source>Invalid shortcut ! Current global shortcut : </source>
        <translation>¡Atajo inválido! Atajo global actual: </translation>
    </message>

French

    <message>
        <location filename="../../../AppData/Roaming/FreeCAD/Mod/PieMenu/InitGui.py" line="3146"/>
        <source>Invalid shortcut ! Current global shortcut : </source>
        <translation>Raccourci invalide ! Raccourci global actuel : </translation>
    </message>

If you run FreeCADGui.supportedLocales() on the FreeCAD console all available languages code appear, for French is fr. When you run the script you should be on PieMenu/Resources/translations directory.

image

Grubuntu commented 6 months ago

Great, Thank you very much it works.