-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues in translatable messages in R code #6532
Comments
Line 120 in 4ffe958
|
@tdhock can you help me understand Line 70 in 6abbaaf
Can we just drop the |
since measure is exported, we should export measurev too. both are documented because they are meant to be used as the |
OK, filed #6535. |
I see now in the tests that |
the user could call either measure() or measurev() inside > melt(data.table(iris)[1], measure.vars=measure(part, part))
Error in err.names.unique(group.desc, names(fun.list)) :
... arguments to measure should be uniquely named, problems: [part]
> melt(data.table(iris)[1], measure.vars=measurev(list(part=NULL, part=NULL)))
Error in err.names.unique(group.desc, names(fun.list)) :
elements of fun.list should be uniquely named, problems: [part] |
Yea, I agree it's not perfect, but it certainly looks actionable to me because |
In deve.R I think we can merge
into
I think we can use |
This is tricky code. Objects that live in package namespaces are "lazy-loaded": the namespace environment initially contains "promise" objects that, when first accessed, quickly seek to pre-remembered offsets in
It may be better to limit the "last on the way out" code to base-R functions only: pkg_rev = unname(read.dcf(system.file("DESCRIPTION", package=pkg, lib.loc=lib, mustWork=TRUE), fields=field)[, field])
cat(sprintf(
if (upg) gettext(
"R %s package %s has been updated to (%s)\n", domain = "R-data.table"
) else gettext(
"R %s package %s is up-to-date at (%s)\n", domain = "R-data.table"
),
pkg, pkg_rev, utils::packageVersion(pkg, lib.loc=lib)
)) |
Fragmented sentences
%s
iselements of fun.list
or ...arguments to measure
or maybemeasured columns
, untranslated, coming from thegroup.desc
argument, which is a documented ("for internal use") interface. Another%s
isnumber of capture groups in pattern
ormax number of items after splitting column names
, also untranslated.data.table/R/fmelt.R
Line 91 in 745160d
data.table/R/fmelt.R
Line 97 in 745160d
data.table/R/fmelt.R
Line 102 in 745160d
%1$s
iskeys
orindices
, untranslated.data.table/R/setops.R
Lines 160 to 177 in 745160d
%3$s
is eithererror
orwarning
, untranslated. That's relatively minor and could be worked around in translation (condition of class %s
):data.table/R/fread.R
Line 314 in 745160d
Minor issues with correctness
POSIXct
, not justPOSIX
(which could be read asPOSIXt
orPOSIXlt
, and we don't likePOSIXlt
):data.table/R/between.R
Line 13 in 745160d
data.table/R/between.R
Line 15 in 745160d
]
at the end:data.table/R/data.table.R
Line 295 in 745160d
}
needs to be replaced with]
data.table/R/data.table.R
Line 412 in 745160d
FIXED CLOSED
:data.table/R/onLoad.R
Line 27 in 745160d
Nitpicking
Sys.setLanguage
function which (tries to) set thegettext
language during runtime, maybe recommend it here?data.table/R/onAttach.R
Line 28 in 745160d
data.table
/data.frame
, maybe remove thes
?data.table/R/duplicated.R
Line 105 in 745160d
s/both libraries/both packages/
data.table/R/fmelt.R
Line 17 in 745160d
data.table/R/setops.R
Line 9 in 745160d
# nontranslate
because it's from a different domaindata.table/R/test.data.table.R
Line 118 in 745160d
vector **of** length %d
?data.table/R/data.table.R
Line 1043 in 745160d
The text was updated successfully, but these errors were encountered: