From 7df986f2625280f00b2a2fc01a8808e066372dbe Mon Sep 17 00:00:00 2001 From: gaoch Date: Sun, 20 Oct 2019 11:59:07 +0800 Subject: [PATCH 1/4] Finished the translation of line 3058-3231 in po/zh_CN.po. Totally 34 messages. --- po/zh_CN.po | 77 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/po/zh_CN.po b/po/zh_CN.po index 1f9f948579..233850575e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3056,11 +3056,11 @@ msgstr "" #: gsumm.c:47 msgid "l is not an integer vector" -msgstr "" +msgstr "l 不是整数向量" #: gsumm.c:56 msgid "irowsArg is neither an integer vector nor NULL" -msgstr "" +msgstr "irowsArg 既不是整数向量也不是 NULL" #: gsumm.c:58 #, c-format @@ -3070,47 +3070,48 @@ msgstr "" #: gsumm.c:66 #, c-format msgid "o has length %d but sum(l)=%d" -msgstr "" +msgstr "o 的长度为 %d,但 sum(l) = %d" #: gsumm.c:69 msgid "Internal error: o's maxgrpn attribute mismatches recalculated maxgrpn" -msgstr "" +msgstr "内部错误:o 的 maxgrpn 属性与重新计算的 maxgrpn 不匹配" #: gsumm.c:89 #, c-format msgid "" "Internal error: nrow=%d ngrp=%d nbit=%d shift=%d highSize=%d nBatch=%d " "batchSize=%d lastBatchSize=%d\n" -msgstr "" +msgstr "内部错误:nrow=%d ngrp=%d nbit=%d shift=%d highSize=%d nBatch=%d " +"batchSize=%d lastBatchSize=%d\n" #: gsumm.c:98 #, c-format msgid "gforce initial population of grp took %.3f\n" -msgstr "" +msgstr "grp 的 gforce 初始群体数占了 %.3f\n " #: gsumm.c:116 msgid "" "Internal error: Failed to allocate counts or TMP when assigning g in gforce" -msgstr "" +msgstr "内部错误:在 gforce 中设定 g 时,未能成功分配 counts 或者 TMP" #: gsumm.c:194 #, c-format msgid "gforce assign high and low took %.3f\n" -msgstr "" +msgstr "gforce 分配 high 和 low 用了 %.3f\n" #: gsumm.c:200 #, c-format msgid "gforce eval took %.3f\n" -msgstr "" +msgstr "gforce eval 用了 %.3f\n" #: gsumm.c:216 msgid "gather took ... " -msgstr "" +msgstr "gather 用了 ..." #: gsumm.c:334 #, c-format msgid "gather implemented for INTSXP, REALSXP, and CPLXSXP but not '%s'" -msgstr "" +msgstr "gather 已支持 INTSXP,REALSXP 和 CPLXSXP,但不支持 '%s'" #: gsumm.c:336 gsumm.c:568 #, c-format @@ -3119,61 +3120,65 @@ msgstr "" #: gsumm.c:345 msgid "sum is not meaningful for factors." -msgstr "" +msgstr "因子的和没有意义。" #: gsumm.c:349 #, c-format msgid "This gsum took (narm=%s) ... " -msgstr "" +msgstr "gsum 占用了 (narm=%s) ..." #: gsumm.c:350 gsumm.c:606 #, c-format msgid "nrow [%d] != length(x) [%d] in gsum" -msgstr "" +msgstr "gsum 中 nrow [%d] != length(x) [%d]" #: gsumm.c:404 msgid "" "The sum of an integer column for a group was more than type 'integer' can " "hold so the result has been coerced to 'numeric' automatically for " "convenience." -msgstr "" +msgstr "某整数列分组求和的结果中," +"出现了超过了整型(interger)数值所允许最大值的情况," +"故结果被自动转换为数值类型(numeric)" #: gsumm.c:565 #, c-format msgid "" "Type '%s' not supported by GForce sum (gsum). Either add the prefix base::" "sum(.) or turn off GForce optimization using options(datatable.optimize=1)" -msgstr "" +msgstr "GForce 求和(gsum)不支持类型 '%s'。请使用 base::sum(.) 或者" +"设置 options(datatable.optimize=1) 关闭 GForce 优化" #: gsumm.c:578 msgid "" "GForce mean can only be applied to columns, not .SD or similar. Likely " "you're looking for 'DT[,lapply(.SD,mean),by=,.SDcols=]'. See ?data.table." -msgstr "" +msgstr "GForce 求平均值仅适用于列,而不能用于 .SD 或其它。" +"或许你在查找 'DT[,lapply(.SD,mean),by=,.SDcols=]'。参见 ?data.table 。" #: gsumm.c:579 msgid "mean is not meaningful for factors." -msgstr "" +msgstr "因子的平均值没有意义" #: gsumm.c:599 #, c-format msgid "Internal error: gsum returned type '%s'. typeof(x) is '%s'" -msgstr "" +msgstr "内部错误:gsum 返回的类型是 '%s',而 typeof(x) 的结果则是 '%s'" #: gsumm.c:609 #, c-format msgid "Unable to allocate %d * %d bytes for sum in gmean na.rm=TRUE" -msgstr "" +msgstr "无法为 gmean na.rm=TRUE 的总和(sum)分配 %d * %d 字节空间" #: gsumm.c:612 #, c-format msgid "Unable to allocate %d * %d bytes for counts in gmean na.rm=TRUE" -msgstr "" +msgstr "无法为 gmean na.rm=TRUE 的计数(counts)分配 %d * %d 字节空间" #: gsumm.c:638 #, c-format msgid "Unable to allocate %d * %d bytes for si in gmean na.rm=TRUE" -msgstr "" +msgstr "无法为 gmean na.rm=TRUE 的 si 分配 %d * %d 字节空间" #: gsumm.c:650 #, c-format @@ -3181,11 +3186,12 @@ msgid "" "Type '%s' not supported by GForce mean (gmean) na.rm=TRUE. Either add the " "prefix base::mean(.) or turn off GForce optimization using options(datatable." "optimize=1)" -msgstr "" +msgstr "GForce 求均值(gmean)不支持类型 '%s'。请使用 base::mean(.) 或者" +"设置 options(datatable.optimize=1) 关闭 GForce 优化" #: gsumm.c:674 msgid "Internal error: unsupported type at the end of gmean" -msgstr "" +msgstr "内部错误:gmean 结尾处存在不支持的类型" #: gsumm.c:687 msgid "" @@ -3193,38 +3199,45 @@ msgid "" "of all items in a list such as .SD, either add the prefix base::min(.SD) or " "turn off GForce optimization using options(datatable.optimize=1). More " "likely, you may be looking for 'DT[,lapply(.SD,min),by=,.SDcols=]'" -msgstr "" +msgstr "GForce 求最小值(min)仅适用于列,而不能用于 .SD 或其它。" +"要找到列表中(如 .SD)所有元素的最小值,须使用 base::min(.SD) 或者" +"设置 options(datatable.optimize=1) 关闭 GForce 优化。" +"你更像是在查找 'DT[,lapply(.SD,min),by=,.SDcols=]'" #: gsumm.c:688 msgid "min is not meaningful for factors." -msgstr "" +msgstr "因子的最小值没有意义。" #: gsumm.c:693 #, c-format msgid "nrow [%d] != length(x) [%d] in gmin" -msgstr "" +msgstr "gmin 中 nrow [%d] != length(x) [%d]" #: gsumm.c:717 gsumm.c:850 msgid "" "No non-missing values found in at least one group. Coercing to numeric type " "and returning 'Inf' for such groups to be consistent with base" -msgstr "" +msgstr "在至少一个分组中没有发现缺失值。" +"为了与 base 保持一致,将这些组强制转换为数值类型并返回 ‘Inf’。" #: gsumm.c:756 gsumm.c:891 msgid "" "No non-missing values found in at least one group. Returning 'NA' for such " "groups to be consistent with base" -msgstr "" +msgstr "在至少一个分组中没有发现缺失值。" +"为了与 base 保持一致,这些组将返回 ‘NA’。" #: gsumm.c:783 msgid "" "No non-missing values found in at least one group. Returning 'Inf' for such " "groups to be consistent with base" -msgstr "" +msgstr "在至少一个分组中没有发现缺失值。" +"为了与 base 保持一致,这些组将返回 ‘Inf’。" + #: gsumm.c:791 msgid "Type 'complex' has no well-defined min" -msgstr "" +msgstr "复数不能比较大小,故没有最小值" #: gsumm.c:794 #, c-format @@ -3232,6 +3245,8 @@ msgid "" "Type '%s' not supported by GForce min (gmin). Either add the prefix base::" "min(.) or turn off GForce optimization using options(datatable.optimize=1)" msgstr "" +"类型'%s'不支持应用 GForce 最小值(gmin) 优化。你可以添加前缀 base::" +"min(.) 或者使用 options(datatable.optimize=1) 关闭 GForce 优化" #: gsumm.c:806 msgid "" From 3d57611a63e811900da926603ad8008e8032401b Mon Sep 17 00:00:00 2001 From: gaoch Date: Sun, 20 Oct 2019 13:11:55 +0800 Subject: [PATCH 2/4] Finished the translation assigned to Chun-Hui Gao in R-zh_cn.po. Lines 1500-1598 in original R-zh_CN.po. Totally 26 messages. --- po/R-zh_CN.po | 58 ++++++++++++++++++++++++++++----------------------- po/zh_CN.po | 2 +- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/po/R-zh_CN.po b/po/R-zh_CN.po index d3a9e851b4..810f497111 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -1498,105 +1498,111 @@ msgid "dateTimeAs must be a single string" msgstr "" msgid "dateTimeAs must be 'ISO','squash','epoch' or 'write.csv'" -msgstr "" +msgstr "dateTimeAs 蹇呴』鏄� 'ISO'锛�'squash'锛�'epoch' 鎴� 'write.csv'" msgid "logicalAsInt has been renamed logical01. Use logical01 only, not both." -msgstr "" +msgstr "logicalAsInt 宸查噸鍛藉悕涓� logical01銆備笉瑕佸悓鏃朵娇鐢ㄥ畠浠紝浠呬娇鐢� logical01銆�" msgid "x being coerced from class: matrix to data.table" -msgstr "" +msgstr "x 鐨勭被灏嗗己鍒朵粠 matrix 杞彉涓� data.table" msgid "Input has no columns; doing nothing." -msgstr "" +msgstr "杈撳叆娌℃湁鍒楋紝涓嶆墽琛屼换浣曟搷浣溿��" msgid "If you intended to overwrite the file at" -msgstr "" +msgstr "濡傛灉浣犳墦绠楄鐩栨枃浠�" msgid "with an empty one, please use file.remove first." -msgstr "" +msgstr "涓虹┖鏂囦欢锛岃鍏堜娇鐢� file.remove銆�" msgid "Input has no columns; creating an empty file at '" -msgstr "" +msgstr "杈撳叆娌℃湁鍒楋紝灏嗗垱寤轰竴涓┖鏂囦欢 '" msgid "' and exiting." -msgstr "" +msgstr "' 骞堕��鍑恒��" msgid "" "'data.table' relies on the package 'yaml' to write the file header; please " "add this to your library with install.packages('yaml') and try again." -msgstr "" +msgstr "'data.table' 渚濊禆浜� 'yaml' 鍖呮潵鍐欐枃浠跺ご锛�" +"璇疯繍琛� install.packages('yaml') 瀹夎 'yaml' 鍖呭悗鍐嶈瘯銆�" msgid "Argument 'x' must be a data.table object" -msgstr "" +msgstr "'x' 鍙傛暟蹇呴』鏄竴涓� data.table 瀵硅薄" msgid "" "Argument 'by' must be a character vector of column names used in grouping." -msgstr "" +msgstr "'by' 鍙傛暟蹇呴』鏄竴涓瓧绗﹀悜閲忥紝鍚戦噺鐨勫厓绱犳槸鍒楀悕锛岀敤浜庡垎缁勩��" msgid "Argument 'id' must be a logical scalar." -msgstr "" +msgstr "'id' 鍙傛暟蹇呴』鏄竴涓�昏緫鏍囬噺銆�" msgid "" "Argument 'x' is a 0-column data.table; no measure to apply grouping over." -msgstr "" +msgstr "'x' 鍙傛暟鏄竴涓� 0 鍒楃殑 data.table锛涙棤娉曞鍏跺簲鐢ㄥ垎缁勩��" msgid "Input data.table must not contain duplicate column names." -msgstr "" +msgstr "杈撳叆 data.table 涓嶈兘鍚湁閲嶅鐨勫垪鍚嶃��" msgid "Argument 'by' must have unique column names for grouping." -msgstr "" +msgstr "'by' 鍙傛暟蹇呴』鍖呭惈鐢ㄤ簬鍒嗙粍鐨勫敮涓�鍒楀悕銆�" msgid "Argument 'sets' must be a list of character vectors." -msgstr "" +msgstr "'sets' 鍙傛暟蹇呴』鏄竴涓瓧绗﹀悜閲忕殑鍒楄〃銆�" msgid "" "All columns used in 'sets' argument must be in 'by' too. Columns used in " "'sets' but not present in 'by':" -msgstr "" +msgstr "鍦� 'sets' 鍙傛暟涓簲鐢ㄧ殑鎵�鏈夊垪涔熷繀椤诲湪 'by' 涓��" +"褰撳墠 'sets' 鍖呭惈鑰� 'by' 涓笉鍚殑鍒楁湁锛�" msgid "" "When using `id=TRUE` the 'x' data.table must not have a column named " "'grouping'." -msgstr "" +msgstr "褰撲娇鐢� `id=TRUE``id=TRUE` 鏃讹紝" +"data.table 'x' 涓嶈兘鍖呭惈鍚嶄负 'grouping' 鐨勫垪銆�" msgid "" "Character vectors in 'sets' list must not have duplicated column names " "within a single grouping set." -msgstr "" +msgstr "鍦ㄥ崟涓垎缁勪腑锛�'sets' 鍒楄〃涓殑瀛楃涓插悜閲忎笉鑳芥湁閲嶅鐨勫垪鍚嶃��" msgid "" "Double counting is going to happen. Argument 'sets' should be unique without " "taking order into account, unless you really want double counting, then get " "used to that warning. Otherwise `sets=unique(lapply(sets, sort))` will do " "the trick." -msgstr "" +msgstr "灏嗕細鍙戠敓閲嶅璁℃暟銆傝嫢浣犵湡鎯抽噸澶嶈鏁帮紝璇峰拷鐣ヨ璀﹀憡銆�" +"鍚﹀垯鍙傛暟 'sets' 搴旇鏄敮涓�鐨勩�佹棤搴忕殑锛屽彲浠ヤ娇鐢� `sets=unique(lapply(sets, sort))`" +"鏉ュ畬鎴愯鎿嶄綔銆�" msgid "" "Expression passed to grouping sets function must not update by reference. " "Use ':=' on results of your grouping function." -msgstr "" +msgstr "浼犻�掔粰鍒嗙粍鐩稿叧鍑芥暟鐨勮〃杈惧紡涓嶈兘閫氳繃寮曠敤鏇存柊銆�" +"璇峰湪浣犵殑鍒嗙粍鍑芥暟杩斿洖鐨勭粨鏋滀腑浣跨敤 ':=' 銆�" msgid "" "When using `id=TRUE` the 'j' expression must not evaluate to a column named " "'grouping'." -msgstr "" +msgstr "褰� `id=TRUE` 鏃讹紝'j' 琛ㄨ揪寮忎笉鑳介拡瀵� 'grouping' 鍒楁眰鍊笺��" msgid "" "There exists duplicated column names in the results, ensure the column " "passed/evaluated in `j` and those in `by` are not overlapping." -msgstr "" +msgstr "缁撴灉涓瓨鍦ㄩ噸澶嶇殑鍒楀悕锛岃纭繚 `j` 鍜� `by` 浼犻�掔殑鍒椾腑娌℃湁鍙戠敓閲嶅彔銆�" msgid "" "Using integer64 class columns require to have 'bit64' package installed." -msgstr "" +msgstr "瑕佷娇鐢� integer64 绫婚渶瑕佸厛瀹夎 'bit64' 鍖呫��" msgid "" "internal error, package:xts is on search path but could not be loaded via " "requireNamespace" -msgstr "" +msgstr "鍐呴儴閿欒锛屽湪鎼滅储鏃舵壘鍒颁簡 xts 鍖咃紝浣嗘棤娉曚娇鐢� requireNamespace 鍔犺浇" msgid "Argument 'sort' should be logical TRUE/FALSE" -msgstr "" +msgstr "鍙傛暟 'sort' 搴斾负閫昏緫鍊� TRUE 鎴� FALSE" msgid "Argument 'no.dups' should be logical TRUE/FALSE" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 233850575e..48fb4a2929 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3092,7 +3092,7 @@ msgstr "grp #: gsumm.c:116 msgid "" "Internal error: Failed to allocate counts or TMP when assigning g in gforce" -msgstr "内部错误:在 gforce 中设定 g 时,未能成功分配 counts 或者 TMP" +msgstr "内部错误:在 gforce 中为 g 赋值时,未能成功为 counts 或者 TMP 分配空间" #: gsumm.c:194 #, c-format From 816ec5f15e2cd45e557e61d77ba96c9b4f658702 Mon Sep 17 00:00:00 2001 From: gaoch Date: Mon, 21 Oct 2019 21:19:42 +0800 Subject: [PATCH 3/4] Resolved reviewer's comments. --- po/R-zh_CN.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/R-zh_CN.po b/po/R-zh_CN.po index 6baca335ab..07ac7cc078 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -1542,10 +1542,10 @@ msgid "" msgstr "'x' 鍙傛暟鏄竴涓� 0 鍒楃殑 data.table锛涙棤娉曞鍏跺簲鐢ㄥ垎缁勩��" msgid "Input data.table must not contain duplicate column names." -msgstr "杈撳叆 data.table 涓嶈兘鍚湁閲嶅鐨勫垪鍚嶃��" +msgstr "浣滀负杈撳叆鐨� data.table 瀵硅薄涓嶈兘鍚湁閲嶅鐨勫垪鍚嶃��" msgid "Argument 'by' must have unique column names for grouping." -msgstr "'by' 鍙傛暟蹇呴』鍖呭惈鐢ㄤ簬鍒嗙粍鐨勫敮涓�鍒楀悕銆�" +msgstr "'by' 鍙傛暟鐢ㄤ簬鍒嗙粍锛屼笉鍙寘鍚噸澶嶅垪鍚嶃��" msgid "Argument 'sets' must be a list of character vectors." msgstr "'sets' 鍙傛暟蹇呴』鏄竴涓瓧绗﹀悜閲忕殑鍒楄〃銆�" @@ -1559,7 +1559,7 @@ msgstr "鍦� 'sets' 鍙傛暟涓簲鐢ㄧ殑鎵�鏈夊垪涔熷繀椤诲湪 'by' 涓��" msgid "" "When using `id=TRUE` the 'x' data.table must not have a column named " "'grouping'." -msgstr "褰撲娇鐢� `id=TRUE``id=TRUE` 鏃讹紝" +msgstr "褰撲娇鐢� `id=TRUE` 鏃讹紝" "data.table 'x' 涓嶈兘鍖呭惈鍚嶄负 'grouping' 鐨勫垪銆�" msgid "" From b1ec93dc35b2a9193fdda170221baf387c95e496 Mon Sep 17 00:00:00 2001 From: gaoch Date: Mon, 21 Oct 2019 21:21:10 +0800 Subject: [PATCH 4/4] Resolved reviewer's comments. --- po/R-zh_CN.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/R-zh_CN.po b/po/R-zh_CN.po index 07ac7cc078..ec3b630c3c 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -1597,7 +1597,7 @@ msgstr "缁撴灉涓瓨鍦ㄩ噸澶嶇殑鍒楀悕锛岃纭繚 `j` 鍜� `by` 浼犻�掔殑鍒椾腑 msgid "" "Using integer64 class columns require to have 'bit64' package installed." -msgstr "瑕佷娇鐢� integer64 绫婚渶瑕佸厛瀹夎 'bit64' 鍖呫��" +msgstr "瑕佸湪鍒椾腑浣跨敤 integer64 绫伙紝闇�瑕佸厛瀹夎 'bit64' 鍖呫��" msgid "" "internal error, package:xts is on search path but could not be loaded via "