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

add README.zh-CN.md #750

Merged
merged 10 commits into from
Sep 15, 2021
Merged

add README.zh-CN.md #750

merged 10 commits into from
Sep 15, 2021

Conversation

hqc19907228
Copy link
Contributor

translate README.md to README.zh-CN.md

@codecov
Copy link

codecov bot commented Sep 10, 2021

Codecov Report

Merging #750 (a6ea791) into master (f6d85e8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #750   +/-   ##
=======================================
  Coverage   12.34%   12.34%           
=======================================
  Files          22       22           
  Lines        1434     1434           
=======================================
  Hits          177      177           
  Misses       1250     1250           
  Partials        7        7           
Flag Coverage Δ
unittests 12.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6d85e8...a6ea791. Read the comment docs.

@Xuanwo Xuanwo requested review from a team September 10, 2021 01:17
README.zh-CN.md Outdated

### 支持多种原生服务

目前已经有 **14** 个稳定的服务通过了所有的 [集成测试](https://github.com/beyondstorage/go-integration-test)。
Copy link
Contributor

Choose a reason for hiding this comment

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

I've added two more services, so maybe we should add them in.

- [gdrive](https://github.com/beyondstorage/go-service-gdrive): [Google Drive](https://www.google.com/drive/)
- [ipfs](https://github.com/beyondstorage/go-service-ipfs): [InterPlanetary File System](https://ipfs.io)
- [memory](https://github.com/beyondstorage/go-service-memory): data that only in memory
- [minio](https://github.com/beyondstorage/go-service-minio): [MinIO](https://min.io)
Copy link
Contributor

Choose a reason for hiding this comment

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

My last PR sorted these services alphabetically. Maybe you can refer to it.


- [uss](https://github.com/beyondstorage/go-service-uss/): [UPYUN Storage Service](https://www.upyun.com/products/file-storage)
- [hdfs](https://github.com/beyondstorage/go-service-hdfs): [Hadoop Distributed File System](https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html#Introduction)
- [tar](https://github.com/beyondstorage/go-service-tar): tar files
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

README.zh-CN.md Outdated

全局对象元数据

- `id`: unique key in service
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you forget to translate here.

README.zh-CN.md Outdated

系统对象元数据

Service system object metadata like `storage-class` and so on.
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

README.zh-CN.md Outdated Show resolved Hide resolved
@Xuanwo Xuanwo requested a review from a team September 13, 2021 04:33
README.zh-CN.md Outdated
)

func main() {
// 连接字符串并初始化存储器
Copy link
Contributor

@JinnyYi JinnyYi Sep 13, 2021

Choose a reason for hiding this comment

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

How about "使用connection string初始化storager" or "使用连接字符串初始化存储器"?

@Xuanwo I'm not sure if some of the unique terms need to be translated as well, like storager, connection string, pair, and operation name, etc?

README.zh-CN.md Outdated
// 使用对象的函数获取元数据
length, ok := o.GetContentLength()

// 列表将在路径下创建一个对象的迭代器
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "List将创建路径下对象的迭代器" or "列举将创建路径下对象的迭代器"?

README.zh-CN.md Outdated
// 通过块 id 组合区块
err := bs.CombineBlock(o, []string{"id-abc"})
```
- 页面:允许进行随机写入
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "", or keep Pager without translation?

README.zh-CN.md Outdated

- `id`: 服务中的唯一键
- `name`: 服务工作目录的相对路径
- `mode`: 对象的模式可以由以下几种进行组合:`read`, `dir`, `part` and [more](https://github.com/beyondstorage/go-storage/blob/master/types/object.go#L11)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not fully translated.

README.zh-CN.md Outdated

### 服务器端加密

服务器端加密支持在 system pair 和 system metadata 中使用, 并且我们可以通过 [Default Pairs](https://beyondstorage.io/docs/go-storage/pairs/index#default-pairs) 来简化工作。
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "支持通过 system pair 和 system metadata 指定在服务端对数据进行加密编码"?

README.zh-CN.md Outdated
Read: []types.Pair{
// 需要, 必须为 AES256
s3.WithServerSideEncryptionCustomerAlgorithm(s3.ServerSideEncryptionAes256),
// Required, your AES-256 key, a 32-byte binary value
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to be translated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Required, your AES-256 key, a 32-byte binary value
这个没明白是什么意思。。

@Xuanwo
Copy link
Contributor

Xuanwo commented Sep 15, 2021

ping @abyss-w to take another look.

- [webdav](https://github.com/beyondstorage/go-service-webdav): [WebDAV](http://www.webdav.org/)
- [zip](https://github.com/beyondstorage/go-service-zip): zip files

更多关于服务的想法可以在 [Service Integration Tracking](https://github.com/beyondstorage/go-storage/issues/536) 找到。
Copy link
Contributor

Choose a reason for hiding this comment

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

Does Service Integration Tracking need to be translated?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's OK to keep it.

Copy link
Contributor

@abyss-w abyss-w left a comment

Choose a reason for hiding this comment

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

LGTM

@Xuanwo Xuanwo merged commit 5df2783 into beyondstorage:master Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants