]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
locale.1: Use LC_TELEPHONE instead of LC_MESSAGES in the example
authorMarko Myllynen <myllynen@redhat.com>
Mon, 26 May 2014 14:24:32 +0000 (17:24 +0300)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 26 May 2014 15:24:21 +0000 (17:24 +0200)
yesstr/nostr in LC_MESSAGES are planned to be changed at some
point [1], so it's better to provide an example which won't
be obsoleted by that change.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=16975

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man1/locale.1

index 1bed28ddcd8efbc73058cde51b97eaf5cfe670bd..12a55f22559374b1cbe6646e9d73aed6b76b6e8d 100644 (file)
@@ -153,19 +153,19 @@ $ \fBlocale \-ck date_fmt\fP
 LC_TIME
 date_fmt="%a %b %e %H:%M:%S %Z %Y"
 
-$ \fBlocale LC_MESSAGES\fP
-^[yY].*
-^[nN].*
-Yes
-No
+$ \fBlocale LC_TELEPHONE\fP
++%c (%a) %l
+(%a) %l
+11
+1
 UTF\-8
 
-$ \fBlocale \-k LC_MESSAGES\fP
-yesexpr="^[yY].*"
-noexpr="^[nN].*"
-yesstr="Yes"
-nostr="No"
-messages\-codeset="UTF\-8"
+$ \fBlocale \-k LC_TELEPHONE\fP
+tel_int_fmt="+%c (%a) %l"
+tel_dom_fmt="(%a) %l"
+int_select="11"
+int_prefix="1"
+telephone\-codeset="UTF\-8"
 .fi
 
 The following example compiles a custom locale from the