[i18n] Localize "page not translated" banner
This is a followup to #6287. The goal will be to display the banner text in the appropriate local.
Tasks
- [x]
es- #6763 - [x]
fr- #7683 - [x]
pt- [x] #6300
- [x] #6339
- [x]
bn#7685 - [ ]
ja - [x]
uk#7684 - [ ]
zh
I'm working on this for pt but I can't see it working on the deploy preview.
Where should we put the file? Tried some alternatives, none of them worked:
- /layouts/pt/docs/td-content-after-header.html
- /layouts/docs/pt/td-content-after-header.html
- /layouts/docs/pt/docs/td-content-after-header.html
Thanks @vitorvasc. I haven't decided how to setup the locale-specific banner messages yet. So for now, just providing the updated text would be great! 🙌🏻
@chalin , here are the texts for the French and Spanish versions:
fr: Vous consultez la traduction automatique de la version anglaise car cette page n'a pas encore été traduite dans votre langue par notre équipe. Vous souhaitez apporter votre aide ? Consultez la page "Contribuer".es: Estás viendo la traducción automática de la versión en inglés, ya que esta página aún no ha sido traducida por nuestro equipo. ¿Te gustaría ayudar? Consulta la página 'Contribuir'
@iguitton - oh, now that I've read the messages that you provided, I see that there's been a misunderstanding. Fallback pages will have a single message that will not be changed (by the OTel.io site) whether the user decides to enable Google translate or not. So, if you wish to provide a translation, it should be a translation of the text given in https://github.com/open-telemetry/opentelemetry.io/pull/6287/files.
Hey @chalin,
Do you have any updates on how we want to set up the locale-specific banner messages?
I'd be happy to add the es translation for the banner.
Hi @danielmasegosa. Yes, create content/es/_includes/page-not-translated-msg.md. For an example, see https://github.com/open-telemetry/opentelemetry.io/blob/main/content/pt/_includes/page-not-translated-msg.md?plain=1. You'll want to create a Spanish version of https://github.com/open-telemetry/opentelemetry.io/blob/main/content/en/_includes/page-not-translated-msg.md?plain=1.
I'd be happy to do it! @chalin
I also started translating the contributing page into Spanish. Is there any issue tracking this kind of translation work, or should I just go ahead and create a PR?
@danielmasegosa - coordinate with @open-telemetry/docs-es-approvers (such as @krol3 and @theletterf) for the process used by the es locale. Cheers!
I've created the PR for this here
Hi @chalin, the PR for the Spanish banner is now merged.
We can mark the es check in this issue as done! 🚀
Added the French version in https://github.com/open-telemetry/opentelemetry.io/pull/7683.
We're still missing translations for the following locales:
ja@open-telemetry/docs-ja-approverszh@open-telemetry/docs-zh-approversbn@badhon495 @sajibAdhiuk@Andygol @idvoretskyi
Could you help us with the missing parts so we can tackle this issue? 🙌🏼
You can either:
- Open a PR adding the translated file under
content/[XX]/_includes/page-not-translated-msg.md(see this example), or - Simply reply to this issue with the translated message for this file, and I'll create the PR 🙂
Thanks!
@vitorvasc Feel free to pick translated into Ukrainian file here https://github.com/open-telemetry/opentelemetry.io/blob/79ae827c1c4ee4fee7559b2f8654bd35b381f4f1/content/uk/_includes/page-not-translated-msg.md or approve and merge ultimate Ukrainian translation 👉 https://github.com/open-telemetry/opentelemetry.io/pull/5891