From f7c8729376e88e20592b943f196811ea292526a7 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 5 Sep 2000 19:14:34 +0000 Subject: Document %-macros and NLSPATH better. --- lib/libc/nls/catopen.3 | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/nls/catopen.3 b/lib/libc/nls/catopen.3 index 4e1f98a..272fe7e 100644 --- a/lib/libc/nls/catopen.3 +++ b/lib/libc/nls/catopen.3 @@ -55,8 +55,48 @@ specifies the full pathname for the message catalog, otherwise the value of the environment variable .Ev NLSPATH is used with +the following substitutions: +.Bl -tag -width XXX +.It \&%N +The value of the .Fa name -substituted for %N. +argument. +.It \&%L +The value of the +.Ev LANG +environment variable or the +.Dv LC_MESSAGES +category (see below). +.It \&%l +The language element from the +.Ev LANG +environment variable or from the +.Dv LC_MESSAGES +category. +.It \&%t +The territory element from the +.Ev LANG +environment variable or from the +.Dv LC_MESSAGES +category. +.It \&%c +The codeset element from the +.Ev LANG +environment variable or from the +.Dv LC_MESSAGES +category. +.It \&%% +A single % character. +.El +.Pp +An empty string is substituted for undefined values. +.Pp +Path names templates defined in +.Ev NLSPATH +are separated by colons +.No ( Sq \&: ) . +A leading or two adjacent colons +is equivalent to specifying %N. .Pp If the .Fa oflag -- cgit v1.1