From 048bb22c721260ddc93b8481c7c431f60c7b23b7 Mon Sep 17 00:00:00 2001 From: amy17519 Date: Thu, 31 Oct 2019 16:59:42 -0700 Subject: [PATCH 1/5] translate R msgs --- po/R-zh_CN.po | 69 +++++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/po/R-zh_CN.po b/po/R-zh_CN.po index 0b437f3ef..50cea1579 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: data.table 1.12.5\n" "POT-Creation-Date: 2019-10-21 16:15\n" -"PO-Revision-Date: 2019-10-04 17:06+08\n" -"Last-Translator: Michael Chirico \n" +"PO-Revision-Date: 2019-10-31 15:46+08\n" +"Last-Translator: Amy Tzu-Yu Chen \n" "Language-Team: Mandarin\n" "Language: Mandarin\n" "MIME-Version: 1.0\n" @@ -638,107 +638,112 @@ msgid "" msgstr "" msgid "Internal error: length(irows)!=length(o__)" -msgstr "" +msgstr "内部错误:length(irows)!=length(o__)" msgid "" "The setkey() normally performed by keyby= has been skipped (as if by= was " "used) because := is being used together with keyby= but the keyby= contains " "some expressions. To avoid this warning, use by= instead, or provide " "existing column names to keyby=." -msgstr "" +msgstr "因为`:=`与`keyby=`一起使用且`keyby=`含有表达式, 所以代码跳过了一般 +"`keyby=`会执行的`setkey()` -- 代码只执行了`by=`。" +若要避免此警告, 请使用`by=`, 或者提供`keyby=`现有的列名" msgid "Internal error: jvnames is length" -msgstr "" +msgstr "内部错误:jvnames 是长度" msgid "but ans is" -msgstr "" +msgstr "但是ans(答案)是" msgid "and bynames is" -msgstr "" +msgstr "同时bynames是" msgid "rownames and rownames.value cannot both be used at the same time" -msgstr "" +msgstr "rownames和rownames.value 不能同时使用" msgid "length(rownames)==" -msgstr "" +msgstr "length(rownames)== (行名长度==)" msgid "but nrow(DT)==" -msgstr "" +msgstr "但是nrow(DT)==" msgid "" ". The rownames argument specifies a single column name or number. Consider " "rownames.value= instead." -msgstr "" +msgstr "。 rownames参数为单一列名或单一数值。请考虑使用`rownames.values=`。" msgid "" "length(rownames)==0 but should be a single column name or number, or NULL" -msgstr "" +msgstr "行名长度为零,`length(rownames)==0`,但应该为单一列名,单一数值,或NULL" msgid "rownames is TRUE but key has multiple columns" -msgstr "" +msgstr "rownames是TRUE但key不只一个列" msgid "; taking first column x[,1] as rownames" -msgstr "" +msgstr "; 取第一列, `column x[,1]`, 为rownames" msgid "'" -msgstr "" +msgstr "'" msgid "' is not a column of x" -msgstr "" +msgstr "' 不是x的一个列" msgid "as.integer(rownames)==" -msgstr "" +msgstr "as.integer(rownames)==" msgid "]." -msgstr "" +msgstr "]." msgid "length(rownames.value)==" -msgstr "" +msgstr "length(rownames.value)==" msgid "but should be nrow(x)==" -msgstr "" +msgstr "但应该是nrow(x)==" msgid "" "When i is a matrix in DT[i]<-value syntax, it doesn't make sense to provide j" -msgstr "" +msgstr "当i以`DT[i]<-value`的形式出现,不需要提供j" msgid "j must be an atomic vector, see ?is.atomic" -msgstr "" +msgstr "j必须是原子向量,请参考 ?is.atomic" msgid "NA in j" -msgstr "" +msgstr "j里有NA" msgid "j must be vector of column name or positions" -msgstr "" +msgstr "j 必须是列名(column name)或列位(column position)的向量" msgid "" "Attempt to assign to column position greater than ncol(x). Create the column " "by name, instead. This logic intends to catch (most likely) user errors." -msgstr "" +msgstr "试图指定至比ncol(x)还大的列位(column position)。请指定至列名(column name)。" +"一般来说用列名取代列位能解决大部分错误。" msgid "" "data.table inherits from data.frame (from v1.5), but this data.table does " "not. Has it been created manually (e.g. by using 'structure' rather than " "'data.table') or saved to disk using a prior version of data.table?" -msgstr "" +msgstr "data.table继承自data.frame(v1.5),但这个data.table并不是。" +"请检查这个data.table是不是手动创建的(可能创建时使用了`structure()`而非`data.table()`)," +"或者是不是使用了更早的data.table版本创建后存到硬盘了。" msgid "attempting to assign invalid object to dimnames of a data.table" -msgstr "" +msgstr "试图指定无效对象给data.table的维度名(dimnames)" msgid "data.tables do not have rownames" -msgstr "" +msgstr "data.tables没有rownames" msgid "Can't assign" -msgstr "" +msgstr "无法指定" msgid "colnames to a" -msgstr "" +msgstr "列名为一个" msgid "-column data.table" -msgstr "" +msgstr "-列 data.table" msgid "'subset' must evaluate to logical" -msgstr "" +msgstr "'subset' 必须为logical" msgid "Argument 'invert' must be logical TRUE/FALSE" msgstr "" From 9573bc7b6dd6074ae24c43a557223295aface2f1 Mon Sep 17 00:00:00 2001 From: amy17519 Date: Thu, 31 Oct 2019 21:14:39 -0700 Subject: [PATCH 2/5] src error messages --- po/zh_CN.po | 89 +++++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/po/zh_CN.po b/po/zh_CN.po index 758319e16..de04dcd2e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -3,8 +3,8 @@ msgstr "" "Project-Id-Version: data.table 1.12.5\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-11-01 00:42+0800\n" -"PO-Revision-Date: 2019-10-04 17:06+08\n" -"Last-Translator: Michael Chirico \n" +"PO-Revision-Date: 2019-10-31 17:27+08\n" +"Last-Translator: Amy Tzu-Yu Chen \n" "Language-Team: Mandarin\n" "Language: Mandarin\n" "MIME-Version: 1.0\n" @@ -1098,120 +1098,121 @@ msgstr "" #: dogroups.c:458 #, c-format msgid " eval(j) took %.3fs for %d calls\n" -msgstr "" +msgstr " eval(j)取%.3fs给 %d 调用\n" #: dogroups.c:482 msgid "growVector passed NULL" -msgstr "" +msgstr "growVector通过NULL" #: fastmean.c:39 msgid "narm should be TRUE or FALSE" -msgstr "" +msgstr "narm必须是TRUE或FALSE" #: fastmean.c:45 #, c-format msgid "fastmean was passed type %s, not numeric or logical" -msgstr "" +msgstr "传递给 fastmean 的是 %s 类型,而不是数值或逻辑类型" #: fastmean.c:83 fastmean.c:111 #, c-format msgid "Internal error: type '%s' not caught earlier in fastmean" -msgstr "" +msgstr "内部错误:先前fastmean没有侦测到类型 '%s' " #: fcast.c:80 #, c-format msgid "Unsupported column type in fcast val: '%s'" -msgstr "" +msgstr "fcast val不支持的列类型:'%s'" #: fifelse.c:5 msgid "Argument 'test' must be logical." -msgstr "" +msgstr "参数'test'必须是逻辑类型。" #: fifelse.c:23 #, c-format msgid "" "'yes' is of type %s but 'no' is of type %s. Please make sure that both " "arguments have the same type." -msgstr "" +msgstr "'yes'是%s类型,但'no'是%s类型。请确认两个参数是同一类型。" #: fifelse.c:28 msgid "" "'yes' has different class than 'no'. Please make sure that both arguments " "have the same class." -msgstr "" +msgstr "'yes'的类型与'no'不同。请确认两个参数是同一类型。" #: fifelse.c:33 msgid "'yes' and 'no' are both type factor but their levels are different." -msgstr "" +msgstr "'yes'和'no'都是因子类型但他们的因子水平不同。" #: fifelse.c:38 #, c-format msgid "Length of 'yes' is %lld but must be 1 or length of 'test' (%lld)." -msgstr "" +msgstr "'yes'长度是%lld但长度必须是1或者等于'test'的长度 (%lld)。" #: fifelse.c:40 #, c-format msgid "Length of 'no' is %lld but must be 1 or length of 'test' (%lld)." -msgstr "" +msgstr "'no'长度是%lld但长度必须是1或者等于'test'的长度 (%lld)。" #: fifelse.c:51 #, c-format msgid "Length of 'na' is %lld but must be 1" -msgstr "" +msgstr "'na'长度是%lld但必须是长度必须是1" #: fifelse.c:57 #, c-format msgid "" "'yes' is of type %s but 'na' is of type %s. Please make sure that both " "arguments have the same type." -msgstr "" +msgstr "'yes'是%s类型,但'na'是%s类型。请确认两个参数是同一类型。" #: fifelse.c:59 msgid "" "'yes' has different class than 'na'. Please make sure that both arguments " "have the same class." -msgstr "" +msgstr "'yes'的类型与'na'不同。请确认两个参数是同一类型。" #: fifelse.c:63 msgid "'yes' and 'na' are both type factor but their levels are different." -msgstr "" +msgstr "'yes'和'na'都是因子类型但他们的因子水平不同" #: fifelse.c:133 #, c-format msgid "Type %s is not supported." -msgstr "" +msgstr "不支持类型 %s" #: fmelt.c:18 msgid "'x' must be an integer" -msgstr "" +msgstr "'x'必须是整数" #: fmelt.c:19 msgid "'n' must be a positive integer" -msgstr "" +msgstr "'n'必须是正整数" #: fmelt.c:41 msgid "Argument to 'which' must be logical" -msgstr "" +msgstr "'which'的参数必须是逻辑值" #: fmelt.c:70 msgid "concat: 'vec must be a character vector" -msgstr "" +msgstr "串联:'vec 必须是一个字符向量" #: fmelt.c:71 msgid "concat: 'idx' must be an integer vector of length >= 0" -msgstr "" +msgstr "串联:'idx' 必须为一个长度>= 0的整数向量" #: fmelt.c:75 #, c-format msgid "" "Internal error in concat: 'idx' must take values between 0 and length(vec); " "0 <= idx <= %d" -msgstr "" +msgstr "串联内部错误:'idx'必须为0到length(vec)之间的值;" +"0 <= idx <= %d" #: fmelt.c:102 #, c-format msgid "Unknown 'measure.vars' type %s at index %d of list" -msgstr "" +msgstr "未知'measure.vars'类型 %s,位于列表中 %d" #: fmelt.c:148 #, c-format @@ -1220,80 +1221,86 @@ msgid "" "non-numeric/integer/logical type columns are considered id.vars, which in " "this case are columns [%s]. Consider providing at least one of 'id' or " "'measure' vars in future." -msgstr "" +msgstr "当'id.vars'和'measure.vars'都是NULL时,data.table会自动猜测适当值。" +"所有非数值/整数/逻辑类型列会作为'id.vars',即以下列 [%s]。" +"以后请考虑择一指定'id.vars'或'measure.vars'。" #: fmelt.c:154 fmelt.c:219 #, c-format msgid "Unknown 'id.vars' type %s, must be character or integer vector" -msgstr "" +msgstr "未知'id.vars'类型 %s,必须是字符或者整数向量(vector)" #: fmelt.c:159 fmelt.c:223 msgid "One or more values in 'id.vars' is invalid." -msgstr "" +msgstr "'id.vars'里,一或多个数值无效" #: fmelt.c:175 msgid "" "'measure.vars' is missing. Assigning all columns other than 'id.vars' " "columns as 'measure.vars'.\n" -msgstr "" +msgstr "找不到'measure.vars'。将指定所有'id.vars'以外的所有列为" +"'measure.vars'。\n" #: fmelt.c:176 #, c-format msgid "Assigned 'measure.vars' are [%s].\n" -msgstr "" +msgstr "指定'measure.vars'为[%s]。\n" #: fmelt.c:184 #, c-format msgid "" "Unknown 'measure.vars' type %s, must be character or integer vector/list" -msgstr "" +msgstr "未知'measure.vars'类型 %s,必须是字符或者整数向量(vector)/列表(list)" #: fmelt.c:193 fmelt.c:239 msgid "One or more values in 'measure.vars' is invalid." -msgstr "" +msgstr "'measure.vars'里,一或多个数值无效" #: fmelt.c:211 msgid "" "'id.vars' is missing. Assigning all columns other than 'measure.vars' " "columns as 'id.vars'.\n" -msgstr "" +msgstr "找不到'id.vars'。将指定所有'measure.vars'以外的所有列为'id.vars'。\n" #: fmelt.c:212 #, c-format msgid "Assigned 'id.vars' are [%s].\n" -msgstr "" +msgstr "指定的 'id.vars' 是 [%s].\n" #: fmelt.c:231 #, c-format msgid "Unknown 'measure.vars' type %s, must be character or integer vector" -msgstr "" +msgstr "未知'measure.vars'类型 %s,必须是字符或者整数向量" #: fmelt.c:276 msgid "" "When 'measure.vars' is a list, 'value.name' must be a character vector of " "length =1 or =length(measure.vars)." -msgstr "" +msgstr "当'measure.vars'是一个列表(list), 'value.name' 必须是一个" +"长度为1或者等于length(measure.vars)的字符向量" + #: fmelt.c:277 msgid "" "When 'measure.vars' is either not specified or a character/integer vector, " "'value.name' must be a character vector of length =1." -msgstr "" +msgstr "当'measure.vars'未被指定或者是一个字符/整数向量时,"" +"'value.name'必须是一个长度1的字符/整数向量" #: fmelt.c:280 msgid "'variable.name' must be a character/integer vector of length=1." -msgstr "" +msgstr "'variable.name' 必须是长度1的字符/整数向量。" #: fmelt.c:329 msgid "" "Internal error: combineFactorLevels in fmelt.c expects all-character input" -msgstr "" +msgstr "内部错误:fmelt.c里的combineFactorLevels期望输入值为全字符" #: fmelt.c:332 msgid "" "Internal error: combineFactorLevels in fmelt.c expects a character target to " "factorize" -msgstr "" +msgstr "内部错误:fmelt.c里的combineFactorLevels期望一个字符来分解" #: fmelt.c:385 #, c-format From 2273f2acb43e6798d47ab64a27cec51d28ee735e Mon Sep 17 00:00:00 2001 From: amy17519 Date: Thu, 31 Oct 2019 21:17:37 -0700 Subject: [PATCH 3/5] missing quote --- 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 50cea1579..816cb69fb 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -647,7 +647,7 @@ msgid "" "existing column names to keyby=." msgstr "因为`:=`与`keyby=`一起使用且`keyby=`含有表达式, 所以代码跳过了一般 "`keyby=`会执行的`setkey()` -- 代码只执行了`by=`。" -若要避免此警告, 请使用`by=`, 或者提供`keyby=`现有的列名" +"若要避免此警告, 请使用`by=`, 或者提供`keyby=`现有的列名" msgid "Internal error: jvnames is length" msgstr "内部错误:jvnames 是长度" From 359a39ac4b6a65c3d3d1b498155136c99920b519 Mon Sep 17 00:00:00 2001 From: amy17519 Date: Thu, 31 Oct 2019 21:34:20 -0700 Subject: [PATCH 4/5] missing quote --- 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 816cb69fb..55fc19073 100644 --- a/po/R-zh_CN.po +++ b/po/R-zh_CN.po @@ -645,7 +645,7 @@ msgid "" "used) because := is being used together with keyby= but the keyby= contains " "some expressions. To avoid this warning, use by= instead, or provide " "existing column names to keyby=." -msgstr "因为`:=`与`keyby=`一起使用且`keyby=`含有表达式, 所以代码跳过了一般 +msgstr "因为`:=`与`keyby=`一起使用且`keyby=`含有表达式, 所以代码跳过了一般" "`keyby=`会执行的`setkey()` -- 代码只执行了`by=`。" "若要避免此警告, 请使用`by=`, 或者提供`keyby=`现有的列名" From 0ac9f394f5293c11123d117895ac0f949ecf79a5 Mon Sep 17 00:00:00 2001 From: Amy Tzu-Yu Chen Date: Thu, 14 Nov 2019 11:14:29 -0800 Subject: [PATCH 5/5] remove extra quote --- po/zh_CN.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/zh_CN.po b/po/zh_CN.po index 8257dac94..c8875025e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -1300,7 +1300,7 @@ msgstr "当'measure.vars'是一个列表(list), 'value.name' 必须是一个" msgid "" "When 'measure.vars' is either not specified or a character/integer vector, " "'value.name' must be a character vector of length =1." -msgstr "当'measure.vars'未被指定或者是一个字符/整数向量时,"" +msgstr "当'measure.vars'未被指定或者是一个字符/整数向量时," "'value.name'必须是一个长度1的字符/整数向量" #: fmelt.c:280