]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Use GNU coding style in man pages.
authorBruno Haible <bruno@clisp.org>
Tue, 19 Nov 2024 18:11:18 +0000 (19:11 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 19 Nov 2024 18:11:18 +0000 (19:11 +0100)
Reported by наб <nabijaczleweli@nabijaczleweli.xyz> in
<https://lists.gnu.org/archive/html/bug-gettext/2022-01/msg00019.html>.

* gettext-runtime/man/gettext.3.in: In C code snippets, put a space before '('
and after ','.
* gettext-runtime/man/bind_textdomain_codeset.3.in: Likewise.

gettext-runtime/man/bind_textdomain_codeset.3.in
gettext-runtime/man/gettext.3.in

index e1373cf2786b8ecb8d75713c9b8fb14cba691c26..501914d9f651fcfe799150529286f1bebfe4f1af 100644 (file)
@@ -10,7 +10,7 @@
 .\"   GNU gettext source code and manual
 .\"   LI18NUX 2000 Globalization Specification
 .\"
-.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext @VERSION@"
+.TH BIND_TEXTDOMAIN_CODESET 3 "November 2024" "GNU gettext @VERSION@"
 .SH NAME
 bind_textdomain_codeset \- set encoding of message translations
 .SH SYNOPSIS
@@ -29,7 +29,7 @@ every software package has its own message domain.
 .PP
 By default, the \fBgettext\fP family of functions returns translated messages
 in the locale's character encoding, which can be retrieved as
-\fBnl_langinfo(CODESET)\fP. The need for calling \fBbind_textdomain_codeset\fP
+\fBnl_langinfo (CODESET)\fP. The need for calling \fBbind_textdomain_codeset\fP
 arises for programs which store strings in a locale independent way (e.g.
 UTF-8) and want to avoid an extra character set conversion on the returned
 translated messages.
index 8a8766d2bec74d0c70ce702daac5e335c59b83b4..13eaf8cb792fd4ecec398dde59188afd99e08ccd 100644 (file)
@@ -10,7 +10,7 @@
 .\"   GNU gettext source code and manual
 .\"   LI18NUX 2000 Globalization Specification
 .\"
-.TH GETTEXT 3 "May 2001" "GNU gettext @VERSION@"
+.TH GETTEXT 3 "November 2024" "GNU gettext @VERSION@"
 .SH NAME
 gettext, dgettext, dcgettext \- translate message
 .SH SYNOPSIS
@@ -46,7 +46,7 @@ used instead.
 Translation lookup operates in the context of the current locale. For the
 \fBgettext\fP and \fBdgettext\fP functions, the \fBLC_MESSAGES\fP locale
 facet is used. It is determined by a preceding call to the \fBsetlocale\fP
-function. \fBsetlocale(LC_ALL,"")\fP initializes the \fBLC_MESSAGES\fP locale
+function. \fBsetlocale (LC_ALL, "")\fP initializes the \fBLC_MESSAGES\fP locale
 based on the first nonempty value of the three environment variables
 \fBLC_ALL\fP, \fBLC_MESSAGES\fP, \fBLANG\fP; see \fBsetlocale\fP(3). For the
 \fBdcgettext\fP function, the locale facet is determined by the \fIcategory\fP