Skip to content

Commit 13da1a3

Browse files
weblateZoeCMa
andauthored
Translated using Weblate (Chinese (Simplified Han script)) (#491)
Currently translated at 92.4% (554 of 599 strings) Translate-URL: https://hosted.weblate.org/projects/commonwl/user-guide/zh_Hans/ Translation: Common Workflow Language/CWL User Guide Co-authored-by: Zoë Ma <zoe.ma@curii.com>
1 parent cefa152 commit 13da1a3

File tree

1 file changed

+54
-7
lines changed

1 file changed

+54
-7
lines changed

locales/zh_Hans/LC_MESSAGES/user_guide.po

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: Common Workflow Language User Guide\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2023-12-16 11:48+0100\n"
12-
"PO-Revision-Date: 2024-10-06 10:16+0000\n"
12+
"PO-Revision-Date: 2024-10-08 03:26+0000\n"
1313
"Last-Translator: Zoë Ma <zoe.ma@curii.com>\n"
1414
"Language-Team: Chinese (Simplified Han script) <https://hosted.weblate.org/"
1515
"projects/commonwl/user-guide/zh_Hans/>\n"
@@ -3989,13 +3989,19 @@ msgid ""
39893989
"coded `Hello.java` file using the previously mentioned "
39903990
"`InitialWorkDirRequirement` requirement, before adding it to a tar file."
39913991
msgstr ""
3992+
"另一种可能是采用更加特殊化的办法,避免作业文件中的外部依赖。在这个工作流中, "
3993+
"我们可以利用前述 `InitialWorkDirRequirement` 需求,生成一个硬性编码的 `Hello."
3994+
"java` 文件,然后将它添加到 tar 文件。"
39923995

39933996
#: ../../src/topics/workflows.md:366 66f76677f4ce42baa8a8813410ea5aee
39943997
msgid ""
39953998
"In this case our step can assume `Hello.java` rather than be "
39963999
"parameterized, so we can use hardcoded values `hello.tar` and "
39974000
"`Hello.java` in a `baseCommand` and the resulting `outputs`:"
39984001
msgstr ""
4002+
"这种情况下,我们的步骤中可以直接以 `Hello.java` 为前提假定,无需参数化,"
4003+
"从而在 `baseCommand` 以及产出的 `outputs` 中使用硬性编码的值 `hello.tar` 和 "
4004+
"`Hello.java`:"
39994005

40004006
#: ../../src/topics/workflows.md:383 a8ccb9f9ab4448e087ea8448d620d33c
40014007
msgid ""
@@ -4005,6 +4011,10 @@ msgid ""
40054011
"reason for doing it in this case is because the command line is hard-"
40064012
"coded with filenames that only make sense within this workflow."
40074013
msgstr ""
4014+
"您是否注意到,我们并没有将 `tar --create` 工具划分到一个独立的文件,"
4015+
"而是嵌入到 CWL 工作流文件中?一般而言这样做并不是最合适的,将导致工具无法重复"
4016+
"使用。在这个特例中,如此操作的原因是命令行已是硬性编码的,其中的文件名仅对这"
4017+
"一个工作流有效。"
40084018

40094019
#: ../../src/topics/workflows.md:389 afe43b9e92e949a589f493293eff2903
40104020
msgid ""
@@ -4014,6 +4024,9 @@ msgid ""
40144024
"to compile, which would simplify its usage as a tool step in other "
40154025
"workflows."
40164026
msgstr ""
4027+
"这个例子里我们不得不在外部创制 tar 文件,但这无非是因为我们将内部工作流设计成"
4028+
"以该文件为输入。内部工作流更好的重整方式,可以是令其接受一个待编译 Java "
4029+
"文件的列表,使之作为工具步骤用于其它工作流中时的用法得以简化。"
40174030

40184031
#: ../../src/topics/workflows.md:394 239eef3a740d42a69208a8f4e716d2b3
40194032
msgid ""
@@ -4022,10 +4035,12 @@ msgid ""
40224035
" Tool description, care must be taken to improve its usability in "
40234036
"multiple workflows."
40244037
msgstr ""
4038+
"嵌套的工作流作为一种强大的功能,可以用于生成高阶函数和可复用的工作流单元——然"
4039+
"而,正如创建 CWL 工具描述时一样,我们必须用心于提高它在多个工作流间的可用性。"
40254040

40264041
#: ../../src/topics/workflows.md:398 96d1ca78cc324f40b61c4b7330447db2
40274042
msgid "Scattering Steps"
4028-
msgstr ""
4043+
msgstr "分散步骤"
40294044

40304045
#: ../../src/topics/workflows.md:400 eab4437bf9994b649954221375e3dd6d
40314046
msgid ""
@@ -4037,6 +4052,11 @@ msgid ""
40374052
"allows you to run the same workflow on multiple inputs without having to "
40384053
"generate many different commands or input yaml files."
40394054
msgstr ""
4055+
"了解了如何编写工作流,我们可以准备使用 `ScatterFeatureRequirement`. 该功能用"
4056+
"于告诉运行程序,您打算对列表中的多个输入重复运行某个工具或者工作流。这样,工"
4057+
"作流可以将输入作为数组,并对每个数组元素运行指定的步骤,如同单个输入一样。这"
4058+
"样, 我们可以让同一工作流对多个输入运行,而无需生成多个不同的命令或者 YAML "
4059+
"输入文件。"
40404060

40414061
#: ../../src/topics/workflows.md:411 c245ba0ae2074fa388ad6c35695033c8
40424062
msgid ""
@@ -4045,6 +4065,9 @@ msgid ""
40454065
"workflow that calls our first example (`hello_world.cwl`) and takes an "
40464066
"array of strings as input to the workflow:"
40474067
msgstr ""
4068+
"用户第一次接触分散 (scatter) 功能,最主要的原因一般是为了对多个不同的样本进行"
4069+
"同一分析。我们从一个简单的工作流出发,调用我们的第一个示例 (`hello_world."
4070+
"cwl`), 并以一个字符串数组作为工作流的输入:"
40484071

40494072
#: ../../src/topics/workflows.md:415 83537938ce1244709f9b72269b048d63
40504073
msgid "`scatter-workflow.cwl`"
@@ -4054,13 +4077,14 @@ msgstr "`scatter-workflow.cwl`"
40544077
msgid ""
40554078
"Aside from the `requirements` section including "
40564079
"`ScatterFeatureRequirement`, what is going on here?"
4057-
msgstr ""
4080+
msgstr "除了 `requirements` 代码段加入了 `ScatterFeatureRequirement` "
4081+
"以外,还有什么新情况?"
40584082

40594083
#: ../../src/topics/workflows.md:429 ccbbba3189404241a44736c970249b84
40604084
msgid ""
40614085
"First of all, notice that the main workflow level input here requires an "
40624086
"array of strings."
4063-
msgstr ""
4087+
msgstr "首先,请注意,主工作流级别的输入这时需要字符串数组。"
40644088

40654089
#: ../../src/topics/workflows.md:441 31eff13bb8334fc7b6d48ef6c5b1ce33
40664090
msgid ""
@@ -4069,6 +4093,9 @@ msgid ""
40694093
" particular step. Note that the input name listed after scatter is the "
40704094
"one of the step's input, not a workflow level input."
40714095
msgstr ""
4096+
"这里,我们在 `echo` 步骤下添加了名为 `scatter` "
4097+
"的新字段。该字段告诉运行程序,我们希望让这一特定步骤对输入分散运行。请注意,"
4098+
"\"scatter\" 后列出的输入名是该步骤的输入之一,而非工作流层面的输入。"
40724099

40734100
#: ../../src/topics/workflows.md:445 0d5cf8b82dbd47f2abd1ed16b9b3eb61
40744101
msgid ""
@@ -4077,10 +4104,13 @@ msgid ""
40774104
"you expect that the final output of your workflow will now have multiple "
40784105
"outputs to collect, be sure to update that to an array type as well!"
40794106
msgstr ""
4107+
"我们第一次做分散,就是这么简单。因为我们的工具并不收集任何输出,"
4108+
"我们仍然可以在工作流中写上 `outputs: []`. 但是,如果你知道工作流的最终输出需"
4109+
"要归集多个输出,请记得这里同样要更改为数组类型!"
40804110

40814111
#: ../../src/topics/workflows.md:450 38b7042a270043ba82c11cf2e758f0c8
40824112
msgid "Using the following input file:"
4083-
msgstr ""
4113+
msgstr "使用如下输入文件:"
40844114

40854115
#: ../../src/topics/workflows.md:452 b3fc75c262fe4a3a8e8bfba1abb07b3d
40864116
msgid "`scatter-job.yml`"
@@ -4092,19 +4122,26 @@ msgid ""
40924122
" calls the command `echo` on a message. If we invoke `cwltool scatter-"
40934123
"workflow.cwl scatter-job.yml` on the command line:"
40944124
msgstr ""
4125+
"提醒一下,[`hello_world.cwl`](../introduction/quick-start.md) "
4126+
"仅仅是对某段文字调用 `echo` 这个命令。如果我们在命令行调用 `cwltool scatter-"
4127+
"workflow.cwl scatter-job.yml`:"
40954128

40964129
#: ../../src/topics/workflows.md:466 b6a33410ee9a45d7bf7b2ba56f786f8f
40974130
msgid ""
40984131
"You can see that the workflow calls echo multiple times on each element "
40994132
"of our `message_array`. Ok, so how about if we want to scatter over two "
41004133
"steps in a workflow?"
41014134
msgstr ""
4135+
"可以看到,这个工作流分多次对 `message_array` 数组的每个元素一一调用 \"echo\""
4136+
". 好的,那么如果我们想要让工作流中两个步骤进行分散,该怎么办?"
41024137

41034138
#: ../../src/topics/workflows.md:469 99b5c8a845ab4beb8524a69c051e2d42
41044139
msgid ""
41054140
"Let's perform a simple echo like above, but capturing `stdout` by adding "
41064141
"the following lines instead of `outputs: []`"
41074142
msgstr ""
4143+
"和之前一样,我们来做一个简单的回显 (echo), 但这次将捕获 "
4144+
"`stdout`(标准输出)。为此,我们用以下数行代码取代 `outputs: []`"
41084145

41094146
#: ../../src/topics/workflows.md:472 97bf58937d3f4e98af702e3c1a418992
41104147
msgid "`hello_world_to_stdout.cwl`"
@@ -4114,7 +4151,7 @@ msgstr "`hello_world_to_stdout.cwl`"
41144151
msgid ""
41154152
"And add a second step that uses `wc` to count the characters in each "
41164153
"file. See the tool below:"
4117-
msgstr ""
4154+
msgstr "进而添加第二个步骤,用 `wc` 命令计算每个文件中的字符数量。请见如下工具:"
41184155

41194156
#: ../../src/topics/workflows.md:483 4afccfe982ff4be2be96cbe5889e5014
41204157
msgid "`wc-tool.cwl`"
@@ -4124,7 +4161,7 @@ msgstr "`wc-tool.cwl`"
41244161
msgid ""
41254162
"Now, how do we incorporate scatter? Remember the scatter field is under "
41264163
"each step:"
4127-
msgstr ""
4164+
msgstr "现在,该如何加入分散操作呢?请记住,\"scatter\"(分散)字段出现在每个步骤下:"
41284165

41294166
#: ../../src/topics/workflows.md:491 a7f96ec6e4f24c62ac0f5b6edcc9734b
41304167
msgid "`scatter-two-steps.cwl`"
@@ -4147,6 +4184,16 @@ msgid ""
41474184
"the first step must wait on `echo Hallo welt!`. You can see how this "
41484185
"might not scale well."
41494186
msgstr ""
4187+
"这里,我们在每一步骤下加入了 \"scatter\" 字段。对这个具体的示例而言这样做无妨"
4188+
",因为这段程序运行得很快。但是,如果要对较多样本运行更复杂的工作流,您可能得"
4189+
"另寻途径。这里,我们在每个步骤中独立地进行分散,但既然第二个步骤并不实际依赖"
4190+
"第一个步骤对所有语种(即输入数组中的一个元素)全部完成操作,我们并没有高效地"
4191+
"运用分散功能。第二个步骤期待从第一个步骤得来的数组作为其输入,因此将一直等待"
4192+
"到第一步骤完全结束才会开始运行。打个比方,假设运行 `echo Hello World!` "
4193+
"需要花1分钟,对其输出运行 `wc -c` 需要3分钟,然后 `echo Hallo welt!` "
4194+
"需要5分钟来运行,最后对其输出运行 `wc` 需要3分钟。即使 `echo Hello World!` "
4195+
"本可以在4分钟内完成,它也要实际花费8分钟,因为第一个步骤必须等待 `echo Hallo "
4196+
"welt!` 完成。很显然,运算量大时这样的表现会很差劲。"
41504197

41514198
#: ../../src/topics/workflows.md:509 85dd63daf04546b78bdcb68c1d985fa9
41524199
msgid ""

0 commit comments

Comments
 (0)