-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Move portuguese content to pt-br to correct shortcode problems and add redirection #27413
Conversation
/assign @sftim As we spoke. I'm waiting for the preview to be generated so we can see if this works :D |
Deploy preview for kubernetes-io-master-staging ready! Built with commit 4f134c4 https://deploy-preview-27413--kubernetes-io-master-staging.netlify.app |
Deploy preview for kubernetes-io-master-staging ready! Built with commit 4c42fa2 https://deploy-preview-27413--kubernetes-io-master-staging.netlify.app |
@rikatz thanks! /lgtm |
LGTM label has been added. Git tree hash: 27c7f27bbad3d61a05f207abc6f62405c69144eb
|
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.
A couple of minor things.
/label tide/merge-method-squash @sftim everything corrected here :) |
I am happy to see the site build warning errors removed. I will review the changes. |
Hi @rikatz , Page previews: https://deploy-preview-27413--kubernetes-io-master-staging.netlify.app/pt-br/blog/ Note: The image is missing from the community page? Note: I saw a warning about the URL? |
Hey @kbhawkey thanks for the double checking and getting those problems.
The string exists in docsy theme (themes/docsy/i18n/pt-br.toml) but it's not translated for any language. Those are the new short codes, probably other localizations would want to translate them as well. I've added them to i18n/pt-br.toml just to make it work, but if you think it's better I can open the PR directly to docsy repo :)
I have no strong opinion on this. I guess as soon as no one wants to translate to Portuguese from Portugal, we can keep the dropdown item as is, and then it's only simple change in config.toml if we decide for something different later.
EDIT: Issue opened: #27446
Which seems to be a shortcode not translated yet in any other language :D Can do a followup as well (as @sftim asked me to keep this PR related to the location movement). So:
I'm more than ok (and I think it's actually right!) to wait until the doc freeze ends and v1.21 gets released 🥳 |
/hold cancel |
Adding some comments here about the safeness of this PR:
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kbhawkey The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: 373291e94579270af4565dc5a4ec0400f09dce84
|
After Hugo 0.76 the i18n Go library has been migrated, breaking languages like portuguese in some parts (as it requires the full locale like pt-br instead of only pt).
This PR migrates the Portuguese translation to pt-br and adds a redirect in netlify to users that might have bookmarked the documentation in portuguese to be redirected to /pt-br/