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

docs(zh-tw): update zh-tw translation #2166

Merged
merged 4 commits into from May 13, 2024

Conversation

rockleona
Copy link
Contributor

Check List

Please read and check followings before submitting a PR.

  • Others (Update, fix, translation, etc...)
    • Languages:
    • en English
    • ru Russian
    • zh-cn simplified Chinese
    • zh-tw traditional Chinese
    • ja Japanese

@github-actions github-actions bot added Docs source/docs zh lang: zh-cn && zh-tw labels Apr 11, 2024
Comment on lines 446 to 473

## 文章摘要

在文章中使用 `<!-- more -->`,那麼在 `<!-- more -->` 之前的文字將會被視為摘要。首頁中只出現這部份文字,同時這部份文字也會出現在文章當中。

例如:

```
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<!-- more -->
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
```

首頁中將只會出現

```
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
```

正文中則會出現

```
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
```

請注意,摘要可能會被 Front Matter 中的 `excerpt` 覆寫。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found this very interesting, that we don't have this section on zh-tw, so I just copy the content from zh-cn.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @D-Sketon, would you help me check this part is correct if avaliable? Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

so I just copy the content from zh-cn.

as #133, en is the primary language, please consider syncing content from en instead of other languages. Otherwise translating between different languages ​​can become confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so I just copy the content from zh-cn.

as #133, en is the primary language, please consider syncing content from en instead of other languages. Otherwise translating between different languages ​​can become confusing.

Oh, I see, no wonder I've been confused at first glance.

I'll change this part with en content and also do this if I encounter to the same situation again.

Copy link
Contributor

Theme thumbnails validation completed.

- "_css/**/*"

exclude:
# 不包括 'source/js/test.js'
- "js/test.js"
# 不包括 'source/js/' 中的文件、但包括子目录下的所有目录和文件
# 不包括 'source/js/' 中的檔案、但包子目錄下的所有目录和檔案
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
# 不包括 'source/js/' 中的檔案、但包子目錄下的所有目录和檔案
# 不包括 'source/js/' 中的檔案、但包括子目錄下的所有目录和檔案

@@ -159,7 +159,7 @@ ignore:

列表中的每一項都必須用單引號或雙引號包裹起來。

`include` 和 `exclude` 並不適用於 `themes/` 目錄下的文件。如果需要忽略 `themes/` 目錄下的部分文件或文件夾,可以使用 `ignore` 或在文件名之前添加下劃線 `_`。
`include` 和 `exclude` 並不適用於 `themes/` 目錄下的檔案。如果需要忽略 `themes/` 目錄下的部分檔案資料夾,可以使用 `ignore` 或在檔案名之前添加下劃線 `_`。
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
`include``exclude` 並不適用於 `themes/` 目錄下的檔案。如果需要忽略 `themes/` 目錄下的部分檔案資料夾,可以使用 `ignore` 或在檔案名之前添加下劃線 `_`
`include``exclude` 並不適用於 `themes/` 目錄下的檔案。如果需要忽略 `themes/` 目錄下的部分檔案或資料夾,可以使用 `ignore` 或在檔案名之前添加下劃線 `_`


## 更新文件
## 更新文件
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
## 更新文件
## 更新文件

@@ -363,16 +363,17 @@ _hexo-renderer-marked 3.1.0+ can (optionally) resolves the post's path of an ima
### url_for (7.0.0+)

Returns a url with the root path prefixed. Output is encoded automatically.
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
Returns a url with the root path prefixed. Output is encoded automatically.

@@ -412,16 +413,17 @@ You could also disable it to output a non-relative link, even when `relative_lin
### full_url_for (7.0.0+)

Returns a url with the `config.url` prefixed. Output is encoded automatically.
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
Returns a url with the `config.url` prefixed. Output is encoded automatically.

@rockleona rockleona requested a review from D-Sketon April 12, 2024 06:56
uiolee and others added 2 commits April 17, 2024 10:48
Co-authored-by: D-Sketon <2055272094@qq.com>
Signed-off-by: Uiolee <22849383+uiolee@users.noreply.github.com>
@rockleona rockleona requested review from uiolee and D-Sketon May 2, 2024 08:27
@stevenjoezhang stevenjoezhang merged commit b1917f0 into hexojs:master May 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs source/docs zh lang: zh-cn && zh-tw
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants