From phgrosjean at sciviews.org  Sun Dec 30 11:14:22 2007
From: phgrosjean at sciviews.org (Philippe Grosjean)
Date: Sun, 30 Dec 2007 11:14:22 +0100
Subject: [Rd] gettext() and messages in 'pkg' domain
Message-ID: <47776F7E.70307@sciviews.org>

Hello,

As I understand it, gettext() is designed to retrieve messages from 
'R-pkg' domains. As such, it cannot retrieve some of the messages in the 
'pkg' domains (those supposed to be accessed by C code only, I know), 
namely, all messages ending with space(s) or \n. This is clearly 
indicated in ?gettext (at least for trailing spaces):

"For 'gettext', leading and trailing whitespace is ignored when looking 
for the translation."

So, my questions:
1) Do I really need to write C code to retrieve all messages from 'pkg' 
domain?

2) Wouldn't it be useful to add an argument to gettext() (like trim = 
TRUE), or alternatively, to propose a Gettext() function in utils 
packages that allows retrieving those messages with trailing space(s) or 
\n in 'pkg' domain from R code?

Best,

Philippe Grosjean



[Rd] gettext() and messages in 'pkg' domain
Philippe Grosjean