Skip to content

Added Translation support and Spanish translation.#6

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

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

Conversation

@EdgarJRobles
Copy link
Copy Markdown

Menu bar were translated.
object name were translated.

@luzpaz
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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 March 3, 2026 21:40
Numerous component additions/improvements and DN/NPS selector improvement
…sertion form

-Corrected a 1 degree rotation bug when flanges are inserted which caused bolt hole misalignment
-Corrected flange thickness for weld neck and slip on flanges
…he need for numerous property tables for various schedule/class combinations
…tters "C" "S" or "V".

-Improve Branch icon to accurately represent how it looks.
Corrected butt weld elbow schedule tables with standard elbow sizes and schedueles
Created new FreeCAD Wiki page for Quetzal and added link
…insertion forms which removes pipe length to fitting center, similar to the check box already present on the flange insertion form.
…t is possible, when the insertion form is loaded the code will attempt to automatically match the pipe schedule and size. For objects where automatic schedule matching isn't possible or practical (fittings with socket weld options and flanges) the code will autmatically match and select the matching pipe size once a schedule or rating selection is made.
…erse mapping memory \n feature(dododialogs): add preview images
… new style of insertion form. I also made some changes to the preview image generator, so that files are created with only the DN size, not the NPS size if it is selected. It could still use some testing to make sure it works for all cases.
…s so move it back to the dodoDialogs.py document. Also fix reducer CSV tables.
…ge csv file

-Remove automatic grade selection from components with socket weld and butt weld options.
…ts while generating preview.

Fix bug with some reducing tees to render properly
Fix bug on XXH reducer tables
Add images for all objects currently accessible
Added macro for mass preview image generation to the folder
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.