Skip to content

fix(theme-translations): Add missing Portoguese (pt-PT) theme translations#11167

Closed
mansil wants to merge 1 commit intofacebook:mainfrom
mansil:patch-1
Closed

fix(theme-translations): Add missing Portoguese (pt-PT) theme translations#11167
mansil wants to merge 1 commit intofacebook:mainfrom
mansil:patch-1

Conversation

@mansil
Copy link

@mansil mansil commented May 9, 2025

Finished translation to pt-PT

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Test Plan

Test links

Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/

Related issues/PRs

Finished translation to pt-PT
@mansil mansil requested review from Josh-Cena and slorber as code owners May 9, 2025 15:51
@facebook-github-bot
Copy link
Contributor

Hi @mansil!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify
Copy link

netlify bot commented May 9, 2025

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit a9c8065
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/681e249d613b0e000858b321
😎 Deploy Preview https://deploy-preview-11167--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

github-actions bot commented May 9, 2025

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 67 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 50 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 73 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 61 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🔴 45 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 61 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 73 🟢 100 🟢 100 🟠 86 Report

@slorber slorber added the pr: translations This PR is related to Docusaurs core, theme or website translations label May 9, 2025
@slorber slorber changed the title Update theme-common.json fix(theme-translations): Add missing Portoguese (pt-PT) theme translations May 9, 2025
Copy link
Collaborator

@slorber slorber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Can you please sign the CLA? (can't merge without this)

Copy link
Contributor

@marcelocell marcelocell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here a feedback about some translations.

"theme.tags.tagsListLabel": "Tags:",
"theme.tags.tagsPageLink": "Ver todas as Tags",
"theme.tags.tagsPageTitle": "Tags"
"theme.lastUpdated.lastUpdatedAtBy": "Última atualização {atDate} {byUser}",
Copy link
Contributor

@marcelocell marcelocell Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note:
{atDate} = " a {date}" (should be " em {date}")
{byUser} = " por {user}"
(both starts with space)

So:
"Última atualização{atDate}{byUser}" = "Última atualização em {date} por {user}"
The both space from "theme.lastUpdated.lastUpdatedAtBy" needs to be removed.

Example:
Original: "Last updated on Jun 6, 2025 by Sébastien Lorber"
Translate: "Última atualização em 6 de junho de 2025 por Sébastien Lorber"

"theme.docs.versions.unmaintainedVersionLabel": "Esta é a documentação para {siteTitle} {versionLabel}, que já não é mantida ativamente.",
"theme.docs.versions.unreleasedVersionLabel": "Esta é a documentação não publicada para {siteTitle} {versionLabel} version.",
"theme.docs.versions.unreleasedVersionLabel": "Esta é a documentação não publicada para {siteTitle} versão {versionLabel}.",
"theme.lastUpdated.atDate": " a {date}",
Copy link
Contributor

@marcelocell marcelocell Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{date} is the variable "date", it needs to change from "a" to "em" or "dia".

Example:
Original: " on Jun 6, 2025"
Translated: " em 6 de junho de 2025" or " dia 6 de junho de 2025"

Caution: Don't remove the initial space.

"theme.ErrorPageContent.title": "This page crashed.",
"theme.ErrorPageContent.tryAgain": "Try again",
"theme.NavBar.navAriaLabel": "Main",
"theme.CodeBlock.wordWrapToggle": "Alternar continuação da palavra",
Copy link
Contributor

@marcelocell marcelocell Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to say "quebra de linha" or "quebra de texto" instead of "continuação da palavra" on Portugal?

"theme.CodeBlock.wordWrapToggle": "Alternar continuação da palavra",
"theme.DocSidebarItem.collapseCategoryAriaLabel": "Ocultar categoria da barra lateral '{label}'",
"theme.DocSidebarItem.expandCategoryAriaLabel": "Expandir categoria da barra lateral '{label}'",
"theme.ErrorPageContent.title": "Esta página crachou.",
Copy link
Contributor

@marcelocell marcelocell Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Esta página crachou." sounds informal to brazilians. How about "Esta página deu erro." or "Esta página quebrou.", does it sounds good to portugueses?

"theme.blog.archive.title": "Archive",
"theme.blog.author.noPosts": "This author has not written any posts yet.",
"theme.TOCCollapsible.toggleButtonLabel": "Nesta página",
"theme.admonition.caution": "cuidado",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was in doubt between "cuidado" and "atenção" when translating "caution" to "pt-BR".

"theme.admonition.caution": "cuidado",
"theme.admonition.danger": "perigo",
"theme.admonition.info": "informação",
"theme.admonition.note": "nota",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was in doubt between "nota" and "observação" when translating "note" to "pt-BR".

"theme.admonition.warning": "aviso",
"theme.blog.archive.description": "Arquivo",
"theme.blog.archive.title": "Arquivo",
"theme.blog.author.noPosts": "Este autor ainda não escreveu quaisquer artigos.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Post(s)" was translated to "Publicação(ões)" in other cases in this file. I think it's better to switch "artigos" for "publicações" here.

"theme.blog.authorsList.viewAll": "View All Authors",
"theme.blog.paginator.navAriaLabel": "Navegação da página de listagem do blog",
"theme.blog.authorsList.pageTitle": "Autores",
"theme.blog.authorsList.viewAll": "Ver Todos os Autores",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Ver todos os autores"

"theme.docs.sidebar.collapseButtonTitle": "Ocultar a barra lateral",
"theme.docs.sidebar.expandButtonAriaLabel": "Expandir a barra lateral",
"theme.docs.sidebar.expandButtonTitle": "Expandir a barra lateral",
"theme.docs.sidebar.navAriaLabel": "Barra lateral do documentos",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"dos documentos" or "de documentos"?

"theme.docs.versions.latestVersionSuggestionLabel": "Para a documentação atualizada, consulte: {latestVersionLink} ({versionLabel}).",
"theme.docs.versions.unmaintainedVersionLabel": "Esta é a documentação para {siteTitle} {versionLabel}, que já não é mantida ativamente.",
"theme.docs.versions.unreleasedVersionLabel": "Esta é a documentação não publicada para {siteTitle} {versionLabel} version.",
"theme.docs.versions.unreleasedVersionLabel": "Esta é a documentação não publicada para {siteTitle} versão {versionLabel}.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sugestion: "Esta é uma documentação não lançada da versão {versionLabel} para {siteTitle}."

@marcelocell
Copy link
Contributor

Hello, @mansil !

Here is the link to sign the CLA: https://code.facebook.com/cla

@slorber
Copy link
Collaborator

slorber commented Jul 10, 2025

Closing in favor of #11315 because the CLA hasn't been signed.

Feel free to open a new PR and sign the CLA if you think some of your translations are better

@slorber slorber closed this Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: translations This PR is related to Docusaurs core, theme or website translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants