]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Clarify locale name syntax.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 23:13:47 +0000 (00:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 23:13:47 +0000 (00:13 +0100)
* gettext-tools/doc/gettext.texi (Locale Names): Fix typo in locale name syntax.
* gettext-tools/doc/msginit.texi: Clarify that the '-l' argument optionally
contains an encoding.
* gettext-tools/src/msginit.c (usage): Likewise.

gettext-tools/doc/gettext.texi
gettext-tools/doc/msginit.texi
gettext-tools/src/msginit.c

index 1da7620cd9d2ba9d7710f09a2fad1029ec7dd757..f5bc68887ecf925c4350910e11d00a8c4e7bb566 100644 (file)
@@ -1257,7 +1257,7 @@ still refers to the German locale as of 2000 that stores characters in
 ISO-8859-1 encoding -- a text encoding that cannot even accommodate the Euro
 currency sign.
 
-Some locale names use @samp{@var{ll}_@var{CC}.@@@var{variant}} instead of
+Some locale names use @samp{@var{ll}_@var{CC}@@@var{variant}} instead of
 @samp{@var{ll}_@var{CC}}.  The @samp{@@@var{variant}} can denote any kind of
 characteristics that is not already implied by the language @var{ll} and
 the country @var{CC}.  It can denote a particular monetary unit.  For example,
index 2148728a87fdcf3a1335b69466c5718d6125891a..1ae97c99450913a1565886f2ac60a70415e9cc5d 100644 (file)
@@ -96,12 +96,14 @@ Assume the input file is a NeXTstep/GNUstep localized resource file in
 @subsection Output details
 
 @table @samp
-@item -l @var{ll_CC}
-@itemx --locale=@var{ll_CC}
+@item -l @var{ll_CC[.encoding]}
+@itemx --locale=@var{ll_CC[.encoding]}
 @opindex -l@r{, @code{msginit} option}
 @opindex --locale@r{, @code{msginit} option}
 Set target locale.  @var{ll} should be a language code, and @var{CC} should
-be a country code.  The command @samp{locale -a} can be used to output a list
+be a country code.  The optional part @var{.encoding} specifies the encoding
+of the locale; most often this part is @code{.UTF-8}.
+The command @samp{locale -a} can be used to output a list
 of all installed locales.  The default is the user's locale setting.
 
 @item --no-translator
index 7410ef3051b51c99f3e1f5be1110024a2f1f9791..d3a09abd602ecbb3453b7064394080ee71103344 100644 (file)
@@ -397,7 +397,7 @@ Input file syntax:\n"));
       printf (_("\
 Output details:\n"));
       printf (_("\
-  -l, --locale=LL_CC          set target locale\n"));
+  -l, --locale=LL_CC[.ENCODING]  set target locale\n"));
       printf (_("\
       --no-translator         assume the PO file is automatically generated\n"));
       printf (_("\