Rev 45851 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
The Makefile.in.in here was originally produced by gettextize, but hassince been modified extensively.If you convert a C file for use with gettext, add it to POTFILES.in andthen runmake update-poto recreate R.pot and update the automated `translations'.Targetmake update-pkg-poupdates the message catalogs for the C and R code in the standard packages,uses msgmerge --update to update the translations and then re-makes thecompiled (.mo) files.To do this for an individual standard package usemake pkgname.pkg-updatee.g. make grid.pkg-update.To add a new translation, add the lang.po file to this directory andadd the language to LINGUAS. Hopefully 'make all R' (in the builddir,if separate) will do the rest (create ll.gmo and install it asrequired). For fuller manual control, usemsgfmt -c --statistics -o ll.gmo ll.poto check and compile the translation, andmkdir R_BUILD_DIR/share/locale/ll/LC_MESSAGEScp ll.gmo R_BUILD_DIR/share/locale/ll/LC_MESSAGES/R.moto install it manually for testing.An R-core member, after fixing a translation file, e.g.,../src/library/<pkg>/po/R-<ll>.poneeds to use msgfmt as above, e.g., inside the <pkg>/po/ directory,msgfmt -c --statistics -o R-<ll>.gmo R-<ll>.poand mv R-<ll>.gmo ../inst/po/<ll>/LC_MESSAGES/R-tools.moWindows RGui translations=========================These are contained in RGui.pot, created by running 'make RGui.pot-update'.Translations should be called RGui-ll.po for language 'll': such a file iscompiled bymsgfmt -c --statistics -o RGui-ll.gmo RGui-ll.poTo add a translation, add both the .po and .gmo files to theRGUI-CATALOGS macro in Makefile.in.in: it will then be automaticallydistributed.To test a translation on Windows, usecp RGui-ll.gmo ../share/locale/ll/LC_MESSAGES/RGui.moand then startup RGui.exe in an appropriate locale, or set LANGUAGE=llon the command line. (All RGui-*.gmo files will installed to theright places when 'make -f Makefile.win' is run in this directory,which is part of the main 'make' process.)To re-make RGui.pot and all the translations use 'make update-RGui'.