easyw / Manipulator

FreeCAD Manipulator WorkBench
61 stars 14 forks source link

(WIP) Adding the ability to translate Maniplulator WB #11

Open luzpaz opened 6 years ago

luzpaz commented 6 years ago

The commits in this branch are a WIP and any help is encouraged.

luzpaz commented 6 years ago

Bummer, still don't know how to use git well enough to avoid adding e09eccf which I already submit as #10 (No worries I'll actually rebase after #10 is merged).

8d8094b is lame because I artificially put it in a made up src/Tools/ dir so it would run, but it still doesn't run correctly. So it needs modifying. Perhaps you (@easyw) can help me with that? I've actually successfully got

pylupdate5 `find ./ -name "*.py"` -ts Resources/translations/Manipulator.ts`

to run and it pulls the translations from 6f6066a in to a new directory: Resources/translations. Unfortunately it also pulls translations from the oDraft.py file. So we need to figure out what to do with that one.

easyw commented 6 years ago

@luzpaz please find attached a previous translation done for an old version that a user sent me for French language. copie_fichiers_traduits.zip

May those could be useful. Maurice

luzpaz commented 6 years ago

@easyw what do you want to do about oDraft.py what is it's future ? Are you going to fork it to work more seamlessly with Manipulator?

luzpaz commented 5 years ago

@easyw :point_up_2:

luzpaz commented 5 years ago

When invoking the updatets.py script from root directory of ManipulatorWB i.e. python src/Tools/updatets.py

I get the following:

[foo@foo FreeCAD-ManipulatorWB]$ python src/Tools/updatets.py 
QMake version 3.1
Using Qt version 5.11.1 in /usr/lib
lupdate version 5.11.1
lupdate version 4.8.7
sh: pylupdate: command not found
sh: pylupdate4: command not found
pylupdate5 v5.11.2
Qt tools: qmake lupdate-qt4 pylupdate5
Traceback (most recent call last):
  File "src/Tools/updatets.py", line 144, in <module>
    main()
  File "src/Tools/updatets.py", line 131, in main
    dirs=os.listdir("src/Mod")
FileNotFoundError: [Errno 2] No such file or directory: 'src/Mod'

So I realize that the updatets.py script needs a little more tweaking to work with Manipulator. src/Mod is what it's looking for because in the FreeCAD core those where all the different WBs are that need to be translated. In this repo, we need the script to search the root directory of the repo. Please advise