Skip to content

Commit 15290d0

Browse files
committed
.onAttach: translate Sys.setLanguage('en') message
1 parent b7f2106 commit 15290d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/onAttach.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
if (gettext("TRANSLATION CHECK") != "TRANSLATION CHECK") {
2828
packageStartupMessagef(
2929
"**********\nRunning data.table in English; package support is available in English only. When searching for online help, be sure to also check for the English error message. This can be obtained by looking at the po/R-<locale>.po and po/<locale>.po files in the package source, where the native language and English error messages can be found side-by-side.%s\n**********",
30-
if (exists('Sys.setLanguage', envir=baseenv())) " You can also try calling Sys.setLanguage('en') prior to reproducing the error message." else ""
30+
if (exists('Sys.setLanguage', envir=baseenv())) gettext(" You can also try calling Sys.setLanguage('en') prior to reproducing the error message.") else ""
3131
)
3232
}
3333
if (dev && (Sys.Date() - as.Date(d))>28L)

0 commit comments

Comments
 (0)