From ripley at stats.ox.ac.uk  Fri Feb  8 17:23:29 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 08 Feb 2013 16:23:29 +0000
Subject: [Rd] Localization of Rd files
In-Reply-To: <loom.20130208T160835-448@post.gmane.org>
References: <loom.20130208T160835-448@post.gmane.org>
Message-ID: <51152681.8060802@stats.ox.ac.uk>

On 08/02/2013 15:13, Julien Barnier wrote:
> Hi,
>
> 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.
>
> Sincerely,
>


-- 
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



[Rd] Localization of Rd files
Prof Brian Ripley