Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / doc / gettext_6.html
1 <HTML>
2 <HEAD>
3 <!-- This HTML file has been created by texi2html 1.52b
4      from gettext.texi on 28 December 2015 -->
5
6 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
7 <TITLE>GNU gettext utilities - 6  Creating a New PO File</TITLE>
8 </HEAD>
9 <BODY>
10 Go to the <A HREF="gettext_1.html">first</A>, <A HREF="gettext_5.html">previous</A>, <A HREF="gettext_7.html">next</A>, <A HREF="gettext_25.html">last</A> section, <A HREF="gettext_toc.html">table of contents</A>.
11 <P><HR><P>
12
13
14 <H1><A NAME="SEC37" HREF="gettext_toc.html#TOC37">6  Creating a New PO File</A></H1>
15 <P>
16 <A NAME="IDX250"></A>
17
18 </P>
19 <P>
20 When starting a new translation, the translator creates a file called
21 <TT>&lsquo;<VAR>LANG</VAR>.po&rsquo;</TT>, as a copy of the <TT>&lsquo;<VAR>package</VAR>.pot&rsquo;</TT> template
22 file with modifications in the initial comments (at the beginning of the file)
23 and in the header entry (the first entry, near the beginning of the file).
24
25 </P>
26 <P>
27 The easiest way to do so is by use of the <SAMP>&lsquo;msginit&rsquo;</SAMP> program.
28 For example:
29
30 </P>
31
32 <PRE>
33 $ cd <VAR>PACKAGE</VAR>-<VAR>VERSION</VAR>
34 $ cd po
35 $ msginit
36 </PRE>
37
38 <P>
39 The alternative way is to do the copy and modifications by hand.
40 To do so, the translator copies <TT>&lsquo;<VAR>package</VAR>.pot&rsquo;</TT> to
41 <TT>&lsquo;<VAR>LANG</VAR>.po&rsquo;</TT>.  Then she modifies the initial comments and
42 the header entry of this file.
43
44 </P>
45
46
47
48 <H2><A NAME="SEC38" HREF="gettext_toc.html#TOC38">6.1  Invoking the <CODE>msginit</CODE> Program</A></H2>
49
50 <P>
51 <A NAME="IDX251"></A>
52 <A NAME="IDX252"></A>
53
54 <PRE>
55 msginit [<VAR>option</VAR>]
56 </PRE>
57
58 <P>
59 <A NAME="IDX253"></A>
60 <A NAME="IDX254"></A>
61 The <CODE>msginit</CODE> program creates a new PO file, initializing the meta
62 information with values from the user's environment.
63
64 </P>
65 <P>
66 Here are more details.  The following header fields of a PO file are
67 automatically filled, when possible.
68
69 </P>
70 <DL COMPACT>
71
72 <DT><SAMP>&lsquo;Project-Id-Version&rsquo;</SAMP>
73 <DD>
74 The value is guessed from the <CODE>configure</CODE> script or any other files
75 in the current directory.
76
77 <DT><SAMP>&lsquo;PO-Revision-Date&rsquo;</SAMP>
78 <DD>
79 The value is taken from the <CODE>PO-Creation-Data</CODE> in the input POT
80 file, or the current date is used.
81
82 <DT><SAMP>&lsquo;Last-Translator&rsquo;</SAMP>
83 <DD>
84 The value is taken from user's password file entry and the mailer
85 configuration files.
86
87 <DT><SAMP>&lsquo;Language-Team, Language&rsquo;</SAMP>
88 <DD>
89 These values are set according to the current locale and the predefined
90 list of translation teams.
91
92 <DT><SAMP>&lsquo;MIME-Version, Content-Type, Content-Transfer-Encoding&rsquo;</SAMP>
93 <DD>
94 These values are set according to the content of the POT file and the
95 current locale.  If the POT file contains charset=UTF-8, it means that
96 the POT file contains non-ASCII characters, and we keep the UTF-8
97 encoding.  Otherwise, when the POT file is plain ASCII, we use the
98 locale's encoding.
99
100 <DT><SAMP>&lsquo;Plural-Forms&rsquo;</SAMP>
101 <DD>
102 The value is first looked up from the embedded table.
103
104 As an experimental feature, you can instruct <CODE>msginit</CODE> to use the
105 information from Unicode CLDR, by setting the <CODE>GETTEXTCLDRDIR</CODE>
106 environment variable.
107
108 </DL>
109
110
111
112 <H3><A NAME="SEC39" HREF="gettext_toc.html#TOC39">6.1.1  Input file location</A></H3>
113
114 <DL COMPACT>
115
116 <DT><SAMP>&lsquo;-i <VAR>inputfile</VAR>&rsquo;</SAMP>
117 <DD>
118 <DT><SAMP>&lsquo;--input=<VAR>inputfile</VAR>&rsquo;</SAMP>
119 <DD>
120 <A NAME="IDX255"></A>
121 <A NAME="IDX256"></A>
122 Input POT file.
123
124 </DL>
125
126 <P>
127 If no <VAR>inputfile</VAR> is given, the current directory is searched for the
128 POT file.  If it is <SAMP>&lsquo;-&rsquo;</SAMP>, standard input is read.
129
130 </P>
131
132
133 <H3><A NAME="SEC40" HREF="gettext_toc.html#TOC40">6.1.2  Output file location</A></H3>
134
135 <DL COMPACT>
136
137 <DT><SAMP>&lsquo;-o <VAR>file</VAR>&rsquo;</SAMP>
138 <DD>
139 <DT><SAMP>&lsquo;--output-file=<VAR>file</VAR>&rsquo;</SAMP>
140 <DD>
141 <A NAME="IDX257"></A>
142 <A NAME="IDX258"></A>
143 Write output to specified PO file.
144
145 </DL>
146
147 <P>
148 If no output file is given, it depends on the <SAMP>&lsquo;--locale&rsquo;</SAMP> option or the
149 user's locale setting.  If it is <SAMP>&lsquo;-&rsquo;</SAMP>, the results are written to
150 standard output.
151
152 </P>
153
154
155 <H3><A NAME="SEC41" HREF="gettext_toc.html#TOC41">6.1.3  Input file syntax</A></H3>
156
157 <DL COMPACT>
158
159 <DT><SAMP>&lsquo;-P&rsquo;</SAMP>
160 <DD>
161 <DT><SAMP>&lsquo;--properties-input&rsquo;</SAMP>
162 <DD>
163 <A NAME="IDX259"></A>
164 <A NAME="IDX260"></A>
165 Assume the input file is a Java ResourceBundle in Java <CODE>.properties</CODE>
166 syntax, not in PO file syntax.
167
168 <DT><SAMP>&lsquo;--stringtable-input&rsquo;</SAMP>
169 <DD>
170 <A NAME="IDX261"></A>
171 Assume the input file is a NeXTstep/GNUstep localized resource file in
172 <CODE>.strings</CODE> syntax, not in PO file syntax.
173
174 </DL>
175
176
177
178 <H3><A NAME="SEC42" HREF="gettext_toc.html#TOC42">6.1.4  Output details</A></H3>
179
180 <DL COMPACT>
181
182 <DT><SAMP>&lsquo;-l <VAR>ll_CC</VAR>&rsquo;</SAMP>
183 <DD>
184 <DT><SAMP>&lsquo;--locale=<VAR>ll_CC</VAR>&rsquo;</SAMP>
185 <DD>
186 <A NAME="IDX262"></A>
187 <A NAME="IDX263"></A>
188 Set target locale.  <VAR>ll</VAR> should be a language code, and <VAR>CC</VAR> should
189 be a country code.  The command <SAMP>&lsquo;locale -a&rsquo;</SAMP> can be used to output a list
190 of all installed locales.  The default is the user's locale setting.
191
192 <DT><SAMP>&lsquo;--no-translator&rsquo;</SAMP>
193 <DD>
194 <A NAME="IDX264"></A>
195 Declares that the PO file will not have a human translator and is instead
196 automatically generated.
197
198 <DT><SAMP>&lsquo;--color&rsquo;</SAMP>
199 <DD>
200 <DT><SAMP>&lsquo;--color=<VAR>when</VAR>&rsquo;</SAMP>
201 <DD>
202 <A NAME="IDX265"></A>
203 Specify whether or when to use colors and other text attributes.
204 See section <A HREF="gettext_9.html#SEC150">9.11.1  The <CODE>--color</CODE> option</A> for details.
205
206 <DT><SAMP>&lsquo;--style=<VAR>style_file</VAR>&rsquo;</SAMP>
207 <DD>
208 <A NAME="IDX266"></A>
209 Specify the CSS style rule file to use for <CODE>--color</CODE>.
210 See section <A HREF="gettext_9.html#SEC152">9.11.3  The <CODE>--style</CODE> option</A> for details.
211
212 <DT><SAMP>&lsquo;-p&rsquo;</SAMP>
213 <DD>
214 <DT><SAMP>&lsquo;--properties-output&rsquo;</SAMP>
215 <DD>
216 <A NAME="IDX267"></A>
217 <A NAME="IDX268"></A>
218 Write out a Java ResourceBundle in Java <CODE>.properties</CODE> syntax.  Note
219 that this file format doesn't support plural forms and silently drops
220 obsolete messages.
221
222 <DT><SAMP>&lsquo;--stringtable-output&rsquo;</SAMP>
223 <DD>
224 <A NAME="IDX269"></A>
225 Write out a NeXTstep/GNUstep localized resource file in <CODE>.strings</CODE> syntax.
226 Note that this file format doesn't support plural forms.
227
228 <DT><SAMP>&lsquo;-w <VAR>number</VAR>&rsquo;</SAMP>
229 <DD>
230 <DT><SAMP>&lsquo;--width=<VAR>number</VAR>&rsquo;</SAMP>
231 <DD>
232 <A NAME="IDX270"></A>
233 <A NAME="IDX271"></A>
234 Set the output page width.  Long strings in the output files will be
235 split across multiple lines in order to ensure that each line's width
236 (= number of screen columns) is less or equal to the given <VAR>number</VAR>.
237
238 <DT><SAMP>&lsquo;--no-wrap&rsquo;</SAMP>
239 <DD>
240 <A NAME="IDX272"></A>
241 Do not break long message lines.  Message lines whose width exceeds the
242 output page width will not be split into several lines.  Only file reference
243 lines which are wider than the output page width will be split.
244
245 </DL>
246
247
248
249 <H3><A NAME="SEC43" HREF="gettext_toc.html#TOC43">6.1.5  Informative output</A></H3>
250
251 <DL COMPACT>
252
253 <DT><SAMP>&lsquo;-h&rsquo;</SAMP>
254 <DD>
255 <DT><SAMP>&lsquo;--help&rsquo;</SAMP>
256 <DD>
257 <A NAME="IDX273"></A>
258 <A NAME="IDX274"></A>
259 Display this help and exit.
260
261 <DT><SAMP>&lsquo;-V&rsquo;</SAMP>
262 <DD>
263 <DT><SAMP>&lsquo;--version&rsquo;</SAMP>
264 <DD>
265 <A NAME="IDX275"></A>
266 <A NAME="IDX276"></A>
267 Output version information and exit.
268
269 </DL>
270
271
272
273 <H2><A NAME="SEC44" HREF="gettext_toc.html#TOC44">6.2  Filling in the Header Entry</A></H2>
274 <P>
275 <A NAME="IDX277"></A>
276
277 </P>
278 <P>
279 The initial comments "SOME DESCRIPTIVE TITLE", "YEAR" and
280 "FIRST AUTHOR &#60;EMAIL@ADDRESS&#62;, YEAR" ought to be replaced by sensible
281 information.  This can be done in any text editor; if Emacs is used
282 and it switched to PO mode automatically (because it has recognized
283 the file's suffix), you can disable it by typing <KBD>M-x fundamental-mode</KBD>.
284
285 </P>
286 <P>
287 Modifying the header entry can already be done using PO mode: in Emacs,
288 type <KBD>M-x po-mode RET</KBD> and then <KBD>RET</KBD> again to start editing the
289 entry.  You should fill in the following fields.
290
291 </P>
292 <DL COMPACT>
293
294 <DT>Project-Id-Version
295 <DD>
296 This is the name and version of the package.  Fill it in if it has not
297 already been filled in by <CODE>xgettext</CODE>.
298
299 <DT>Report-Msgid-Bugs-To
300 <DD>
301 This has already been filled in by <CODE>xgettext</CODE>.  It contains an email
302 address or URL where you can report bugs in the untranslated strings:
303
304
305 <UL>
306 <LI>Strings which are not entire sentences, see the maintainer guidelines
307
308 in section <A HREF="gettext_4.html#SEC19">4.3  Preparing Translatable Strings</A>.
309 <LI>Strings which use unclear terms or require additional context to be
310
311 understood.
312 <LI>Strings which make invalid assumptions about notation of date, time or
313
314 money.
315 <LI>Pluralisation problems.
316
317 <LI>Incorrect English spelling.
318
319 <LI>Incorrect formatting.
320
321 </UL>
322
323 <DT>POT-Creation-Date
324 <DD>
325 This has already been filled in by <CODE>xgettext</CODE>.
326
327 <DT>PO-Revision-Date
328 <DD>
329 You don't need to fill this in.  It will be filled by the PO file editor
330 when you save the file.
331
332 <DT>Last-Translator
333 <DD>
334 Fill in your name and email address (without double quotes).
335
336 <DT>Language-Team
337 <DD>
338 Fill in the English name of the language, and the email address or
339 homepage URL of the language team you are part of.
340
341 Before starting a translation, it is a good idea to get in touch with
342 your translation team, not only to make sure you don't do duplicated work,
343 but also to coordinate difficult linguistic issues.
344
345 <A NAME="IDX278"></A>
346 In the Free Translation Project, each translation team has its own mailing
347 list.  The up-to-date list of teams can be found at the Free Translation
348 Project's homepage, <A HREF="http://translationproject.org/">http://translationproject.org/</A>, in the "Teams"
349 area.
350
351 <DT>Language
352 <DD>
353 Fill in the language code of the language.  This can be in one of three
354 forms:
355
356
357 <UL>
358 <LI>
359
360 <SAMP>&lsquo;<VAR>ll</VAR>&rsquo;</SAMP>, an ISO 639 two-letter language code (lowercase).
361 See section <A HREF="gettext_17.html#SEC331">A  Language Codes</A> for the list of codes.
362
363 <LI>
364
365 <SAMP>&lsquo;<VAR>ll</VAR>_<VAR>CC</VAR>&rsquo;</SAMP>, where <SAMP>&lsquo;<VAR>ll</VAR>&rsquo;</SAMP> is an ISO 639 two-letter
366 language code (lowercase) and <SAMP>&lsquo;<VAR>CC</VAR>&rsquo;</SAMP> is an ISO 3166 two-letter
367 country code (uppercase).  The country code specification is not redundant:
368 Some languages have dialects in different countries.  For example,
369 <SAMP>&lsquo;de_AT&rsquo;</SAMP> is used for Austria, and <SAMP>&lsquo;pt_BR&rsquo;</SAMP> for Brazil.  The country
370 code serves to distinguish the dialects. See section <A HREF="gettext_17.html#SEC331">A  Language Codes</A> and
371 section <A HREF="gettext_18.html#SEC334">B  Country Codes</A> for the lists of codes.
372
373 <LI>
374
375 <SAMP>&lsquo;<VAR>ll</VAR>_<VAR>CC</VAR>@<VAR>variant</VAR>&rsquo;</SAMP>, where <SAMP>&lsquo;<VAR>ll</VAR>&rsquo;</SAMP> is an
376 ISO 639 two-letter language code (lowercase), <SAMP>&lsquo;<VAR>CC</VAR>&rsquo;</SAMP> is an
377 ISO 3166 two-letter country code (uppercase), and <SAMP>&lsquo;<VAR>variant</VAR>&rsquo;</SAMP> is
378 a variant designator. The variant designator (lowercase) can be a script
379 designator, such as <SAMP>&lsquo;latin&rsquo;</SAMP> or <SAMP>&lsquo;cyrillic&rsquo;</SAMP>.
380 </UL>
381
382 The naming convention <SAMP>&lsquo;<VAR>ll</VAR>_<VAR>CC</VAR>&rsquo;</SAMP> is also the way locales are
383 named on systems based on GNU libc.  But there are three important differences:
384
385
386 <UL>
387 <LI>
388
389 In this PO file field, but not in locale names, <SAMP>&lsquo;<VAR>ll</VAR>_<VAR>CC</VAR>&rsquo;</SAMP>
390 combinations denoting a language's main dialect are abbreviated as
391 <SAMP>&lsquo;<VAR>ll</VAR>&rsquo;</SAMP>.  For example, <SAMP>&lsquo;de&rsquo;</SAMP> is equivalent to <SAMP>&lsquo;de_DE&rsquo;</SAMP>
392 (German as spoken in Germany), and <SAMP>&lsquo;pt&rsquo;</SAMP> to <SAMP>&lsquo;pt_PT&rsquo;</SAMP> (Portuguese as
393 spoken in Portugal) in this context.
394
395 <LI>
396
397 In this PO file field, suffixes like <SAMP>&lsquo;.<VAR>encoding</VAR>&rsquo;</SAMP> are not used.
398
399 <LI>
400
401 In this PO file field, variant designators that are not relevant to message
402 translation, such as <SAMP>&lsquo;@euro&rsquo;</SAMP>, are not used.
403 </UL>
404
405 So, if your locale name is <SAMP>&lsquo;de_DE.UTF-8&rsquo;</SAMP>, the language specification in
406 PO files is just <SAMP>&lsquo;de&rsquo;</SAMP>.
407
408 <DT>Content-Type
409 <DD>
410 <A NAME="IDX279"></A>
411 <A NAME="IDX280"></A>
412 Replace <SAMP>&lsquo;CHARSET&rsquo;</SAMP> with the character encoding used for your language,
413 in your locale, or UTF-8.  This field is needed for correct operation of the
414 <CODE>msgmerge</CODE> and <CODE>msgfmt</CODE> programs, as well as for users whose
415 locale's character encoding differs from yours (see section <A HREF="gettext_11.html#SEC188">11.2.4  How to specify the output character set <CODE>gettext</CODE> uses</A>).
416
417 <A NAME="IDX281"></A>
418 You get the character encoding of your locale by running the shell command
419 <SAMP>&lsquo;locale charmap&rsquo;</SAMP>.  If the result is <SAMP>&lsquo;C&rsquo;</SAMP> or <SAMP>&lsquo;ANSI_X3.4-1968&rsquo;</SAMP>,
420 which is equivalent to <SAMP>&lsquo;ASCII&rsquo;</SAMP> (= <SAMP>&lsquo;US-ASCII&rsquo;</SAMP>), it means that your
421 locale is not correctly configured.  In this case, ask your translation
422 team which charset to use.  <SAMP>&lsquo;ASCII&rsquo;</SAMP> is not usable for any language
423 except Latin.
424
425 <A NAME="IDX282"></A>
426 Because the PO files must be portable to operating systems with less advanced
427 internationalization facilities, the character encodings that can be used
428 are limited to those supported by both GNU <CODE>libc</CODE> and GNU
429 <CODE>libiconv</CODE>.  These are:
430 <CODE>ASCII</CODE>, <CODE>ISO-8859-1</CODE>, <CODE>ISO-8859-2</CODE>, <CODE>ISO-8859-3</CODE>,
431 <CODE>ISO-8859-4</CODE>, <CODE>ISO-8859-5</CODE>, <CODE>ISO-8859-6</CODE>, <CODE>ISO-8859-7</CODE>,
432 <CODE>ISO-8859-8</CODE>, <CODE>ISO-8859-9</CODE>, <CODE>ISO-8859-13</CODE>, <CODE>ISO-8859-14</CODE>,
433 <CODE>ISO-8859-15</CODE>,
434 <CODE>KOI8-R</CODE>, <CODE>KOI8-U</CODE>, <CODE>KOI8-T</CODE>,
435 <CODE>CP850</CODE>, <CODE>CP866</CODE>, <CODE>CP874</CODE>,
436 <CODE>CP932</CODE>, <CODE>CP949</CODE>, <CODE>CP950</CODE>, <CODE>CP1250</CODE>, <CODE>CP1251</CODE>,
437 <CODE>CP1252</CODE>, <CODE>CP1253</CODE>, <CODE>CP1254</CODE>, <CODE>CP1255</CODE>, <CODE>CP1256</CODE>,
438 <CODE>CP1257</CODE>, <CODE>GB2312</CODE>, <CODE>EUC-JP</CODE>, <CODE>EUC-KR</CODE>, <CODE>EUC-TW</CODE>,
439 <CODE>BIG5</CODE>, <CODE>BIG5-HKSCS</CODE>, <CODE>GBK</CODE>, <CODE>GB18030</CODE>, <CODE>SHIFT_JIS</CODE>,
440 <CODE>JOHAB</CODE>, <CODE>TIS-620</CODE>, <CODE>VISCII</CODE>, <CODE>GEORGIAN-PS</CODE>, <CODE>UTF-8</CODE>.
441
442 <A NAME="IDX283"></A>
443 In the GNU system, the following encodings are frequently used for the
444 corresponding languages.
445
446 <A NAME="IDX284"></A>
447
448 <UL>
449 <LI><CODE>ISO-8859-1</CODE> for
450
451 Afrikaans, Albanian, Basque, Breton, Catalan, Cornish, Danish, Dutch,
452 English, Estonian, Faroese, Finnish, French, Galician, German,
453 Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Manx,
454 Norwegian, Occitan, Portuguese, Spanish, Swedish, Tagalog, Uzbek,
455 Walloon,
456 <LI><CODE>ISO-8859-2</CODE> for
457
458 Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak,
459 Slovenian,
460 <LI><CODE>ISO-8859-3</CODE> for Maltese,
461
462 <LI><CODE>ISO-8859-5</CODE> for Macedonian, Serbian,
463
464 <LI><CODE>ISO-8859-6</CODE> for Arabic,
465
466 <LI><CODE>ISO-8859-7</CODE> for Greek,
467
468 <LI><CODE>ISO-8859-8</CODE> for Hebrew,
469
470 <LI><CODE>ISO-8859-9</CODE> for Turkish,
471
472 <LI><CODE>ISO-8859-13</CODE> for Latvian, Lithuanian, Maori,
473
474 <LI><CODE>ISO-8859-14</CODE> for Welsh,
475
476 <LI><CODE>ISO-8859-15</CODE> for
477
478 Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish,
479 Italian, Portuguese, Spanish, Swedish, Walloon,
480 <LI><CODE>KOI8-R</CODE> for Russian,
481
482 <LI><CODE>KOI8-U</CODE> for Ukrainian,
483
484 <LI><CODE>KOI8-T</CODE> for Tajik,
485
486 <LI><CODE>CP1251</CODE> for Bulgarian, Belarusian,
487
488 <LI><CODE>GB2312</CODE>, <CODE>GBK</CODE>, <CODE>GB18030</CODE>
489
490 for simplified writing of Chinese,
491 <LI><CODE>BIG5</CODE>, <CODE>BIG5-HKSCS</CODE>
492
493 for traditional writing of Chinese,
494 <LI><CODE>EUC-JP</CODE> for Japanese,
495
496 <LI><CODE>EUC-KR</CODE> for Korean,
497
498 <LI><CODE>TIS-620</CODE> for Thai,
499
500 <LI><CODE>GEORGIAN-PS</CODE> for Georgian,
501
502 <LI><CODE>UTF-8</CODE> for any language, including those listed above.
503
504 </UL>
505
506 <A NAME="IDX285"></A>
507 <A NAME="IDX286"></A>
508 When single quote characters or double quote characters are used in
509 translations for your language, and your locale's encoding is one of the
510 ISO-8859-* charsets, it is best if you create your PO files in UTF-8
511 encoding, instead of your locale's encoding.  This is because in UTF-8
512 the real quote characters can be represented (single quote characters:
513 U+2018, U+2019, double quote characters: U+201C, U+201D), whereas none of
514 ISO-8859-* charsets has them all.  Users in UTF-8 locales will see the
515 real quote characters, whereas users in ISO-8859-* locales will see the
516 vertical apostrophe and the vertical double quote instead (because that's
517 what the character set conversion will transliterate them to).
518
519 <A NAME="IDX287"></A>
520 To enter such quote characters under X11, you can change your keyboard
521 mapping using the <CODE>xmodmap</CODE> program.  The X11 names of the quote
522 characters are "leftsinglequotemark", "rightsinglequotemark",
523 "leftdoublequotemark", "rightdoublequotemark", "singlelowquotemark",
524 "doublelowquotemark".
525
526 Note that only recent versions of GNU Emacs support the UTF-8 encoding:
527 Emacs 20 with Mule-UCS, and Emacs 21.  As of January 2001, XEmacs doesn't
528 support the UTF-8 encoding.
529
530 The character encoding name can be written in either upper or lower case.
531 Usually upper case is preferred.
532
533 <DT>Content-Transfer-Encoding
534 <DD>
535 Set this to <CODE>8bit</CODE>.
536
537 <DT>Plural-Forms
538 <DD>
539 This field is optional.  It is only needed if the PO file has plural forms.
540 You can find them by searching for the <SAMP>&lsquo;msgid_plural&rsquo;</SAMP> keyword.  The
541 format of the plural forms field is described in section <A HREF="gettext_11.html#SEC190">11.2.6  Additional functions for plural forms</A> and
542 section <A HREF="gettext_12.html#SEC211">12.6  Translating plural forms</A>.
543 </DL>
544
545 <P><HR><P>
546 Go to the <A HREF="gettext_1.html">first</A>, <A HREF="gettext_5.html">previous</A>, <A HREF="gettext_7.html">next</A>, <A HREF="gettext_25.html">last</A> section, <A HREF="gettext_toc.html">table of contents</A>.
547 </BODY>
548 </HTML>