Rev 61282 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
NB: These instructions are only for R 3.x.yThere is only support for preparing translations on a Unix-alike as aUTF-8 locale has to be used. (Apart from the RGui translations: seebelow.)If you convert a C file for use with gettext, add it to POTFILES inthis directory.Targetmake update-pkg-poupdates the message catalogs for the C and R code in the interpreterand standard packages. To update just one package, see?tools::update-pkg-po .If you add a package with messages that should be translated (hencenot 'datasets'), add it to R_PKGS_PO in po/Makefile.in. R-leveltemplate catalogs (R-pkg.pot) are produced automatically by 'makeupdate-pkg-po' but for a C-level template catalog you need to touchsrc/library/pkg/po/pkg.pot: only do so once some messages have beenmarked for translation.For package translations, add the [R-]lang.po files to the package'spo directory (and perhaps update THANKS in this directory). Note thattranslations for the interpreter itself are insrc/library/base/po/R.pot.Note also tools::checkPoFiles().R-core members: after updating translations, runmake update-pkg-po update-RGuiand then commit the changes in the svn checkout. See?tools::make_translations_pkg for how to distribute updatedtranslations.Windows RGui translations=========================These are contained in src/library/base/po/RGui.pot, and translationsshould be called RGui-ll.po for language 'll'.To re-make RGui.pot and all the translations use 'make update-RGui'('make -f Makefile.win update-RGui' on Windows).Adding translations to other packages=====================================See 'Writing R Extensions'.Subversion note===============If you need to add a en@quot directory, the current incantation appears to besvn add .../en@quot@with a trailing @.