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

Upgrade translation support #176

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

hasecilu
Copy link
Contributor

@hasecilu hasecilu commented Sep 12, 2024

As I mentioned here #152 (comment), the current implementation of translation here is not optimal and with future potential translations it could cause bad rendering on accented characters, see example below:

Screenshot_2024-09-10_12-28-40

  • In this PR I push again to rename the commands (Rename GUI commands to follow FreeCAD format #153), please note how other WB use the FreeCAD name specification.
    image
    image
    image
  • Updated the translations script because this WB doesn't make use of UI files, so we can simplify a little bit. Now I use the lupdate from Qt6 because it allows to update files with strings from Python and UI at the same time, so, if in the future is needed there would not be problems.
  • Include README file explaining the translation process.
  • Update Spanish translation (about 8 strings were added)

Superseeds #153
Fix #151

@hasecilu hasecilu force-pushed the enhancement/translation_support branch from dbb3193 to 415d5da Compare September 12, 2024 22:55
@hasecilu hasecilu marked this pull request as draft September 13, 2024 02:16
@hasecilu hasecilu force-pushed the enhancement/translation_support branch 8 times, most recently from 39c1308 to 282e07a Compare September 13, 2024 20:19
@hasecilu hasecilu marked this pull request as ready for review September 13, 2024 21:16
@hasecilu hasecilu force-pushed the enhancement/translation_support branch from 282e07a to 9ca551c Compare September 13, 2024 22:08
Also include `translations/README.md` file with instructions.
Migrate some strings marked with `translate()` to use
`QT_TRANSLATE_NOOP()`
@hasecilu hasecilu force-pushed the enhancement/translation_support branch from 9ca551c to d70bd7f Compare October 5, 2024 22:10
@looooo looooo merged commit 84237f0 into looooo:master Oct 5, 2024
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.

What's this? command opens wrong wiki article url
2 participants