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

Translate some remnant partials for localization #12239

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

tengqm
Copy link
Contributor

@tengqm tengqm commented Jan 16, 2019

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 16, 2019
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 16, 2019
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Jan 16, 2019

Deploy preview for kubernetes-io-master-staging ready!

Built with commit d9a3630

https://deploy-preview-12239--kubernetes-io-master-staging.netlify.com

@jimangel
Copy link
Member

Fixes: #12160

Great work @tengqm! I need to test a little more but initially /lgtm

@@ -1,8 +1,9 @@
{{ partial "templates/block" (dict "page" .page "block" "overview" "purpose" "states, in one or two sentences, the purpose of this document") }}


Copy link
Contributor

Choose a reason for hiding this comment

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

@tengqm, I guess this line is not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, empty lines means nothing


[main_feedback_yes]
other = "Yes"

Copy link
Contributor

Choose a reason for hiding this comment

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

@tengqm, looks good. Is there a reason why the variables are prefixed with main_?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was trying to follow an "implicit convention" that most translation entries here have a prefix main_. It can be safely removed.

For up-to-date documentation, see the <a href="{{ .Site.Params.currentUrl }}">latest</a> version.
Kubernetes {{ .Param "version" }}
{{ T "deprecation_warning" }}
<a href="{{ .Site.Params.currentUrl }}">{{ T "main_latest" }}</a>。
</h3>
Copy link
Contributor

Choose a reason for hiding this comment

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

@tengqm, do you need version after latest? I was unable to preview the deprecation warning, as those versions are not re-generated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion, main_latest_version is indeed a better choice.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure. The original deprecation string ended as ... latest version. instead of just latest.

@tengqm tengqm force-pushed the translate-partials branch from 666b9d0 to d9a3630 Compare January 18, 2019 01:34
@k8s-ci-robot k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 18, 2019
@bradtopol
Copy link
Contributor

Assigning @chenopis as he is the most appropriate person to review this

@tengqm
Copy link
Contributor Author

tengqm commented Jan 23, 2019

@chenopis ping.

@tengqm tengqm force-pushed the translate-partials branch from d9a3630 to f85d484 Compare January 29, 2019 06:32
For up-to-date documentation, see the <a href="{{ .Site.Params.currentUrl }}">latest</a> version.
Kubernetes {{ .Param "version" }}
{{ T "deprecation_warning" }}
<a href="{{ .Site.Params.currentUrl }}">{{ T "latest_version" }}</a>
Copy link
Contributor

@chenopis chenopis Jan 29, 2019

Choose a reason for hiding this comment

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

I'll let you decide, but you could leave the period outside of the string variables and put it after the </a> link tag.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind. I see now that you need to use the Chinese period for the translation.

@chenopis
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 29, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chenopis

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 29, 2019
@k8s-ci-robot k8s-ci-robot merged commit bef1909 into kubernetes:master Jan 29, 2019
@tengqm tengqm deleted the translate-partials branch January 29, 2019 08:09
bsalamat pushed a commit to bsalamat/kubernetes.github.io that referenced this pull request Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants