translate more strings/comments to zh-cn

This commit is contained in:
龙一 2025-03-25 21:40:20 +08:00 committed by GitHub
parent 07722d122b
commit 2794daa5d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,11 +141,11 @@ array5 = [
# 在它下方,直至下一个表头或文件结束,都是这个表的键值对。 # 在它下方,直至下一个表头或文件结束,都是这个表的键值对。
# 表不保证保持键值对的指定顺序。 # 表不保证保持键值对的指定顺序。
[table-1] [table-1]
key1 = "some string" key1 = "一些字符串"
key2 = 123 key2 = 123
[table-2] [table-2]
key1 = "another string" key1 = "另一些字符串"
key2 = 456 key2 = 456
# 裸键中禁止使用点,因为点用于表示嵌套表。 # 裸键中禁止使用点,因为点用于表示嵌套表。
@ -164,10 +164,10 @@ type = "pug"
# 你不必层层完整地写出你不想写的所有途径的父表。 # 你不必层层完整地写出你不想写的所有途径的父表。
# TOML 知道该怎么办。 # TOML 知道该怎么办。
# [x] you # [x]
# [x.y] don't # [x.y] 不需要
# [x.y.z] need these # [x.y.z] 这么做
[x.y.z.w] # for this to work [x.y.z.w] # 来让这行得通
# 只要父表还没有被直接定义,你依然可以 # 只要父表还没有被直接定义,你依然可以
# 定义父表及其未定义的键值对。 # 定义父表及其未定义的键值对。
@ -230,9 +230,9 @@ emptyTableAreAllowed = true
[[products]] [[products]]
[[products]] [[products]]
name = "Nail" name = "奈尔"
sku = 284758393 sku = 284758393
color = "gray" color = "灰色"
``` ```
等价于 JSON: 等价于 JSON:
@ -241,15 +241,15 @@ color = "gray"
{ {
"products": [ "products": [
{ {
"name": "array of table", "name": "表数组",
"sku": 7385594937, "sku": 7385594937,
"emptyTableAreAllowed": true "emptyTableAreAllowed": true
}, },
{}, {},
{ {
"name": "Nail", "name": "奈尔",
"sku": 284758393, "sku": 284758393,
"color": "gray" "color": "灰色"
} }
] ]
} }
@ -260,26 +260,26 @@ color = "gray"
# 子表会从属于在其上最近的表。 # 子表会从属于在其上最近的表。
[[fruit]] [[fruit]]
name = "apple" # I am a property in fruit table/map name = "苹果" # 我是 fruit 表数组中第一个元素的属性
[fruit.geometry] [fruit.geometry]
shape = "round" shape = ""
note = "I am a property in geometry table/map" note = "我是子表 geometry 中的一个属性"
[[fruit.color]] [[fruit.color]]
name = "red" name = ""
note = "I am an array item in apple fruit's table/map" note = "我是苹果水果表下颜色数组元素的属性"
[[fruit.color]] [[fruit.color]]
name = "green" name = "绿"
note = "I am in the same array as red" note = "我和红在同一个表数组中"
[[fruit]] [[fruit]]
name = "banana" name = "香蕉"
[[fruit.color]] [[fruit.color]]
name = "yellow" name = ""
note = "I am an array item in banana fruit's table/map" note = "我是香蕉水果表下颜色数组元素的属性
``` ```
等价于 JSON: 等价于 JSON:
@ -288,17 +288,17 @@ color = "gray"
{ {
"fruit": [ "fruit": [
{ {
"name": "apple", "name": "苹果",
"geometry": { "shape": "round", "note": "..."}, "geometry": { "shape": "", "note": "..."},
"color": [ "color": [
{ "name": "red", "note": "..." }, { "name": "", "note": "..." },
{ "name": "green", "note": "..." } { "name": "绿", "note": "..." }
] ]
}, },
{ {
"name": "banana", "name": "香蕉",
"color": [ "color": [
{ "name": "yellow", "note": "..." } { "name": "", "note": "..." }
] ]
} }
] ]