Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add automatic fixups to French in Weblate #6546

Closed
3 tasks done
Philippe-Choquette opened this issue Sep 26, 2024 · 3 comments
Closed
3 tasks done

Add automatic fixups to French in Weblate #6546

Philippe-Choquette opened this issue Sep 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Philippe-Choquette
Copy link
Contributor

Describe your suggested feature

French typography has specific standards which differ from English. Due to the limitations of some keyboards, the wrong characters are often.

Currently, the Weblate translation tool doesn't automatically correct these characters, which can lead to inconsistencies in translated strings. This could be solved permanently with Weblate's custom automatic fixups feature.

Apostrophes

English: Apostrophe ' (U+0027)
French equivalent: Right Single Quotation Mark (U+2019)
Suggested regex search & replace: (?<=\p{L})\s*'\s*(?=\p{L}) >

Quotation Marks

English: Quotation Mark " (U+0022)
French equivalent: Left-Pointing Double Angle Quotation Mark « (U+00AB) on opening, Right-Pointing Double Angle Quotation Mark » (U+00BB) on closing, and with both, No-Break Space (U+00A0) separating from the quoted text
Suggested regex search & replace: "\s*([^"]*?)\s*" > « $1 »

Other details

This is not an important issue (at all), but it could help uniformity in translations. Thank you!

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@Philippe-Choquette Philippe-Choquette added the enhancement New feature or request label Sep 26, 2024
@Bnyro
Copy link
Member

Bnyro commented Sep 27, 2024

Pull requests welcome. (I assume the fixup scripts need to be added to our GitHub repo and not via the Weblate web UI directly?)

@Philippe-Choquette
Copy link
Contributor Author

The customization files must be added into the Python module containing the Weblate customization, and then you must add the fully-qualified path within the settings.py file.

I'm honestly not at ease with making changes with my current coding knowledge level. Weblate already has built-in automatic fixes, including for French specifically, so this feedback is probably more suitable for their project directly.

@Philippe-Choquette
Copy link
Contributor Author

I've corrected all strings with the "Search and replace" tool of Weblate's Web UI for the time being

@libre-tube libre-tube locked and limited conversation to collaborators Sep 30, 2024
@Bnyro Bnyro converted this issue into discussion #6565 Sep 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants