AppController.h AppController.m BUGS BUGS BUGS BUGS BUGS BUGS ChangeLog Doxyfile.am Doxyfile.global FAQ.html GNU_Gettext.html GNU_Gettext_GettextResourceManager.html GNU_Gettext_GettextResourceSet.html GNUmakefile GNUmakefile GettextResource.html Hello.h Hello.java Hello.java Hello.java Hello.java Hello.m INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL INSTALL LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LINGUAS LocaleAliases Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.am Makefile.common Makevars Makevars Makevars Makevars Makevars Makevars Makevars Makevars POTFILES.in POTFILES.in POTFILES.in POTFILES.in POTFILES.in POTFILES.in POTFILES.in POTFILES.in README README README Test15.class Test15.java TestAWT.class TestAWT.class TestAWT.java TestAWT.java acinclude.m4.in af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po af.po allclasses-frame.html am_edit ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po ast.po autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autoclean.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autogen.sh autopoint.1.html autosprintf_all.html begin.html bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bg.po bind_textdomain_codeset.3.html bindtextdomain.3.html ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po ca.po compile conf.change.pl config.guess config.pl config.sub configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.ac configure.in.bot.end configure.in.in configure.in.min cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po cs.po csharpcomp.m4 csharpcomp.sh.in csharpexec-test.exe csharpexec.m4 csharpexec.sh.in cvs-clean.pl cvs.sh da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po da.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po de.po debianrules depcomp deprecated-list.html detect-autoconf.sh el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po el.po envsubst.1.html eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po eo.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po es.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fi.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po fr.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po ga.po gettext.1.html gettext.3.html gettext_1.html gettext_10.html gettext_11.html gettext_12.html gettext_13.html gettext_14.html gettext_15.html gettext_16.html gettext_17.html gettext_18.html gettext_19.html gettext_2.html gettext_20.html gettext_21.html gettext_22.html gettext_23.html gettext_24.html gettext_25.html gettext_26.html gettext_27.html gettext_28.html gettext_29.html gettext_3.html gettext_30.html gettext_4.html gettext_5.html gettext_6.html gettext_7.html gettext_8.html gettext_9.html gettext_abt.html gettext_fot.html gettext_toc.html gettextize.1.html gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gl.po gnome-gnorba-check.m4 gnome-gnorba-check.m4 gnome-gnorba-check.m4 gnome-orbit-check.m4 gnome-orbit-check.m4 gnome-orbit-check.m4 gnome.m4 gnome.m4 gnome.m4 gtk--.m4 gtk.m4 hello-1.pl.in hello-2.pl.in hello.awk hello.c hello.c hello.c hello.cc hello.cc hello.cc hello.cc hello.cc hello.cs hello.cs hello.desktop.in.in hello.gresource.xml hello.gschema.xml hello.jl.in hello.lisp.in hello.m hello.m hello.pas hello.php hello.py.in hello.scm hello.sh hello.st.in hello.tcl hello.tcl hello.ui hello.ycp hellowindow.cc hellowindow.h help-doc.html hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hr.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po hu.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po id.po index-all.html index.html index.html install-sh installpaths it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po it.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po ja.po javacomp.m4 javacomp.sh.in javaexec.m4 javaexec.sh.in ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po ky.po libtool.m4.in ltmain.sh lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po lv.po main.m missing mkinstalldirs ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po ms.po msgattrib.1.html msgcat.1.html msgcmp.1.html msgcomm.1.html msgconv.1.html msgen.1.html msgexec.1.html msgfilter.1.html msgfmt.1.html msggrep.1.html msginit.1.html msgmerge.1.html msgunfmt.1.html msguniq.1.html mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po mt.po namespaces.html nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po nb.po ngettext.1.html ngettext.3.html nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nl.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po nn.po overview-tree.html package-frame.html package-list package-summary.html package-tree.html packages.html pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pl.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po pt_BR.po qt.m4 recode-sr-latin.1.html ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ro.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po ru.po serialized-form.html sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sk.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sl.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sq.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po sr.po stylesheet.css sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po sv.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po ta.po textdomain.3.html tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tr.po tutorial.html uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po uk.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po vi.po wxwidgets.m4 xgettext.1.html ylwrap zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_CN.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_HK.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po zh_TW.po

gettext.3.html









GETTEXT




GETTEXT

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
BUGS
SEE ALSO

NAME

gettext, dgettext, dcgettext - translate message

SYNOPSIS

#include <libintl.h>

char * gettext (const char * msgid);
char * dgettext (const char *
domainname, const char * msgid);
char * dcgettext (const char *
domainname, const char * msgid,
int
category);

DESCRIPTION

The gettext, dgettext and dcgettext functions attempt to translate a text string into the user’s native language, by looking up the translation in a message catalog.

The msgid argument identifies the message to be translated. By convention, it is the English version of the message, with non-ASCII characters replaced by ASCII approximations. This choice allows the translators to work with message catalogs, called PO files, that contain both the English and the translated versions of each message, and can be installed using the msgfmt utility.

A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The domain name is used to determine the message catalog where the translation is looked up; it must be a non-empty string. For the gettext function, it is specified through a preceding textdomain call. For the dgettext and dcgettext functions, it is passed as the domainname argument; if this argument is NULL, the domain name specified through a preceding textdomain call is used instead.

Translation lookup operates in the context of the current locale. For the gettext and dgettext functions, the LC_MESSAGES locale facet is used. It is determined by a preceding call to the setlocale function. setlocale(LC_ALL,"") initializes the LC_MESSAGES locale based on the first nonempty value of the three environment variables LC_ALL, LC_MESSAGES, LANG; see setlocale(3). For the dcgettext function, the locale facet is determined by the category argument, which should be one of the LC_xxx constants defined in the <locale.h> header, excluding LC_ALL. In both cases, the functions also use the LC_CTYPE locale facet in order to convert the translated message from the translator’s codeset to the current locale’s codeset, unless overridden by a prior call to the bind_textdomain_codeset function.

The message catalog used by the functions is at the pathname dirname/locale/category/domainname.mo. Here dirname is the directory specified through bindtextdomain. Its default is system and configuration dependent; typically it is prefix/share/locale, where prefix is the installation prefix of the package. locale is the name of the current locale facet; the GNU implementation also tries generalizations, such as the language name without the territory name. category is LC_MESSAGES for the gettext and dgettext functions, or the argument passed to the dcgettext function.

If the LANGUAGE environment variable is set to a nonempty value, and the locale is not the "C" locale, the value of LANGUAGE is assumed to contain a colon separated list of locale names. The functions will attempt to look up a translation of msgid in each of the locales in turn. This is a GNU extension.

In the "C" locale, or if none of the used catalogs contain a translation for msgid, the gettext, dgettext and dcgettext functions return msgid.

RETURN VALUE

If a translation was found in one of the specified catalogs, it is converted to the locale’s codeset and returned. The resulting string is statically allocated and must not be modified or freed. Otherwise msgid is returned.

ERRORS

errno is not modified.

BUGS

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C.

When an empty string is used for msgid, the functions may return a nonempty string.

SEE ALSO

ngettext(3), dngettext(3), dcngettext(3), setlocale(3), textdomain(3), bindtextdomain(3), bind_textdomain_codeset(3), msgfmt(1)