-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Create infrastructure for translations #61220
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
base: main
Are you sure you want to change the base?
Conversation
* Reorganizes file structure for multilanguage support * Adds a language switcher to the top of the page * Adds language option to web pages command line builder
Thanks for starting this @melissawm
|
Hi @mroeschke !
|
Hi @melissawm regarding
No, currently a github action is set to run daily (could be modified as needed) to check if the content has changed, and if it does we copy the changes over at https://github.com/Scientific-Python-Translations/pandas-translations where the crowidn integration is set. A different action that runs once per week (can be modified as needed) checks if the translations are over a certain threshold of completion (by default 95%) and if there are new strings available a PR will be merged automatically over at https://github.com/Scientific-Python-Translations/pandas-translations with the translated content.
Regarding this, we could indeed pull the translations from the repo on build time to avoid having that content on this repo. And as @melissawm it would be a bit more involved for CI on this side, but we can make that work. |
Hi @mroeschke, I created a small PR on how we could implement bringing the translations from the Scientific Python Translations Organization It would need to be scheduled to run every (week? or so) and at that momento it would pull any translations that are available. This would of course rely on the work @melissawm is doing here, minus the files in the pt folder. |
# Web # | ||
####### | ||
web/pandas/content/en/pdeps | ||
web/pandas/content/en/static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@melissawm this should probably be an inverted rule so that everything except
!web/pandas/content/en/
!web/pandas/content/en/pdeps
!web/pandas/content/en/static
is ignored now that translations will not live on this repo
Hi all,
This PR is a proposal for adding the translations infrastructure to the pandas web page.
Following the discussion in #56301, we (a group of folks working on the Scientific Python grant) have been working to set up infrastructure and translate the contents of the pandas web site. As of this moment, we have 100% translations for the pandas website into Spanish and Brazilian Portuguese, with other languages available for translation (depending on volunteer translators).
What this PR does:
What this PR does not do:
This PR is a draft, as we are looking for feedback on the approach and appetite for this change. We would love to have more languages added, and we firmly believe having the translations infrastructure may help recruit new translators which will then see their work published on the actual website. We can also work on adding a "Translations team" to the pandas website if desired, with data pulled in automatically from Crowdin.
To build, this will require the following command:
If you want to check out other related work, please take a look at scipy/scipy.org#617
Some of this is still work in progress, and @goanpeca is working on automations to make synchronizing and updating the translations easier- he can also help answer questions on the overall integration with Crowdin.
Any feedback is appreciated, and we are happy to answer questions and discuss more if needed.
Cheers!
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.