1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-31 15:16:18 +00:00

Update Chinese languages (#3837)

* Add initial translation for zh-TW depends on zh-Hant

* Add initial translation for zh-CN depends on zh-Hans

* Add initial translation for zh-HK depends on zh-Hant

* Update chinese help texts for load command

    * for the new optional "noerror" parameter
This commit is contained in:
Bram Chen 2019-03-09 21:17:54 +08:00 committed by Jeremy Ruston
parent 12630d4a91
commit 7478ba9165
10 changed files with 90 additions and 6 deletions

18
languages/zh-CN/icon.tid Normal file
View File

@ -0,0 +1,18 @@
title: $:/languages/zh-CN/icon
type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="1500" height="1000" viewBox="-5 -5 30 20">
<title>Flag of the People's Republic of China</title>
<rect fill="#de2910" x="-5" y="-5" width="30" height="20"/>
<defs>
<polygon id="s" points="0,-513674 301930,415571 -488533,-158734 488533,-158734 -301930,415571"
fill="#ffde00" transform="scale(0.0000019467600073)"/>
</defs>
<use xlink:href="#s" transform="scale(3)"/>
<use xlink:href="#s" transform="translate(5,-3) rotate(-120.963756)"/>
<use xlink:href="#s" transform="translate(7,-1) rotate(-98.130102)"/>
<use xlink:href="#s" transform="translate(7,2) rotate(-74.054604)"/>
<use xlink:href="#s" transform="translate(5,4) rotate(-51.3401917)"/>
</svg>

View File

@ -0,0 +1,10 @@
{
"title": "$:/languages/zh-CN",
"name": "zh-CN",
"plugin-type": "language",
"description": "Chinese (China)",
"author": "BramChen",
"core-version": ">=5.0.8",
"dependents": ["$:/languages/zh-Hans"],
"plugin-priority": 110
}

16
languages/zh-HK/icon.tid Normal file
View File

@ -0,0 +1,16 @@
title: $:/languages/zh-HK/icon
type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600">
<rect width="900" height="600" fill="#de2910"/>
<g id="petal">
<path d="m 449.96406,299.9134 c -105.26305,-44.48626 -58.60174,-181.58185 42.06956,-174.6907 -20.36609,10.46694 -23.31775,29.99772 -11.68704,48.09021 13.02444,20.2558 -1.19897,52.84856 -18.80577,60.7674 -28.93485,13.02443 -34.72791,47.74999 -11.57675,65.83309 z" fill="#fff"/>
<path d="m 444.27188,200.91974 -5.91976,9.29378 -2.14454,-10.8142 -10.67812,-2.75928 9.62461,-5.3895 -0.67104,-10.99955 8.08542,7.48945 10.25578,-4.04271 -4.61053,10.00942 7.00143,8.50541 z" fill="#de2910"/>
<path d="m 450.56002,298.75902 c -12.73114,-6.53451 -22.9963,-20.15491 -27.46839,-36.43134 -5.11498,-18.66969 -2.17269,-38.74247 8.08308,-55.03768 l -2.20789,-1.39371 c -10.64057,16.92871 -13.69313,37.74293 -8.38575,57.11886 4.72784,17.22201 15.21355,31.09815 28.78703,38.06438 z" fill="#de2910"/>
</g>
<use xlink:href="#petal" transform="rotate(72 450,300)"/>
<use xlink:href="#petal" transform="rotate(144 450,300)"/>
<use xlink:href="#petal" transform="rotate(216 450,300)"/>
<use xlink:href="#petal" transform="rotate(288 450,300)"/>
</svg>

View File

@ -0,0 +1,10 @@
{
"title": "$:/languages/zh-HK",
"name": "zh-HK",
"plugin-type": "language",
"description": "Chinese (Hong Kong)",
"author": "BramChen",
"core-version": ">=5.0.8",
"dependents": ["$:/languages/zh-Hant"],
"plugin-priority": 110
}

View File

@ -4,10 +4,12 @@ description: 从文件中加载条目
从 TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` 或其他本机文件加载条目。应用的处理程序取决于导入文件的扩展名。如果您需要明确指定解串器和编码,请改用 `import` 命令。 从 TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` 或其他本机文件加载条目。应用的处理程序取决于导入文件的扩展名。如果您需要明确指定解串器和编码,请改用 `import` 命令。
``` ```
--load <filepath> --load <filepath> [noerror]
--load <dirpath> --load <dirpath> [noerror]
``` ```
默认情况下, 如果未找到条目load 命令会引发错误。通过提供可选的 "noerror" 参数可以抑制该错误。
从已加密的 TiddlyWiki 文件中加载条目,须使用 PasswordCommand 指定密码,例如: 从已加密的 TiddlyWiki 文件中加载条目,须使用 PasswordCommand 指定密码,例如:
``` ```

View File

@ -4,5 +4,6 @@
"plugin-type": "language", "plugin-type": "language",
"description": "Chinese (Simplified)", "description": "Chinese (Simplified)",
"author": "BramChen", "author": "BramChen",
"core-version": ">=5.0.8" "core-version": ">=5.0.8",
"plugin-priority": 100
} }

View File

@ -4,10 +4,12 @@ description: 從檔案中載入條目
從 TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` 或其他本機檔案載入條目。應用的處理程序取決於導入檔案的副檔名。如果您需要明確指定解串器和編碼,請改用 `import` 命令。 從 TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` 或其他本機檔案載入條目。應用的處理程序取決於導入檔案的副檔名。如果您需要明確指定解串器和編碼,請改用 `import` 命令。
``` ```
--load <filepath> --load <filepath> [noerror]
--load <dirpath> --load <dirpath> [noerror]
``` ```
預設情況下, 如果未找到條目load 命令會引發錯誤。通過提供可選的 "noerror" 參數可以抑制該錯誤。
從已加密的 TiddlyWiki 檔案中載入條目,須使用 PasswordCommand 指定密碼,例如: 從已加密的 TiddlyWiki 檔案中載入條目,須使用 PasswordCommand 指定密碼,例如:
``` ```

View File

@ -4,5 +4,6 @@
"plugin-type": "language", "plugin-type": "language",
"description": "Chinese (Traditional)", "description": "Chinese (Traditional)",
"author": "BramChen", "author": "BramChen",
"core-version": ">=5.0.8" "core-version": ">=5.0.8",
"plugin-priority": 100
} }

14
languages/zh-TW/icon.tid Normal file
View File

@ -0,0 +1,14 @@
title: $:/languages/zh-TW/icon
type: image/svg+xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg>
<svg width="900" height="600" viewBox="-60 -40 240 160" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="-60" y="-40" width="100%" height="100%" fill="#fe0000"/>
<rect x="-60" y="-40" width="50%" height="50%" fill="#000095"/>
<path id="four_rays" d="M 8,0 L 0,30 L -8,0 L 0,-30 M 0,8 L 30,0 L 0,-8 L -30,0" fill="#fff"/>
<use xlink:href="#four_rays" transform="rotate(30)"/>
<use xlink:href="#four_rays" transform="rotate(60)"/>
<circle r="17" fill="#000095"/>
<circle r="15" fill="#fff"/>
</svg>

View File

@ -0,0 +1,10 @@
{
"title": "$:/languages/zh-TW",
"name": "zh-TW",
"plugin-type": "language",
"description": "Chinese (Taiwan)",
"author": "BramChen",
"core-version": ">=5.0.8",
"dependents": ["$:/languages/zh-Hant"],
"plugin-priority": 110
}