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

Clean up Gramps localization #1463

Merged
merged 11 commits into from
Jul 17, 2023
Merged

Clean up Gramps localization #1463

merged 11 commits into from
Jul 17, 2023

Conversation

jralls
Copy link
Member

@jralls jralls commented Jul 14, 2023

Using Pylint as a guide.

Includes removing python locale API deprecated in 3.7 and 3.11.

Important! In order to comply with PyLint's standards for variable names the Lexeme.f property is renamed to Lexeme.forms. This affects translations and I've updated all of them to match. It's unlikely to cause conflicts, but to be safe merge this PR as follows:

  1. flush the weblate repository and lock the project
  2. merge the weblate PR
  3. merge this PR and push to GitHub
  4. unlock the weblate project

@jralls jralls marked this pull request as draft July 14, 2023 23:51
@jralls jralls marked this pull request as ready for review July 16, 2023 16:00
@jralls jralls force-pushed the pylint branch 4 times, most recently from b297416 to 2cc2b32 Compare July 16, 2023 21:26
jralls added 11 commits July 17, 2023 20:52
For name clarity and to reduce the line count in grampslocale.py that
Pylint thinks is excessive.
Remove also GrampsLocale.format because it was there only to mirror
locale's API, and update GrampsLocale.format_string's signature to
match locale.format_string's post-python3.7.
Or comment ones that can't be fixed because their placement is to
prevent circular imports.
Short/duplicate variable names, missing docstrings, gratuitous
semicolons, excess returns, etc.
@Nick-Hall Nick-Hall merged commit ca809da into gramps-project:master Jul 17, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants