Skip to content

Commit 032b9c7

Browse files
authored
.onAttach: translate Sys.setLanguage('en') message (#6809)
1 parent 00d53f4 commit 032b9c7

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)