[Rd] Localization of Rd files
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Feb 8 17:23:29 CET 2013
On 08/02/2013 15:13, Julien Barnier wrote:
> I'm currently developing a small package essentially used by non-english
> speaking people, So I wrote the help pages (Rd files) in french.
> What I'd like to know is if there is a way to localize these Rd files, ie
> provide the same file in different languages to have it displayed according
> to the locale of the user's system.
No. Apart from anything else, .Rd files are processed at installation
time, when the locale may well be different from the user's locale.
You might as well have different versions of the package for different
languages -- people have done that.
> I've found that there are possibilities to translate text messages from
> package functions with gettext, but nothing about Rd files.
> Thanks in advance for any hints.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel