summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/ABOUT-NLS
blob: 931f90a101a86444958d821fe80a39ee6a70419a (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
Notes on the Free Translation Project
*************************************

   Free software is going international!  The Free Translation Project
is a way to get maintainers of free software, translators, and users all
together, so that will gradually become able to speak many languages.
A few packages already provide translations for their messages.

   If you found this `ABOUT-NLS' file inside a distribution, you may
assume that the distributed package does use GNU `gettext' internally,
itself available at your nearest GNU archive site.  But you do _not_
need to install GNU `gettext' prior to configuring, installing or using
this package with messages translated.

   Installers will find here some useful hints.  These notes also
explain how users should proceed for getting the programs to use the
available translations.  They tell how people wanting to contribute and
work at translations should contact the appropriate team.

   When reporting bugs in the `intl/' directory or bugs which may be
related to internationalization, you should tell about the version of
`gettext' which is used.  The information can be found in the
`intl/VERSION' file, in internationalized packages.

Quick configuration advice
==========================

   If you want to exploit the full power of internationalization, you
should configure it using

     ./configure --with-included-gettext

to force usage of internationalizing routines provided within this
package, despite the existence of internationalizing capabilities in the
operating system where this package is being installed.  So far, only
the `gettext' implementation in the GNU C library version 2 provides as
many features (such as locale alias, message inheritance, automatic
charset conversion or plural form handling) as the implementation here.
It is also not possible to offer this additional functionality on top
of a `catgets' implementation.  Future versions of GNU `gettext' will
very likely convey even more functionality.  So it might be a good idea
to change to GNU `gettext' as soon as possible.

   So you need _not_ provide this option if you are using GNU libc 2 or
you have installed a recent copy of the GNU gettext package with the
included `libintl'.

INSTALL Matters
===============

   Some packages are "localizable" when properly installed; the
programs they contain can be made to speak your own native language.
Most such packages use GNU `gettext'.  Other packages have their own
ways to internationalization, predating GNU `gettext'.

   By default, this package will be installed to allow translation of
messages.  It will automatically detect whether the system already
provides the GNU `gettext' functions.  If not, the GNU `gettext' own
library will be used.  This library is wholly contained within this
package, usually in the `intl/' subdirectory, so prior installation of
the GNU `gettext' package is _not_ required.  Installers may use
special options at configuration time for changing the default
behaviour.  The commands:

     ./configure --with-included-gettext
     ./configure --disable-nls

will respectively bypass any pre-existing `gettext' to use the
internationalizing routines provided within this package, or else,
_totally_ disable translation of messages.

   When you already have GNU `gettext' installed on your system and run
configure without an option for your new package, `configure' will
probably detect the previously built and installed `libintl.a' file and
will decide to use this.  This might be not what is desirable.  You
should use the more recent version of the GNU `gettext' library.  I.e.
if the file `intl/VERSION' shows that the library which comes with this
package is more recent, you should use

     ./configure --with-included-gettext

to prevent auto-detection.

   The configuration process will not test for the `catgets' function
and therefore it will not be used.  The reason is that even an
emulation of `gettext' on top of `catgets' could not provide all the
extensions of the GNU `gettext' library.

   Internationalized packages have usually many `po/LL.po' files, where
LL gives an ISO 639 two-letter code identifying the language.  Unless
translations have been forbidden at `configure' time by using the
`--disable-nls' switch, all available translations are installed
together with the package.  However, the environment variable `LINGUAS'
may be set, prior to configuration, to limit the installed set.
`LINGUAS' should then contain a space separated list of two-letter
codes, stating which languages are allowed.

Using This Package
==================

   As a user, if your language has been installed for this package, you
only have to set the `LANG' environment variable to the appropriate
`LL_CC' combination.  Here `LL' is an ISO 639 two-letter language code,
and `CC' is an ISO 3166 two-letter country code.  For example, let's
suppose that you speak German and live in Germany.  At the shell
prompt, merely execute `setenv LANG de_DE' (in `csh'),
`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
This can be done from your `.login' or `.profile' file, once and for
all.

   You might think that the country code specification is redundant.
But in fact, some languages have dialects in different countries.  For
example, `de_AT' is used for Austria, and `pt_BR' for Brazil.  The
country code serves to distinguish the dialects.

   The locale naming convention of `LL_CC', with `LL' denoting the
language and `CC' denoting the country, is the one use on systems based
on GNU libc.  On other systems, some variations of this scheme are
used, such as `LL' or `LL_CC.ENCODING'.  You can get the list of
locales supported by your system for your country by running the command
`locale -a | grep '^LL''.

   Not all programs have translations for all languages.  By default, an
English message is shown in place of a nonexistent translation.  If you
understand other languages, you can set up a priority list of languages.
This is done through a different environment variable, called
`LANGUAGE'.  GNU `gettext' gives preference to `LANGUAGE' over `LANG'
for the purpose of message handling, but you still need to have `LANG'
set to the primary language; this is required by other parts of the
system libraries.  For example, some Swedish users who would rather
read translations in German than English for when Swedish is not
available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.

   In the `LANGUAGE' environment variable, but not in the `LANG'
environment variable, `LL_CC' combinations can be abbreviated as `LL'
to denote the language's main dialect.  For example, `de' is equivalent
to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
(Portuguese as spoken in Portugal) in this context.

Translating Teams
=================

   For the Free Translation Project to be a success, we need interested
people who like their own language and write it well, and who are also
able to synergize with other translators speaking the same language.
Each translation team has its own mailing list.  The up-to-date list of
teams can be found at the Free Translation Project's homepage,
`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams"
area.

   If you'd like to volunteer to _work_ at translating messages, you
should become a member of the translating team for your own language.
The subscribing address is _not_ the same as the list itself, it has
`-request' appended.  For example, speakers of Swedish can send a
message to `sv-request@li.org', having this message body:

     subscribe

   Keep in mind that team members are expected to participate
_actively_ in translations, or at solving translational difficulties,
rather than merely lurking around.  If your team does not exist yet and
you want to start one, or if you are unsure about what to do or how to
get started, please write to `translation@iro.umontreal.ca' to reach the
coordinator for all translator teams.

   The English team is special.  It works at improving and uniformizing
the terminology in use.  Proven linguistic skill are praised more than
programming skill, here.

Available Packages
==================

   Languages are not equally supported in all packages.  The following
matrix shows the current state of internationalization, as of February
2003.  The matrix shows, in regard of each package, for which languages
PO files have been submitted to translation coordination, with a
translation percentage of at least 50%.

     Ready PO files    az be bg ca cs da de el en en_GB eo es et fa fi
                     +-------------------------------------------------+
     a2ps            |                [] [] []                []    [] |
     aegis           |                   ()                            |
     anubis          |                                                 |
     ap-utils        |                                                 |
     bash            |                   []             [] []          |
     batchelor       |                                                 |
     bfd             |                []                   []          |
     binutils        |                []                   []          |
     bison           |                [] []                [] []       |
     clisp           |                   []    []          []          |
     clisp           |                                                 |
     coreutils       |                [] []                [] []       |
     cpio            |                [] []                []          |
     darkstat        |                ()                   []          |
     diffutils       |          [] [] [] []             [] []       [] |
     enscript        |          []    [] []                            |
     error           |                   []        []      []       [] |
     fetchmail       |          [] () [] []                []          |
     fileutils       |                [] []                [] []       |
     findutils       |          []    [] []             [] [] []    [] |
     flex            |          []    [] []                []          |
     gas             |                                     []          |
     gawk            |                [] []                []          |
     gcal            |          []                                     |
     gcc             |                []                   []          |
     gettext         |    []    []    [] []                []          |
     gimp-print      |                                                 |
     gliv            |                                                 |
     gnucash         |                [] ()                            |
     gnucash-glossary|                [] ()                []          |
     gnupg           |          []       [] []          [] [] []    [] |
     gpe-todo        |                                                 |
     gphoto2         |                   []                []          |
     gprof           |                []                   []          |
     gpsdrive        |                () ()    ()          ()          |
     grep            |       [] []       [] []             [] []    [] |
     gretl           |                                     []          |
     hello           |          []    [] [] []          [] [] [] [] [] |
     id-utils        |                [] []                            |
     indent          |          []       []             [] [] []    [] |
     jpilot          |             () [] []                []          |
     jwhois          |                                     []          |
     kbd             |                [] []                []          |
     ld              |                []                   []          |
     libc            |          [] [] [] [] []             []       [] |
     libgpewidget    |                                                 |
     libiconv        |          []    [] []             [] []       [] |
     lifelines       |                [] ()                            |
     lilypond        |                []                               |
     lingoteach      |                []                               |
     lingoteach_lessons|                   ()                ()          |
     lynx            |          [] [] [] []                   []       |
     m4              |             [] [] [] []                         |
     mailutils       |          []                         []          |
     make            |                [] []                []          |
     man-db          |          [] ()    []                ()          |
     mysecretdiary   |                [] []                []          |
     nano            |          [] () [] []                []          |
     nano_1_0        |          [] () [] []                []          |
     opcodes         |                []                   []          |
     parted          |          []    [] []                []          |
     ptx             |          []    [] []             [] [] []    [] |
     python          |                                                 |
     radius          |                                                 |
     recode          |                [] [] []          [] []          |
     sed             |          []    [] []             [] [] []       |
     sh-utils        |                   []                [] []    [] |
     sharutils       |          [] [] [] [] []             [] []       |
     sketch          |                [] ()                []          |
     soundtracker    |                [] []                []          |
     sp              |                   []                            |
     tar             |             [] [] []                [] []    [] |
     texinfo         |             [] [] []             []             |
     textutils       |          []    [] []                []          |
     tin             |                   ()        ()         []       |
     util-linux      |          [] [] [] []                [] []    [] |
     vorbis-tools    |                []                   []          |
     wastesedge      |                   ()                            |
     wdiff           |          []    [] []                [] []       |
     wget            |       [] [] [] [] [] []             [] []    [] |
     xchat           |                                                 |
     xpad            |                                                 |
                     +-------------------------------------------------+
                       az be bg ca cs da de el en en_GB eo es et fa fi
                        0  1  2 26  9 49 46  9  1   1   11 52 19  1 15
     
                       fr gl he hr hu id it ja ko lg lv ms nb nl
                     +-------------------------------------------+
     a2ps            | []                ()    ()       []    [] |
     aegis           |                                        () |
     anubis          | []                               []       |
     ap-utils        | []                                        |
     bash            | []          []                            |
     batchelor       |                                           |
     bfd             | []                   []                   |
     binutils        | []                   []                   |
     bison           | []             [] []                   [] |
     clisp           | []                                     [] |
     clisp           |                                           |
     coreutils       | []                [] []                   |
     cpio            | [] []       []          []             [] |
     darkstat        | ()          []                   []    [] |
     diffutils       | [] [] []    [] []    []                   |
     enscript        | []       []                            [] |
     error           | []          []                         [] |
     fetchmail       |                      []                   |
     fileutils       | []          []    [] []                   |
     findutils       | [] []    [] [] [] [] [] []             [] |
     flex            | []                      []                |
     gas             | []                                        |
     gawk            | []    []                                  |
     gcal            | []                                        |
     gcc             | []                                        |
     gettext         | []                   [] []                |
     gimp-print      |                                           |
     gliv            | ()                                        |
     gnucash         | []          []    []                      |
     gnucash-glossary|                   []                   [] |
     gnupg           | [] []          [] [] []                   |
     gpe-todo        |                                           |
     gphoto2         | []          []       []                   |
     gprof           | []             []                         |
     gpsdrive        | ()          []    ()                   () |
     grep            | [] [] [] [] [] [] [] []                   |
     gretl           | []                                        |
     hello           | [] [] [] [] [] [] [] [] []    [] [] [] [] |
     id-utils        | []          []                         [] |
     indent          | [] []       []    [] []                [] |
     jpilot          | []                   ()                () |
     jwhois          | []          [] []                      [] |
     kbd             | []                                        |
     ld              | []                                        |
     libc            | [] []       []       [] []          []    |
     libgpewidget    |                                           |
     libiconv        | [] []    [] [] [] []                      |
     lifelines       | ()                                        |
     lilypond        | []                                     [] |
     lingoteach      |                []                         |
     lingoteach_lessons|                                           |
     lynx            |             []    [] []                [] |
     m4              | [] []          []    []                [] |
     mailutils       |                                           |
     make            | [] [] [] []          [] []             [] |
     man-db          | []                () ()                   |
     mysecretdiary   | []             []                         |
     nano            | [] []          [] []             []    [] |
     nano_1_0        | [] []          [] []             [] []    |
     opcodes         | []             []                      [] |
     parted          | [] []                []                   |
     ptx             | [] []       [] []                   [] [] |
     python          |                                           |
     radius          |                                           |
     recode          | [] [] []       [] []                      |
     sed             | [] []          [] [] []                   |
     sh-utils        | []          []    [] []             []    |
     sharutils       | [] []       []       []                [] |
     sketch          | []                                        |
     soundtracker    | [] []    []                               |
     sp              | []                   ()                   |
     tar             | [] []    [] [] [] [] []          [] []    |
     texinfo         | []    [] []          []                   |
     textutils       | [] []       []       [] []          []    |
     tin             |                                           |
     util-linux      | []          []    () []                [] |
     vorbis-tools    |                                        [] |
     wastesedge      | ()                                        |
     wdiff           | [] []       [] []                []       |
     wget            | [] [] [] [] []       []                [] |
     xchat           |                                           |
     xpad            |                                           |
                     +-------------------------------------------+
                       fr gl he hr hu id it ja ko lg lv ms nb nl
                       59 23  8 10 26 20 18 26  8  0  1  8  7 24
     
                       nn no pl pt pt_BR ro ru sk sl sv tr uk zh_CN zh_TW
                     +----------------------------------------------------+
     a2ps            |    () () ()  []      []    [] [] [] []             | 14
     aegis           |                      ()                            |  0
     anubis          |                                  [] []             |  4
     ap-utils        |       ()                            ()             |  1
     bash            |              []      []                            |  7
     batchelor       |                                                    |  0
     bfd             |                               [] []                |  6
     binutils        |                               [] []                |  6
     bison           |              []      []       []                   | 11
     clisp           |                                                    |  5
     clisp           |                                                    |  0
     coreutils       |                      []    [] [] []           []   | 12
     cpio            |       []     []      []       []        []         | 13
     darkstat        |              []               []        ()    ()   |  6
     diffutils       |       []     []      []       [] []           []   | 19
     enscript        |              []      []       [] []                | 10
     error           |              []         []       []           []   | 11
     fetchmail       |       ()     ()                  []                |  6
     fileutils       |                      []    [] [] []     []    []   | 14
     findutils       |       []     []      [] [] [] [] []     []         | 24
     flex            |              []      []       [] []                | 10
     gas             |                                  []                |  3
     gawk            |                               [] []                |  7
     gcal            |                               [] []                |  4
     gcc             |                                  []                |  4
     gettext         |                      [] [] [] [] []           []   | 14
     gimp-print      |                                                    |  0
     gliv            |              []                                    |  1
     gnucash         |          []  []         []    []              []   |  9
     gnucash-glossary|          []             []    []              []   |  8
     gnupg           |       []                      [] []           []   | 16
     gpe-todo        |                                                    |  0
     gphoto2         |                               []        []         |  7
     gprof           |              []               [] []                |  7
     gpsdrive        |                         []    []                   |  3
     grep            |       []     []      []    []    []                | 20
     gretl           |                                                    |  2
     hello           | [] [] []     []      [] []    [] [] []             | 31
     id-utils        |              []      []       [] []                |  9
     indent          |              []      [] []    [] []                | 17
     jpilot          |    ()                         [] []     []    []   |  8
     jwhois          |              []      ()       () []           []   |  8
     kbd             |                               [] []                |  6
     ld              |                               [] []                |  5
     libc            |    [] []     []         []    [] []     []         | 20
     libgpewidget    |                                                    |  0
     libiconv        |              []      [] [] [] [] []                | 18
     lifelines       |                               []                   |  2
     lilypond        |                               []                   |  4
     lingoteach      |              []               []                   |  4
     lingoteach_lessons|                                         ()         |  0
     lynx            |              []      []       [] []                | 13
     m4              |       []     []      []       []                   | 13
     mailutils       |                                                    |  2
     make            |              []      []       [] []     []         | 15
     man-db          |                               []                   |  4
     mysecretdiary   |              []               [] []                |  8
     nano            |       []                      []    []             | 13
     nano_1_0        | []    []             []       []    []             | 15
     opcodes         |              []               [] []                |  8
     parted          | []       []  []               [] []                | 12
     ptx             |    [] [] []  []      []       [] []                | 20
     python          |                                                    |  0
     radius          |                                                    |  0
     recode          |       []     []      []    [] [] []                | 16
     sed             |              []         [] [] [] []                | 16
     sh-utils        |                      []    []    []                | 12
     sharutils       |                      []       [] []           []   | 16
     sketch          |              []               []                   |  5
     soundtracker    |                               []                   |  7
     sp              |                                  []                |  3
     tar             |    [] []     []   []    [] [] [] []     []         | 24
     texinfo         |                      []       [] []     []         | 12
     textutils       |                      []    [] [] []           []   | 15
     tin             |                                                    |  1
     util-linux      |              []               [] []                | 14
     vorbis-tools    |                      []                            |  4
     wastesedge      |                                                    |  0
     wdiff           |              []      [] []    [] []                | 15
     wget            |       []             [] [] [] [] [] []        []   | 24
     xchat           |                                                    |  0
     xpad            |                                                    |  0
                     +----------------------------------------------------+
       43 teams        nn no pl pt pt_BR ro ru sk sl sv tr uk zh_CN zh_TW
       82 domains       3  4 14  4  34    1 29 14 13 53 46  6   9    13    723

   Some counters in the preceding matrix are higher than the number of
visible blocks let us expect.  This is because a few extra PO files are
used for implementing regional variants of languages, or language
dialects.

   For a PO file in the matrix above to be effective, the package to
which it applies should also have been internationalized and
distributed as such by its maintainer.  There might be an observable
lag between the mere existence a PO file and its wide availability in a
distribution.

   If February 2003 seems to be old, you may fetch a more recent copy
of this `ABOUT-NLS' file on most GNU archive sites.  The most
up-to-date matrix with full percentage details can be found at
`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'.

Using `gettext' in new packages
===============================

   If you are writing a freely available program and want to
internationalize it you are welcome to use GNU `gettext' in your
package.  Of course you have to respect the GNU Library General Public
License which covers the use of the GNU `gettext' library.  This means
in particular that even non-free programs can use `libintl' as a shared
library, whereas only free software can use `libintl' as a static
library or use modified versions of `libintl'.

   Once the sources are changed appropriately and the setup can handle
to use of `gettext' the only thing missing are the translations.  The
Free Translation Project is also available for packages which are not
developed inside the GNU project.  Therefore the information given above
applies also for every other Free Software Project.  Contact
`translation@iro.umontreal.ca' to make the `.pot' files available to
the translation teams.