/
README
64 lines (39 loc) · 1.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
The Makefile.in.in here was originally produced by gettextize, but has
since been modified extensively.
If you convert a C file for use with gettext, add it to POTFILES.in and
then run
make update-po
to recreate R.pot and update the automated `translations'.
Target
make update-pkg-po
updates the message catalogs for the C and R code in the standard packages,
uses msgmerge --update to update the translations and then re-makes the
compiled (.mo) files.
To do this for an individual standard package use
make pkgname.pkg-update
e.g. make grid.pkg-update.
To add a new translation, add the lang.po file to this directory and
add the language to LINGUAS. Hopefully 'make all R' (in the builddir,
if separate) will do the rest (create ll.gmo and install it as
required). For fuller manual control, use
msgfmt -c --statistics -o ll.gmo ll.po
to check and compile the translation, and
mkdir R_BUILD_DIR/share/locale/ll/LC_MESSAGES
cp ll.gmo R_BUILD_DIR/share/locale/ll/LC_MESSAGES/R.mo
to install it manually for testing.
Windows 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 is
compiled by
msgfmt -c --statistics -o RGui-ll.gmo RGui-ll.po
To add a translation, add both the .po and .gmo files to the
RGUI-CATALOGS macro in Makefile.in.in: it will then be automatically
distributed.
To test a translation on Windows, use
cp RGui-ll.gmo ../share/locale/ll/LC_MESSAGES/RGui.mo
and then startup RGui.exe in an appropriate locale, or set LANGUAGE=ll
on the command line. (All RGui-*.gmo files will installed to the
right 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'.