Skip to content
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

chore(theme-translations): complete Polish translations #7214

Merged
merged 9 commits into from
Apr 21, 2022

Conversation

rev4324
Copy link
Contributor

@rev4324 rev4324 commented Apr 20, 2022

Motivation

Have you read the Contributing Guidelines on pull requests?

Test Plan

Related PRs

@facebook-github-bot
Copy link
Contributor

Hi @rev4324!

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 [email protected]. Thanks!

@Josh-Cena
Copy link
Collaborator

@rev4324 There are some other files that can be translated as well. Could you take a look? (plugin-ideal-image and theme-search-algolia)

@Simek Could you help review this please?

@netlify
Copy link

netlify bot commented Apr 20, 2022

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 199e4ac
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/62613d79bc136b00087c9ac7
😎 Deploy Preview https://deploy-preview-7214--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 settings.

@github-actions
Copy link

github-actions bot commented Apr 20, 2022

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 52
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟢 PWA 90

Lighthouse ran on https://deploy-preview-7214--docusaurus-2.netlify.app/

@Josh-Cena Josh-Cena changed the title Improve polish translation chore(theme-translations): complete Polish translations Apr 20, 2022
@Josh-Cena Josh-Cena added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Apr 20, 2022
@Simek
Copy link
Contributor

Simek commented Apr 20, 2022

LGMT, thank you for the translation updates @rev4324! 👍

I can also help with filling remaining gaps in i18n files, if you don't want to continue working on the translation.

@Josh-Cena
Copy link
Collaborator

Let's see if @rev4324 wants to do it. If @rev4324 doesn't have the bandwidth until next Monday (provided they did sign the CLA in the meantime) I'll merge this and you can follow up. Much appreciated, for both of you guys!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 20, 2022
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@Josh-Cena Josh-Cena added the status: don't merge yet This PR is completed, but we are still waiting for other things to be ready. label Apr 20, 2022
@rev4324
Copy link
Contributor Author

rev4324 commented Apr 21, 2022

No problem, I'll look into translating the remaining sentences in other files soon. Glad I could help.

@Josh-Cena
Copy link
Collaborator

Thanks! There are a few missing in theme-common.json. Mind taking a look?

@Josh-Cena
Copy link
Collaborator

Thanks a lot @rev4324

@Simek We can merge once with a confirmation from you

Copy link
Contributor

@Simek Simek left a comment

Choose a reason for hiding this comment

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

Generally this look nice, I have suggested adding missing plural forms, Polish language uses three by default, and Docusausaurs supports it:

Additionally, I have suggested the alteration for the "image" translation, which suites the context a bit more, and it's more widely used on the web, ex. Google etc.

@Josh-Cena
Copy link
Collaborator

Josh-Cena commented Apr 21, 2022

@Simek Out of plain curiosity:

>> new Intl.PluralRules("pl").resolvedOptions().pluralCategories
<< ['few', 'many', 'one', 'other']

(Docusaurus interprets multiple pluralizations in the order ['zero', 'one', 'two', 'few', 'many', 'other'].)

I wonder which ones your translations correspond to?

@Simek
Copy link
Contributor

Simek commented Apr 21, 2022

Oh, I see. I was wondering why there are two pipes in a row in some translations (||).

Polish forms are different for "one", "two-four", "five+" and I have used this order in the suggestions. I'm curious to what ranges few and many corresponds to. Depends on that we might want to alter the translations.

@Josh-Cena
Copy link
Collaborator

According to my tests, "few" is 2-4, and "many" is 5+. "other" seems to be non-integers, so it's irrelevant here. If we are already ordering the plurals in that order (one|few|many) it should be good!

@Josh-Cena
Copy link
Collaborator

@rev4324 Please take a look at the suggestions above ^^ I'll apply those changes and merge tomorrow if there are no further opinions.

@slorber
Copy link
Collaborator

slorber commented Apr 21, 2022

If that helps: https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_plural_rules.html

CleanShot 2022-04-21 at 12 00 06@2x

@Simek
Copy link
Contributor

Simek commented Apr 21, 2022

Just FYI, the range section is a bit overcomplicated in there, generally the range end form is used for the whole range pluralization, which also can be seen in the most right column. In other words the form of start of the range doesn't matter in i18n context.

@Josh-Cena

This comment was marked as off-topic.

@Simek

This comment was marked as off-topic.

@Josh-Cena

This comment was marked as off-topic.

@rev4324
Copy link
Contributor Author

rev4324 commented Apr 21, 2022

Thanks for the suggestions, you're right about the "image" translation, your way fits better. Also, I didn't know about the distinction between "few" and "many", since the source that I edited had only one of these two forms.
I created a page in Polish after these changes and I didn't see any incorrect/missing translations now, so I think we're good.

Copy link
Collaborator

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

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

Thanks a lot! @Simek @rev4324

@Josh-Cena Josh-Cena merged commit e12947e into facebook:main Apr 21, 2022
@rev4324 rev4324 deleted the patch-1 branch April 21, 2022 12:12
@Josh-Cena Josh-Cena removed the status: don't merge yet This PR is completed, but we are still waiting for other things to be ready. label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants