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

polish(v2): [theme-classic] slightly improve Japanese translation #4359

Merged
merged 2 commits into from
Mar 8, 2021
Merged

polish(v2): [theme-classic] slightly improve Japanese translation #4359

merged 2 commits into from
Mar 8, 2021

Conversation

MisterFISHUP
Copy link
Contributor

Motivation

Slightly improve the Japanese translation file by removing the extra English period in theme.docs.versions.unreleasedVersionLabel (and with two other minor modifications).

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

N/A

Related PRs

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 6, 2021
@netlify
Copy link

netlify bot commented Mar 6, 2021

@netlify
Copy link

netlify bot commented Mar 6, 2021

Deploy preview for docusaurus-2 ready!

Built without sensitive environment variables with commit 29a9298

https://deploy-preview-4359--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Mar 6, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 92
🟢 Accessibility 96
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

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

@@ -43,13 +43,13 @@
"theme.docs.sidebar.responsiveCloseButtonLabel": "メニューを閉じる",
"theme.docs.sidebar.responsiveOpenButtonLabel": "メニューを開く",
"theme.docs.versions.latestVersionLinkLabel": "最新バージョン",
"theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel}) を見てください。",
"theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel})を見てください。",
Copy link
Contributor

@ykzts ykzts Mar 6, 2021

Choose a reason for hiding this comment

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

Suggested change
"theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel})を見てください。",
"theme.docs.versions.latestVersionSuggestionLabel": "最新のドキュメントは{latestVersionLink} ({versionLabel}) を見てください。",

The space after the parentheses is required in Japanese as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's true :). Actually, I was originally adding a space between English letters and Japanese ones everywhere, which is a common typesetting style (the react website in Japanese follows this style for example), but since there's no standard rule for this, and the "no space between half-width and full-width characters (i.e. EN letters or half-width numbers/JP characters)" style is also very common in Japanese (I think we both agree on this), I ended up adopting the latter style and not adding spaces (and thus removed this space, which turns out to be unnecessary).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Those labels are "default labels" that you can always override anyway

What does make sense for the majority of cases?

"theme.lastUpdated.atDate": "{date}に",
"theme.lastUpdated.byUser": "{user}が",
"theme.lastUpdated.lastUpdatedAtBy": "{atDate}{byUser}最終更新",
"theme.tags.tagsListLabel": "タグ:",
"theme.tags.tagsListLabel": "タグ",
Copy link
Contributor

@ykzts ykzts Mar 6, 2021

Choose a reason for hiding this comment

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

Suggested change
"theme.tags.tagsListLabel": "タグ",
"theme.tags.tagsListLabel": "タグ:",

Do not need to change the ":" for appearance.

Copy link
Collaborator

Choose a reason for hiding this comment

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

does it have any special meaning in japanese?

Copy link
Contributor

Choose a reason for hiding this comment

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

In the first place, there is nothing in Japanese that means ":". Generally this is just borrowed from English and has a similar meaning.

@slorber
Copy link
Collaborator

slorber commented Mar 8, 2021

🤪 don't know how to review that. Can you agree on something with @ykzts or can you find someone that speaks Japanese to review this and decide what's best?

@MisterFISHUP
Copy link
Contributor Author

don't know how to review that. Can you agree on something with @ykzts or can you find someone that speaks Japanese to review this and decide what's best?

We should remove the extra English period in line 48 (theme.docs.versions.unreleasedVersionLabel).
For the rest it's not really necessary to modify 🙂 (I personally prefer a full width colon in line 52, but it's really not a big deal.)

@slorber slorber added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Mar 8, 2021
@slorber
Copy link
Collaborator

slorber commented Mar 8, 2021

thanks :)

@slorber slorber merged commit 9a6d6a9 into facebook:master Mar 8, 2021
@MisterFISHUP MisterFISHUP deleted the jp-translation branch March 8, 2021 18:29
@lex111 lex111 added this to the v2.0.0-alpha.71 milestone Mar 9, 2021
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