[Date Prev][Date Next]
National Language Support Library (ITS#1201)
Full_Name: Julius Enarusai
Submission from: (NULL) (22.214.171.124)
The national Language Support Library (included as part of libldap and
includes a set of routines which provide localization support to OpenLDAP. As a
proof of concept, I have included an initial language catalog for the set of
codes contained in error.c, called clnt.cat.
In order to take advantage of this new capability, the user would need to
1. run the configure script with the following option enabled
2. run "make depend" and make as usual.
3. Copy the clnt.cat file to a directory of his/her choice and set the NLSPATH
environment variable to point to that directory. If the NLSPATH is not set,
the clnt.cat file would need to be copied to one of the following
Once the above steps are completed, whenever you call the ldap_err2string
it will lookup the given error code from the clnt.cat catalog and return the
language text. If for some reason it fails to open the catalog file, it will
return a default english language text for the given error code.
TODO: I am still working on a more detailed description of all the routines
including a HOW-TO.