mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01:00
Docs: Mention gettext setup requirements in i18n section
This commit is contained in:
parent
562f29afdc
commit
deab106457
@ -20,6 +20,10 @@ the GETTEXT_PACKAGE macro suitably for your library:
|
|||||||
#define GETTEXT_PACKAGE "gtk20"
|
#define GETTEXT_PACKAGE "gtk20"
|
||||||
#include <glib/gi18n-lib.h>
|
#include <glib/gi18n-lib.h>
|
||||||
</programlisting></informalexample>
|
</programlisting></informalexample>
|
||||||
|
Note that you also have to call setlocale() and textdomain() (as well as
|
||||||
|
bindtextdomain() and bind_textdomain_codeset()) early on in your main()
|
||||||
|
to make gettext() work.
|
||||||
|
|
||||||
The gettext manual covers details of how to set up message extraction
|
The gettext manual covers details of how to set up message extraction
|
||||||
with xgettext.
|
with xgettext.
|
||||||
</para>
|
</para>
|
||||||
@ -237,3 +241,12 @@ Intltool has support for the NC_() macro since version 0.40.1.
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_get_locale_variants ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@locale:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user