-
-
Notifications
You must be signed in to change notification settings - Fork 181
Modernize i18n workflow #1999
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: 6.0
Are you sure you want to change the base?
Modernize i18n workflow #1999
Conversation
|
Failing checks should be fixed in plone/plone.api#591 when it is merged and I update the git submodule tip for |
| [`i18ndude`](https://pypi.org/project/i18ndude/) should be used to create a script which searches particular packages for translation strings. | ||
|
|
||
| If you have created your add-on using [bobtemplates.plone](https://pypi.org/project/bobtemplates.plone/), then you will already have a script `update.sh` inside your package and a script `update_locale` in your buildout to extract the messages from your code. | ||
| If you have created your add-on using [bobtemplates.plone](https://pypi.org/project/bobtemplates.plone/), then you will already have a script {file}`update.sh` inside your package and a script {file}`update_locale` in your {term}`buildout` to extract the messages from your code. |
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.
| If you have created your add-on using [bobtemplates.plone](https://pypi.org/project/bobtemplates.plone/), then you will already have a script {file}`update.sh` inside your package and a script {file}`update_locale` in your {term}`buildout` to extract the messages from your code. | |
| If you have created your add-on using [bobtemplates.plone](https://pypi.org/project/bobtemplates.plone/), then you will already have a script {file}`update.sh` inside your package and a script {file}`update_locale` in your {term}`buildout` to extract the messages from your code. | |
| If you have created your add-on or projects using [cookieplone](https://github.com/plone/cookieplone), then you will already have a `make i18n` command in the `backend` folder that extracts the messages from your code. | |
| This command will call `i18ndude` under the hood using `uvx`, without you needing to install it separatedly. |
|
|
||
| (translating-text-strings-installing-i18ndude-label)= | ||
|
|
||
| ### Installing i18ndude |
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.
I would remove this entire section as we are ditching buildout. And add something like "You can run i18ndude using uvx i18ndude. "
@erral @jensens I started this PR from the comment in #1757 (review).
I'll revert these changes in that PR to separate these two matters so y'all can focus on what needs to be done. Thank you for your attention to this!
📚 Documentation preview 📚: https://plone6--1999.org.readthedocs.build/