Skip to content

Comments

Added Translation support and Spanish translation.#6

Open
EdgarJRobles wants to merge 165 commits intooddtopus:masterfrom
EdgarJRobles:master
Open

Added Translation support and Spanish translation.#6
EdgarJRobles wants to merge 165 commits intooddtopus:masterfrom
EdgarJRobles:master

Conversation

@EdgarJRobles
Copy link

Menu bar were translated.
object name were translated.

@luzpaz
Copy link

luzpaz commented May 20, 2020

@EdgarJRobles does the translation work correctly ?

@@ -0,0 +1 @@
pylupdate5 ./../InitGui.py ./../fCmd.py ./../CPipe.py ./../CUtils.py ./../dodoDialogs.py ./../dodoPM.py ./../fForms.py ./../fObservers.py ./../CFrame.py ./../pFeatures.py ./../pCmd.py -ts ./dodo_es-ES.ts No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update code.txt ?
@EdgarJRobles Is this file name auto-generated or what you named it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a comamnd that use to upgrade and generate TS file from python files.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from Pyqt5

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update code.txt ?
@EdgarJRobles Is this file name auto-generated or what you named it?

It is not auto-generated, i do it manually

Added Pyside2 support translate dodo external workbench from FreeCAD.

Added Spanish translation.

Added TS and QM

spanish translation files

Added headers and more translation functions

Added QT_TRANSLATE_NOOP definition

Added addproperty translation

Minor  addproperty translations

Minor  addproperty translations

Adde more translated lines

Addobject name translated
Release last revision es-ES QM file

Fixed typo on addproperty

Wrong typo syntax

Added locale update function

Added locale update function

Fixed addObject translation / Erased context in ts file

-Fixed addObject translation.
-Erased not used context formats in TS file.

Translate Drop down headers

Translate drop down headers

Minor accent correction
@EdgarJRobles
Copy link
Author

EdgarJRobles commented Mar 14, 2024

I can confirm the translation works on FreeCAD 0.22.0, Libs: 0.22.0devR36338 @luzpaz @hasecilu
Screenshot_20240313_214213
Screenshot_20240313_215658

@hasecilu
Copy link

Same here, translation working as expected, there are still some strings on dialogs missing like self.labName = QtGui.QLabel("(seleziona un oggetto)", self).

@oddtopus We would love your feedback to make translation support happen.

@hasecilu hasecilu force-pushed the master branch 2 times, most recently from 7b74519 to 9889fd2 Compare March 14, 2024 21:37
It's needed for at the time of extracting the strings for translation
the strings are separated by context making easier translation process.
- makeHeader() MenuText & ToolTip
- Dialogs
- Transactions (undo/redo)
- Tree View Labels
- Observers messages
@hasecilu
Copy link

STATS:

  • 49 PrintMessage()
  • 19 PrintWarning()
  • 55 PrintError()
  • 51 openTransaction()
  • 129 setText()

EdgarJRobles and others added 15 commits March 16, 2024 21:15
Addobject name translated
Release last revision es-ES QM file
Wrong typo syntax
Added locale update function
Added Pyside2 support translate dodo external workbench from FreeCAD.

Added Spanish translation.

Added TS and QM

spanish translation files

Added headers and more translation functions

Added QT_TRANSLATE_NOOP definition

Added addproperty translation

Minor  addproperty translations

Minor  addproperty translations

Adde more translated lines

Addobject name translated
Release last revision es-ES QM file

Fixed typo on addproperty

Wrong typo syntax

Added locale update function

Added locale update function

Fixed addObject translation / Erased context in ts file

-Fixed addObject translation.
-Erased not used context formats in TS file.

Translate Drop down headers

Translate drop down headers

Minor accent correction
It's needed for at the time of extracting the strings for translation
the strings are separated by context making easier translation process.
- makeHeader() MenuText & ToolTip
- Dialogs
- Transactions (undo/redo)
- Tree View Labels
- Observers messages
EdgarJRobles and others added 30 commits November 30, 2025 20:10
fix(fForms): include TSLOT profile
Removed profilepath variable hardcode for testing
…reversing and rotating but I'm working on that.
…hich will connect any two pipe objects at the indicated ports
Correct wall thickness tables and create tee insertion function
-Added a port direction property for each port of each object, which lets you much more reliably connect two ports of objects in the correct orientation. The alignTwoPorts function now uses this property by default to align the ports on two pipe objects.
--Note that I didn't add this for the Terminal Adapter or U-bolt objects, as the terminal adapter object doesn't have ports (not sure why) and I can't really tell what the U-bolt object's port property is supposed to reflect.
-Added a doReduct function so that the reducer creation process mirrors that of all of the other pipe objects, and moved the placement logic from the pForms file to the doReduct function in pCmd. Additionally for reducers, added radio buttons to the insertion form so you can select whether you want the reducer to be connected on the large or small end.
-For caps, added the alignTwoPorts function call to reliably connect caps in the proper orientation
Fix UI elements overlaping issue.
… Issue number 14 by adding getAttachmentPoints and getSelectionPortAttachment functions to automatically find the closest port to the selected face, edge, or vertex.

--Changed only for Pipe, Tees, Caps, and Reducers. Ells have some trickier logic that I need to understand before changing
-Changed insertion logic to only insert a single component to the first selected item, rather than looping through all selected edges/objects and inserting components on all of them. This should lead to fewer unintentional insertions.
…re initially closely aligned or anti-aligned to keep them from blasting off into space

-Updated flange insertion logic to use alignTwoPorts to more reliably connect to existing piping components
-Updated Reverse function for reducer, flange on insertion form
-Corrected "remove pipe equivalent length" for flange to remove raised face thickness
-Changed doElbow function's logic when only a single object is selected to use getAttachmentPorts function to more reliably connect correctly. I left the makeElbowBetweenThings path alone.
…nserted on raised face or weld end

-Added port directions to Valve class
Component insertion improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.