i18n.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <refentry id="refi18n">
  2. <refmeta>
  3. <refentrytitle>ne_i18n_init</refentrytitle>
  4. <manvolnum>3</manvolnum>
  5. </refmeta>
  6. <refnamediv>
  7. <refname id="ne_i18n_init">ne_i18n_init</refname>
  8. <refpurpose>functions to initialize internationalization support</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcsynopsisinfo>#include &lt;ne_i18n.h&gt;</funcsynopsisinfo>
  13. <funcprototype>
  14. <funcdef>void <function>ne_i18n_init</function></funcdef>
  15. <paramdef>const char *<parameter>encoding</parameter></paramdef>
  16. </funcprototype>
  17. </funcsynopsis>
  18. </refsynopsisdiv>
  19. <refsect1>
  20. <title>Description</title>
  21. <para>The <function>ne_i18n_init</function> function can be used
  22. to enable support for translated messages in the &neon; library.
  23. The <parameter>encoding</parameter> parameter, if non-&null;,
  24. specifies the character encoding required for generated translated
  25. string. If it is &null;, the appropriate character encoding for
  26. the process locale will be used.</para>
  27. <para>This call is only strictly necessary if either:
  28. <orderedlist numeration="loweralpha">
  29. <listitem><simpara>&neon; has been installed into a different
  30. prefix than the <literal>gettext</literal> implementation on
  31. which it depends for i18n purposes, or</simpara></listitem>
  32. <listitem><simpara>the caller requires that translated messages
  33. are in a particular character encoding.</simpara></listitem>
  34. </orderedlist></para>
  35. <para>If <function>ne_i18n_init</function> is never called, the
  36. message catalogs will not be found if case (a) applies (and so
  37. English error messages will be used), and will use the default
  38. character encoding specified by the process locale. The library
  39. will otherwise operate correctly.</para>
  40. <para>Note that the encoding used is a process-global setting and
  41. so results may be unexpected if other users of &neon; within the
  42. process call <function>ne_i18n_init</function> with a different
  43. encoding parameter.</para>
  44. </refsect1>
  45. <refsect1>
  46. <title>See also</title>
  47. <para><xref linkend="ne_sock_init"/></para>
  48. </refsect1>
  49. </refentry>