Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate SteelColumn/momen Workbench #2

Closed
luzpaz opened this issue Feb 19, 2021 · 8 comments · Fixed by #3 or #4
Closed

Translate SteelColumn/momen Workbench #2

luzpaz opened this issue Feb 19, 2021 · 8 comments · Fixed by #3 or #4

Comments

@luzpaz
Copy link

luzpaz commented Feb 19, 2021

https://wiki.freecadweb.org/Translating_an_external_workbench
FreeCAD/FreeCAD-addons#187

@ebrahimraeyat
Copy link
Owner

Hi @luzpaz. I started to prepare the files. but some question:

  1. lupdate command don't act recursively, even if I add recursive option.
  2. in this step: Send the .ts file to a translation platform, how can I automatically sync that with GitHub?

thanks.

@luzpaz
Copy link
Author

luzpaz commented Feb 21, 2021

  1. What do you mean? Can you show an example? Also what version of Qt are you running?
  2. We use crowdin scripts to automatically interact with crowdin and github
    See https://wiki.freecadweb.org/Crowdin_Scripts
    We should create a template for external workbench devs

@luzpaz
Copy link
Author

luzpaz commented Sep 10, 2024

bump @ebrahimraeyat

//cc @hasecilu @kaktusus

@hasecilu
Copy link
Contributor

Hi, currently I got some errors at startup, maybe with an older AppImage I'm able to test it, I could start checking it like in 3 days

12:43:25  Init:      Initializing /home/uli/.local/share/FreeCAD/Mod/SteelColumn... failed
12:43:25  ----------------------------------------------------------------------------------------------------
12:43:25  Traceback (most recent call last):
  File "<string>", line 142, in RunInitGuiPy
  File "/home/uli/.local/share/FreeCAD/Mod/SteelColumn/InitGui.py", line 28, in <module>
    Gui.addWorkbench(SteelColumnWorkbench())
                     ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uli/.local/share/FreeCAD/Mod/SteelColumn/InitGui.py", line 8, in __init__
    import section
  File "/home/uli/.local/share/FreeCAD/Mod/SteelColumn/section.py", line 12, in <module>
    from PySide2.QtGui import *
  File "/usr/lib/python3.12/site-packages/PySide2/__init__.py", line 107, in <module>
    _setupQtDirectories()
  File "/usr/lib/python3.12/site-packages/PySide2/__init__.py", line 58, in _setupQtDirectories
    import shiboken2
  File "/usr/lib/python3.12/site-packages/shiboken2/__init__.py", line 30, in <module>
    _init_pyside_extension()
    ^^^^^^^^^^^^^^^^^^^^^^
NameError: name '_init_pyside_extension' is not defined
12:43:25  ----------------------------------------------------------------------------------------------------
12:43:25  During initialization the error "name '_init_pyside_extension' is not defined" occurred in /home/uli/.local/share/FreeCAD/Mod/SteelColumn/InitGui.py
12:43:25  Please look into the log file for further information

@luzpaz
Copy link
Author

luzpaz commented Dec 3, 2024

@ebrahimraeyat 👆

@luzpaz
Copy link
Author

luzpaz commented Dec 9, 2024

bump

@hasecilu
Copy link
Contributor

hasecilu commented Dec 9, 2024

Tested some days ago and replacing PySide2 with PySide works but does that change breaks old versions of FreeCAD? I hope people is on 1.0 now.

@ebrahimraeyat
Copy link
Owner

Tested some days ago and replacing PySide2 with PySide works but does that change breaks old versions of FreeCAD? I hope people is on 1.0 now.

It did not work with earlier version of FreeCAD, I have v 0.19 and in starts it gives me error:

No module named 'PySide.QtWidgets'
"C:\Users\ebrahim\AppData\Roaming\FreeCAD\Mod\SteelColumn\column_type.py", line 7, in <module>
    from PySide.QtWidgets import *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants