summaryrefslogtreecommitdiffstats
path: root/msgs/README
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-09-13 09:43:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-09-13 09:43:21 -0700
commit5280f9a0cd1f9ba200422ebba65d1e0133410995 (patch)
treebf85ce4e320a769d7e0903ff52ccfde13a422666 /msgs/README
downloadman-5280f9a0cd1f9ba200422ebba65d1e0133410995.tar.gz
man-5280f9a0cd1f9ba200422ebba65d1e0133410995.tar.bz2
man-5280f9a0cd1f9ba200422ebba65d1e0133410995.zip
Initial.man-1.6g
Diffstat (limited to 'msgs/README')
-rw-r--r--msgs/README25
1 files changed, 25 insertions, 0 deletions
diff --git a/msgs/README b/msgs/README
new file mode 100644
index 0000000..1422044
--- /dev/null
+++ b/msgs/README
@@ -0,0 +1,25 @@
+The English messages are compiled into man, and are used
+when it cannot find a message catalog.
+
+Before printing a message, man does a catopen("man_messages", 0);
+which means that it tries to open the file obtained from the environment
+variable NLSPATH by substituting "man_messages" for %N, and $LC_MESSAGES
+for %L (older implementations use $LANG instead)
+When NLSPATH is not set, the value
+ "/usr/lib/locale/%L/%N.cat:/usr/lib/locale/%N/%L"
+is used. If no information about the language is available, "C" is used.
+
+Because the catalog routines are not generally available, I have enclosed
+a copy of the gencat source.
+
+If you add a new message catalog, say for language da, then verify that
+the labels are used correctly by doing
+ ../src/makemsg mess.en x.en.h x.en.c
+ ../src/makemsg mess.da x.da.h x.da.c
+ diff x.en.h x.da.h
+ rm x*
+The files x.en.h and x.da.h should be identical.
+
+
+Recent gencat wants to know what codeset the messages are in.
+Please report incorrect codesets to flucifredi@acm.org.