Skip to content

Simplify Translation workflow and update translation catalog#306

Merged
nabobalis merged 4 commits intosunpy:mainfrom
SilverRainZ:translation-workflow-simplify
Jul 31, 2025
Merged

Simplify Translation workflow and update translation catalog#306
nabobalis merged 4 commits intosunpy:mainfrom
SilverRainZ:translation-workflow-simplify

Conversation

@SilverRainZ
Copy link
Copy Markdown
Contributor

I tried the command python setup.py extract_messages -o ablog/locales/sphinx.pot given by docs/manual/ablog-i18n.rst, but I got an error because the source dir of ablog has changed. I think we can persist these paths to setup.cfg like sphinx_rtd_theme does.

I also deleted all the *.mo files, for they are binaries that should not be tracked by git. If this breaks anything, please let me know.

Finally, I run extract_message and update_catalog for all languages, and cause come translation mismatch for the original text change their location, I only know English and Chinese so I can fix them, for other language I can make some modifications based on my guesswork, and I don't think it's a big problem. What do you think?

@SilverRainZ SilverRainZ force-pushed the translation-workflow-simplify branch from 1948cb7 to 17fda9e Compare July 31, 2025 13:39
@nabobalis
Copy link
Copy Markdown
Member

pre-commit.ci autofix

@nabobalis
Copy link
Copy Markdown
Member

Thank you again @SilverRainZ, this looks great.

@nabobalis nabobalis merged commit 0a3aa03 into sunpy:main Jul 31, 2025
2 checks passed
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.

2 participants