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

autoconf, pr: add Chinese translation #15106

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pages.zh/common/autoconf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 自动配置
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
# 自动配置
# autoconf


> 生成配置脚本,自动配置软件源码包。
> 更多信息:<https://www.gnu.org/software/autoconf>。
Copy link
Member

Choose a reason for hiding this comment

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

Using Latin period is a mandatory rule for more info link. See: https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/more-info-link.md#zh

Suggested change
> 更多信息:<https://www.gnu.org/software/autoconf>
> 更多信息:<https://www.gnu.org/software/autoconf>.


- 从 `configure.ac`(如果存在)或 `configure.in` 生成配置脚本,并将此脚本保存到 `configure`:

`autoconf`

- 从指定模板生成配置脚本;输出到 `stdout`:

`autoconf {{模板文件}}`

- 从指定模板生成配置脚本(即使输入文件未更改)并将输出写入文件:

`autoconf --force --output {{输入文件}} {{模板文件}}`
28 changes: 28 additions & 0 deletions pages.zh/common/pr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# pr

> 对文件进行分页或分栏以便打印。
> 更多信息:<https://www.gnu.org/software/coreutils/pr>。
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://www.gnu.org/software/coreutils/pr>
> 更多信息:<https://www.gnu.org/software/coreutils/pr>.


- 使用默认页眉和页脚打印多个文件:

`pr {{路径/到/文件1 路径/到/文件2 ...}}`

- 使用自定义居中标题打印:
`pr -h "{{header}}" {{path/to/file1 path/to/file2 ...}}`
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
`pr -h "{{header}}" {{path/to/file1 path/to/file2 ...}}`
`pr -h "{{标题}}" {{路径/到/文件1 路径/到/文件2 ...}}`


- 使用编号行和自定义日期格式打印:

`pr -n -D "{{format}}" {{path/to/file1 path/to/file2 ...}}`
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
`pr -n -D "{{format}}" {{path/to/file1 path/to/file2 ...}}`
`pr -n -D "{{格式}}" {{路径/到/文件1 路径/到/文件2 ...}}`


- 一起打印所有文件,每列一个,不带页眉或页脚:

`pr -m -T {{路径/到/文件1 路径/到/文件2 ...}}`

- 打印,从第 2 页开始到第 5 页,具有给定的页面长度(包括页眉和页脚):

`pr +2:5 -l {{page_length}} {{路径/到/文件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
`pr +2:5 -l {{page_length}} {{路径/到/文件1 路径/到/文件2 ...}}`
`pr +2:5 -l {{页面长度}} {{路径/到/文件1 路径/到/文件2 ...}}`


- 使用每行的偏移量和截断的自定义页面宽度进行打印:

`pr -o {{offset}} -W {{width}} {{path/to/file1 path/to/file2 ...}}`
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
`pr -o {{offset}} -W {{width}} {{path/to/file1 path/to/file2 ...}}`
`pr -o {{偏移量}} -W {{宽度}} {{路径/到/文件1 路径/到/文件2 ...}}`


Loading