|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| Makefile | H A D | 26-Dec-2018 | 821 | 45 | 33 |
| README | H A D | 26-Dec-2018 | 2.1 KiB | 84 | 53 |
| ast.po | H A D | 26-Dec-2018 | 46.3 KiB | 2,425 | 1,851 |
| be.po | H A D | 26-Dec-2018 | 66.4 KiB | 2,426 | 1,852 |
| bg.po | H A D | 26-Dec-2018 | 45.5 KiB | 2,426 | 1,852 |
| ca.po | H A D | 26-Dec-2018 | 50.8 KiB | 2,426 | 1,852 |
| cs.po | H A D | 26-Dec-2018 | 54.6 KiB | 2,426 | 1,852 |
| da.po | H A D | 26-Dec-2018 | 58 KiB | 2,428 | 1,854 |
| de.po | H A D | 26-Dec-2018 | 59.5 KiB | 2,428 | 1,854 |
| es.po | H A D | 26-Dec-2018 | 59.3 KiB | 2,429 | 1,855 |
| fi.po | H A D | 26-Dec-2018 | 44.1 KiB | 2,426 | 1,852 |
| fr.po | H A D | 26-Dec-2018 | 59.6 KiB | 2,430 | 1,856 |
| gl.po | H A D | 26-Dec-2018 | 59.5 KiB | 2,429 | 1,855 |
| gperiodic.pot | H A D | 26-Dec-2018 | 42.9 KiB | 2,424 | 1,850 |
| id.po | H A D | 26-Dec-2018 | 44.7 KiB | 2,427 | 1,853 |
| is.po | H A D | 26-Dec-2018 | 58.7 KiB | 2,426 | 1,852 |
| it.po | H A D | 26-Dec-2018 | 58.2 KiB | 2,428 | 1,854 |
| lt.po | H A D | 26-Dec-2018 | 45.3 KiB | 2,427 | 1,853 |
| ms.po | H A D | 26-Dec-2018 | 58.4 KiB | 2,426 | 1,852 |
| nl.po | H A D | 26-Dec-2018 | 58.6 KiB | 2,428 | 1,854 |
| oc.po | H A D | 26-Dec-2018 | 44.4 KiB | 2,425 | 1,851 |
| pl.po | H A D | 26-Dec-2018 | 59.4 KiB | 2,430 | 1,856 |
| pt.po | H A D | 26-Dec-2018 | 53.7 KiB | 2,427 | 1,853 |
| pt_BR.po | H A D | 26-Dec-2018 | 58.5 KiB | 2,427 | 1,853 |
| ru.po | H A D | 26-Dec-2018 | 67 KiB | 2,427 | 1,853 |
| sr.po | H A D | 26-Dec-2018 | 71.8 KiB | 2,427 | 1,853 |
| sv.po | H A D | 26-Dec-2018 | 57.2 KiB | 2,427 | 1,853 |
| tr.po | H A D | 26-Dec-2018 | 58.8 KiB | 2,428 | 1,854 |
| uk.po | H A D | 26-Dec-2018 | 67.4 KiB | 2,426 | 1,852 |
| zh_CN.po | H A D | 26-Dec-2018 | 58.4 KiB | 2,425 | 1,851 |
README
1 Adding a translation to gperiodic
2 ---------------------------------
3
41) Extract the strings from the source
5--------------------------------------
6In the gperiodic top level directory, create the .po template (.pot):
7
8 xgettext -k_ -kN_ *.c *.h -o po/gperiodic.pot
9
10
112) Update or create .po files
12-----------------------------
13If there are any existing translations, XX.po files, then merge them:
14
15 cd po
16 msgmerge XX.po gperiodic.pot > XX.po.new
17 mv -f XX.po.new XX.po
18
19Or, if this is a new translation, copy the template:
20
21 cd po
22 cp gperiodic.pot XX.po
23
24
253) Add translations
26-------------------
27Edit XX.po to add translations for new strings, fix broken translations,
28and touch up fuzzy translations.
29
30
314) Make and install gperiodic with i18n enabled
32---------------------------------------------
33If make is run from this directory instead of the top level dir, you must
34explicitely enable i18n in all the below examples by adding enable_nls=1
35to the make command:
36
37 make enable_nls=1
38
39And for the install step:
40
41 make install enable_nls=1
42
43i18n will be automatically enabled when make is run from the top level dir.
44
45
46In either case, a make install will for each XX.po file create a XX.mo file
47and copy it to:
48
49 $LOCALEDIR/XX/LC_MESSAGES/gperiodic.mo
50
51If there is no LOCALEDIR environment variable, then the default install
52will be to:
53
54 /usr/share/locale/XX/LC_MESSAGES/gperiodic.mo
55
56
57
58But, if you want a different explicit install directory, do for example:
59
60 make install LOCALEDIR=/usr/local/share/locale
61
62or (for bash)
63 export LOCALEDIR=/usr/local/share/locale
64 make install
65
66Other export lines:
67 sh: export LOCALEDIR; LOCALEDIR=/usr/local/share/locale
68 csh: setenv LOCALEDIR /usr/local/share/locale
69
70============================================================================
71Using a translation
72-------------------
73
74A user must have localizations enabled for a translation to be used.
75To enable a localization, the LANGUAGE environment variable should be set
76via the command line or the shell login startup files.
77
78For example, to see the Swedish translation, a user should be able to:
79
80From bash:
81 export LANGUAGE=sv
82or from csh
83 setenv LANGUAGE sv
84