summaryrefslogtreecommitdiffstats
path: root/doc/gettext_5.html
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-07-17 16:35:30 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:08:39 +0200
commit02849a533b6a0490df05088c0b3ef5c24fc52ff5 (patch)
tree39fc4b050d37aa328fbbcb7fb82cf622b6233dac /doc/gettext_5.html
parent640b0799175f3e7f5d0f74d40763c44b2bb025aa (diff)
downloadexternal_gettext-02849a533b6a0490df05088c0b3ef5c24fc52ff5.zip
external_gettext-02849a533b6a0490df05088c0b3ef5c24fc52ff5.tar.gz
external_gettext-02849a533b6a0490df05088c0b3ef5c24fc52ff5.tar.bz2
Update for 0.11.3.
Diffstat (limited to 'doc/gettext_5.html')
-rw-r--r--doc/gettext_5.html71
1 files changed, 41 insertions, 30 deletions
diff --git a/doc/gettext_5.html b/doc/gettext_5.html
index f614030..ffa0a3d 100644
--- a/doc/gettext_5.html
+++ b/doc/gettext_5.html
@@ -1,7 +1,7 @@
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.52a
- from gettext.texi on 24 April 2002 -->
+ from gettext.texi on 16 July 2002 -->
<TITLE>GNU gettext utilities - 5 Creating a New PO File</TITLE>
</HEAD>
@@ -12,7 +12,7 @@ Go to the <A HREF="gettext_1.html">first</A>, <A HREF="gettext_4.html">previous<
<H1><A NAME="SEC29" HREF="gettext_toc.html#TOC29">5 Creating a New PO File</A></H1>
<P>
-<A NAME="IDX210"></A>
+<A NAME="IDX211"></A>
</P>
<P>
@@ -47,16 +47,16 @@ the header entry of this file.
<H2><A NAME="SEC30" HREF="gettext_toc.html#TOC30">5.1 Invoking the <CODE>msginit</CODE> Program</A></H2>
<P>
-<A NAME="IDX211"></A>
<A NAME="IDX212"></A>
+<A NAME="IDX213"></A>
<PRE>
msginit [<VAR>option</VAR>]
</PRE>
<P>
-<A NAME="IDX213"></A>
<A NAME="IDX214"></A>
+<A NAME="IDX215"></A>
The <CODE>msginit</CODE> program creates a new PO file, initializing the meta
information with values from the user's environment.
@@ -71,8 +71,8 @@ information with values from the user's environment.
<DD>
<DT><SAMP>`--input=<VAR>inputfile</VAR>&acute;</SAMP>
<DD>
-<A NAME="IDX215"></A>
<A NAME="IDX216"></A>
+<A NAME="IDX217"></A>
Input POT file.
</DL>
@@ -92,8 +92,8 @@ POT file. If it is <SAMP>`-&acute;</SAMP>, standard input is read.
<DD>
<DT><SAMP>`--output-file=<VAR>file</VAR>&acute;</SAMP>
<DD>
-<A NAME="IDX217"></A>
<A NAME="IDX218"></A>
+<A NAME="IDX219"></A>
Write output to specified PO file.
</DL>
@@ -114,15 +114,15 @@ standard output.
<DD>
<DT><SAMP>`--locale=<VAR>ll_CC</VAR>&acute;</SAMP>
<DD>
-<A NAME="IDX219"></A>
<A NAME="IDX220"></A>
+<A NAME="IDX221"></A>
Set target locale. <VAR>ll</VAR> should be a language code, and <VAR>CC</VAR> should
be a country code. The command <SAMP>`locale -a&acute;</SAMP> can be used to output a list
of all installed locales. The default is the user's locale setting.
<DT><SAMP>`--no-translator&acute;</SAMP>
<DD>
-<A NAME="IDX221"></A>
+<A NAME="IDX222"></A>
Declares that the PO file will not have a human translator and is instead
automatically generated.
@@ -130,15 +130,15 @@ automatically generated.
<DD>
<DT><SAMP>`--width=<VAR>number</VAR>&acute;</SAMP>
<DD>
-<A NAME="IDX222"></A>
<A NAME="IDX223"></A>
+<A NAME="IDX224"></A>
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <VAR>number</VAR>.
<DT><SAMP>`--no-wrap&acute;</SAMP>
<DD>
-<A NAME="IDX224"></A>
+<A NAME="IDX225"></A>
Do not break long message lines. Message lines whose width exceeds the
output page width will not be split into several lines. Only file reference
lines which are wider than the output page width will be split.
@@ -155,16 +155,16 @@ lines which are wider than the output page width will be split.
<DD>
<DT><SAMP>`--help&acute;</SAMP>
<DD>
-<A NAME="IDX225"></A>
<A NAME="IDX226"></A>
+<A NAME="IDX227"></A>
Display this help and exit.
<DT><SAMP>`-V&acute;</SAMP>
<DD>
<DT><SAMP>`--version&acute;</SAMP>
<DD>
-<A NAME="IDX227"></A>
<A NAME="IDX228"></A>
+<A NAME="IDX229"></A>
Output version information and exit.
</DL>
@@ -173,7 +173,7 @@ Output version information and exit.
<H2><A NAME="SEC35" HREF="gettext_toc.html#TOC35">5.2 Filling in the Header Entry</A></H2>
<P>
-<A NAME="IDX229"></A>
+<A NAME="IDX230"></A>
</P>
<P>
@@ -218,7 +218,7 @@ Before starting a translation, it is a good idea to get in touch with
your translation team, not only to make sure you don't do duplicated work,
but also to coordinate difficult linguistic issues.
-<A NAME="IDX230"></A>
+<A NAME="IDX231"></A>
In the Free Translation Project, 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, <A HREF="http://www.iro.umontreal.ca/contrib/po/HTML/">http://www.iro.umontreal.ca/contrib/po/HTML/</A>,
@@ -226,14 +226,14 @@ in the "National teams" area.
<DT>Content-Type
<DD>
-<A NAME="IDX231"></A>
<A NAME="IDX232"></A>
+<A NAME="IDX233"></A>
Replace <SAMP>`CHARSET&acute;</SAMP> with the character encoding used for your language,
in your locale, or UTF-8. This field is needed for correct operation of the
<CODE>msgmerge</CODE> and <CODE>msgfmt</CODE> programs, as well as for users whose
locale's character encoding differs from yours (see section <A HREF="gettext_10.html#SEC149">10.2.4 How to specify the output character set <CODE>gettext</CODE> uses</A>).
-<A NAME="IDX233"></A>
+<A NAME="IDX234"></A>
You get the character encoding of your locale by running the shell command
<SAMP>`locale charmap&acute;</SAMP>. If the result is <SAMP>`C&acute;</SAMP> or <SAMP>`ANSI_X3.4-1968&acute;</SAMP>,
which is equivalent to <SAMP>`ASCII&acute;</SAMP> (= <SAMP>`US-ASCII&acute;</SAMP>), it means that your
@@ -241,36 +241,41 @@ locale is not correctly configured. In this case, ask your translation
team which charset to use. <SAMP>`ASCII&acute;</SAMP> is not usable for any language
except Latin.
-<A NAME="IDX234"></A>
+<A NAME="IDX235"></A>
Because the PO files must be portable to operating systems with less advanced
internationalization facilities, the character encodings that can be used
are limited to those supported by both GNU <CODE>libc</CODE> and GNU
<CODE>libiconv</CODE>. These are:
<CODE>ASCII</CODE>, <CODE>ISO-8859-1</CODE>, <CODE>ISO-8859-2</CODE>, <CODE>ISO-8859-3</CODE>,
<CODE>ISO-8859-4</CODE>, <CODE>ISO-8859-5</CODE>, <CODE>ISO-8859-6</CODE>, <CODE>ISO-8859-7</CODE>,
-<CODE>ISO-8859-8</CODE>, <CODE>ISO-8859-9</CODE>, <CODE>ISO-8859-13</CODE>, <CODE>ISO-8859-15</CODE>,
-<CODE>KOI8-R</CODE>, <CODE>KOI8-U</CODE>, <CODE>CP850</CODE>, <CODE>CP866</CODE>, <CODE>CP874</CODE>,
+<CODE>ISO-8859-8</CODE>, <CODE>ISO-8859-9</CODE>, <CODE>ISO-8859-13</CODE>, <CODE>ISO-8859-14</CODE>,
+<CODE>ISO-8859-15</CODE>,
+<CODE>KOI8-R</CODE>, <CODE>KOI8-U</CODE>, <CODE>KOI8-T</CODE>,
+<CODE>CP850</CODE>, <CODE>CP866</CODE>, <CODE>CP874</CODE>,
<CODE>CP932</CODE>, <CODE>CP949</CODE>, <CODE>CP950</CODE>, <CODE>CP1250</CODE>, <CODE>CP1251</CODE>,
<CODE>CP1252</CODE>, <CODE>CP1253</CODE>, <CODE>CP1254</CODE>, <CODE>CP1255</CODE>, <CODE>CP1256</CODE>,
<CODE>CP1257</CODE>, <CODE>GB2312</CODE>, <CODE>EUC-JP</CODE>, <CODE>EUC-KR</CODE>, <CODE>EUC-TW</CODE>,
<CODE>BIG5</CODE>, <CODE>BIG5-HKSCS</CODE>, <CODE>GBK</CODE>, <CODE>GB18030</CODE>, <CODE>SHIFT_JIS</CODE>,
-<CODE>JOHAB</CODE>, <CODE>TIS-620</CODE>, <CODE>VISCII</CODE>, <CODE>UTF-8</CODE>.
+<CODE>JOHAB</CODE>, <CODE>TIS-620</CODE>, <CODE>VISCII</CODE>, <CODE>GEORGIAN-PS</CODE>, <CODE>UTF-8</CODE>.
-<A NAME="IDX235"></A>
+<A NAME="IDX236"></A>
In the GNU system, the following encodings are frequently used for the
corresponding languages.
-<A NAME="IDX236"></A>
+<A NAME="IDX237"></A>
<UL>
<LI><CODE>ISO-8859-1</CODE> for
- Afrikaans, Albanian, Basque, Catalan, Dutch, English, Estonian, Faroese,
- Finnish, French, Galician, German, Greenlandic, Icelandic, Indonesian,
- Irish, Italian, Malay, Norwegian, Portuguese, Spanish, Swedish,
+ Afrikaans, Albanian, Basque, Breton, Catalan, Cornish, Danish, Dutch,
+ English, Estonian, Faroese, Finnish, French, Galician, German,
+ Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Manx,
+ Norwegian, Occitan, Portuguese, Spanish, Swedish, Tagalog, Uzbek,
+ Walloon,
<LI><CODE>ISO-8859-2</CODE> for
- Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak, Slovenian,
+ Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak,
+ Slovenian,
<LI><CODE>ISO-8859-3</CODE> for Maltese,
<LI><CODE>ISO-8859-5</CODE> for Macedonian, Serbian,
@@ -283,16 +288,20 @@ corresponding languages.
<LI><CODE>ISO-8859-9</CODE> for Turkish,
-<LI><CODE>ISO-8859-13</CODE> for Latvian, Lithuanian,
+<LI><CODE>ISO-8859-13</CODE> for Latvian, Lithuanian, Maori,
+
+<LI><CODE>ISO-8859-14</CODE> for Welsh,
<LI><CODE>ISO-8859-15</CODE> for
Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish,
- Italian, Portuguese, Spanish, Swedish,
+ Italian, Portuguese, Spanish, Swedish, Walloon,
<LI><CODE>KOI8-R</CODE> for Russian,
<LI><CODE>KOI8-U</CODE> for Ukrainian,
+<LI><CODE>KOI8-T</CODE> for Tajik,
+
<LI><CODE>CP1251</CODE> for Bulgarian, Byelorussian,
<LI><CODE>GB2312</CODE>, <CODE>GBK</CODE>, <CODE>GB18030</CODE>
@@ -307,12 +316,14 @@ corresponding languages.
<LI><CODE>TIS-620</CODE> for Thai,
+<LI><CODE>GEORGIAN-PS</CODE> for Georgian,
+
<LI><CODE>UTF-8</CODE> for any language, including those listed above.
</UL>
-<A NAME="IDX237"></A>
<A NAME="IDX238"></A>
+<A NAME="IDX239"></A>
When single quote characters or double quote characters are used in
translations for your language, and your locale's encoding is one of the
ISO-8859-* charsets, it is best if you create your PO files in UTF-8
@@ -324,7 +335,7 @@ real quote characters, whereas users in ISO-8859-* locales will see the
vertical apostrophe and the vertical double quote instead (because that's
what the character set conversion will transliterate them to).
-<A NAME="IDX239"></A>
+<A NAME="IDX240"></A>
To enter such quote characters under X11, you can change your keyboard
mapping using the <CODE>xmodmap</CODE> program. The X11 names of the quote
characters are "leftsinglequotemark", "rightsinglequotemark",