[Rd] gettext(msgid, domain="R") doesn't work for some 'msgid':s
henr|k@bengt@@on @end|ng |rom gm@||@com
Fri Nov 5 15:51:22 CET 2021
I'm trying to reuse some of the translations available in base R by using:
This works great for most 'msgid's, e.g.
$ LANGUAGE=de Rscript -e 'gettext("cannot get working directory", domain="R")'
 "kann das Arbeitsverzeichnis nicht ermitteln"
However, it does not work for all. For instance,
$ LANGUAGE=de Rscript -e 'gettext("Execution halted\n", domain="R")'
 "Execution halted\n"
This despite that 'msgid' existing in:
$ grep -C 2 -F 'Execution halted\n' src/library/base/po/de.po
msgid "Execution halted\n"
msgstr "Ausführung angehalten\n"
It could be that the trailing newline causes problems, because the
same happens also for:
$ LANGUAGE=de Rscript --vanilla -e 'gettext("error during cleanup\n",
 "error during cleanup\n"
Is this meant to work, and if so, how do I get it to work, or is it a bug?
More information about the R-devel