Added Translation support and Spanish translation.#6
Open
EdgarJRobles wants to merge 210 commits intooddtopus:masterfrom
Open
Added Translation support and Spanish translation.#6EdgarJRobles wants to merge 210 commits intooddtopus:masterfrom
EdgarJRobles wants to merge 210 commits intooddtopus:masterfrom
Conversation
|
@EdgarJRobles does the translation work correctly ? |
luzpaz
reviewed
May 20, 2020
translations/Update code.txt
Outdated
| @@ -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 | |||
There was a problem hiding this comment.
Update code.txt ?
@EdgarJRobles Is this file name auto-generated or what you named it?
Author
There was a problem hiding this comment.
It's a comamnd that use to upgrade and generate TS file from python files.
Author
There was a problem hiding this comment.
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
25 tasks
Author
|
Same here, translation working as expected, there are still some strings on dialogs missing like @oddtopus We would love your feedback to make translation support happen. |
7b74519 to
9889fd2
Compare
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
|
STATS:
|
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
…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
… instead of just matching edges.
…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.
…ducers, and valves
…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
…wing incorrect item
…n flanges. Flange face now ends up exactly where edge of pipe was now. As a side note, I've noticed a more general bug with the "Remove equivalent pipe length" check box for all fittings when the pipe length is less than 2x the amount that needs to be trimmed. Not fixed here but I'll be loking at this next.
…e trim length is more than 1/2 the pipe length by creating a new dedicated pipe-trimming function, shortenPipeAtPort, that trims a pipe from a specified port. This fix was applied to doElbow single elbow insertion path (left as-is for the insertElbowBetweenThings path), doSocketElbow, doTee, doSocketTee, and doFlanges, which are all of the components that currently have a "trim pipe" option. While troubleshooting, I noticed an additional bug that sometimes caused a spurious component insertion at the origin caused by the try/except error catching being triggered after a component had already been inserted, causing a spurious additional component insertion at the origin. I changed it for all of these components to an if/else path to match the existing doElbow logic. I didn't change any of the other components, but this is something to keep an eye on if there are any other cases that can cause this bug to arise. It was being caused by a lack of a self.execute call in the __init__ function for the tee class in pFeatures so I added a self.execute line for all of the classes that lacked one in pFeatures.
Fix pipe trimming bug noted in issue #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Menu bar were translated.
object name were translated.