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

touch: add Simplified Chinese Translation #12786

Merged
merged 7 commits into from
May 21, 2024
Merged

Conversation

Smart-SangGe
Copy link
Contributor

  • The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc.
  • The page(s) have at most 8 examples.
  • The page description(s) have links to documentation or a homepage.
  • The page(s) follow the content guidelines.
  • The PR title conforms to the recommended templates.
  • Version of the command being documented (if known):

@CLAassistant
Copy link

CLAassistant commented May 14, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the translation Translate pages from one language to another. label May 14, 2024
Copy link
Member

@einverne einverne left a comment

Choose a reason for hiding this comment

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

Hi, @Smart-SangGe thank you for the new page, I left a suggestion.

# touch

> 创建文件并设置访问/修改时间。
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your suggestion. I have made the changes according to your recommendation.


`touch -c -t {{YYYYMMDDHHMM.SS}} {{路径/到/文件1 路径/到/文件2 ...}}`

- 将文件时间设置为另一个文件的时间,如果文件不存在则不创建:
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, the current description is not clear that the command will set 文件1, 文件2 file time to emacs filetime.

I suggest

  1. replace emacs to 文件3
  2. change the description to 將文件時間設置為文件3的時間

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your suggestion. I have made the changes according to your recommendation.

@tldr-bot
Copy link

Hello! I've noticed something unusual when checking this PR:

  • The page pages.zh/common/touch.md is outdated, based on the command contents itself.

Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits.

1 similar comment
@tldr-bot
Copy link

Hello! I've noticed something unusual when checking this PR:

  • The page pages.zh/common/touch.md is outdated, based on the command contents itself.

Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits.


- 创建指定的文件:

`touch 路径/到/文件名1 路径/到/文件名2 ...`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`touch 路径/到/文件名1 路径/到/文件名2 ...`
`touch {{路径/到/文件名1 路径/到/文件名2 ...}}`


- 将文件的访问(a)或修改时间(m)设置为当前时间,如果文件不存在则不创建(-c):

`touch -c -a|m 路径/到/文件1 路径/到/文件2 ...`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`touch -c -a|m 路径/到/文件1 路径/到/文件2 ...`
`touch -c -a|m {{路径/到/文件1 路径/到/文件2 ...}}`


- 将文件时间(-t)设置为指定值,如果文件不存在则不创建(-c):

`touch -c -t YYYYMMDDHHMM.SS 路径/到/文件名1 路径/到/文件名2 ...`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`touch -c -t YYYYMMDDHHMM.SS 路径/到/文件名1 路径/到/文件名2 ...`
`touch -c -t YYYYMMDDHHMM.SS {{路径/到/文件名1 路径/到/文件名2 ...}}`


- 将文件时间设置为另一文件(-r,即文件3)的时间,如果文件不存在则不创建(-c):

`touch -c -r 路径/到/文件3 路径/到/文件名1 路径/到/文件名2 ...`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`touch -c -r 路径/到/文件3 路径/到/文件名1 路径/到/文件名2 ...`
`touch -c -r {{路径/到/文件3}} {{路径/到/文件名1 路径/到/文件名2 ...}}`

@spageektti spageektti requested a review from einverne May 21, 2024 16:04
@spageektti spageektti dismissed einverne’s stale review May 21, 2024 16:06

suggested changes have been made

Copy link
Collaborator

@spageektti spageektti left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution.

@spageektti spageektti merged commit f00b073 into tldr-pages:main May 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translation Translate pages from one language to another.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants