1NE_I18N_INIT(3) neon API reference NE_I18N_INIT(3)
2
3
4
6 ne_i18n_init - functions to initialize internationalization support
7
9 #include <ne_i18n.h>
10
11 void ne_i18n_init(const char *encoding);
12
14 The ne_i18n_init function can be used to enable support for translated
15 messages in the neon library. The encoding parameter, if non-NULL,
16 specifies the character encoding required for generated translated
17 string. If it is NULL, the appropriate character encoding for the
18 process locale will be used.
19
20 This call is only strictly necessary if either:
21
22 1. neon has been installed into a different prefix than the gettext
23 implementation on which it depends for i18n purposes, or
24
25 2. the caller requires that translated messages are in a particular
26 character encoding.
27
28 If ne_i18n_init is never called, the message catalogs will not be found
29 if case (a) applies (and so English error messages will be used), and
30 will use the default character encoding specified by the process
31 locale. The library will otherwise operate correctly.
32
33 Note that the encoding used is a process-global setting and so results
34 may be unexpected if other users of neon within the process call
35 ne_i18n_init with a different encoding parameter.
36
38 ne_sock_init
39
41 Joe Orton <neon@lists.manyfish.co.uk>
42 Author.
43
45neon 0.30.2 30 September 2016 NE_I18N_INIT(3)