<HTML ><HEAD ><TITLE >Gettext</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="unregister_tick_function" HREF="function.unregister-tick-function.html"><LINK REL="NEXT" TITLE="bind_textdomain_codeset" HREF="function.bind-textdomain-codeset.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.unregister-tick-function.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.bind-textdomain-codeset.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.gettext" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >XXXV. Gettext</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN29425" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.intro" ></A >Introduction</H1 ><P > The gettext functions implement an NLS (Native Language Support) API which can be used to internationalize your PHP applications. Please see the gettext documentation for your system for a thorough explanation of these functions or view the docs at <A HREF="http://www.gnu.org/manual/gettext/index.html" TARGET="_top" >http://www.gnu.org/manual/gettext/index.html</A >. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.requirements" ></A >Requirements</H1 ><P > To use these functions you must download and install the GNU gettext package from <A HREF="http://www.gnu.org/software/gettext/gettext.html" TARGET="_top" >http://www.gnu.org/software/gettext/gettext.html</A > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.installation" ></A >Installation</H1 ><P > To include GNU gettext support in your PHP build you must add the option <TT CLASS="option" >--with-gettext[=DIR]</TT > where DIR is the gettext install directory, defaults to <TT CLASS="filename" >/usr/local</TT >. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note to Win32 Users: </B > In order to enable this module on a Windows environment, you must copy <SPAN CLASS="emphasis" ><I CLASS="emphasis" >gnu_gettext.dll</I ></SPAN > from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). Starting with PHP 4.2.3 the name changed to <SPAN CLASS="emphasis" ><I CLASS="emphasis" >libintl-1.dll</I ></SPAN > </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.configuration" ></A >Runtime Configuration</H1 ><P >This extension has no configuration directives defined in <TT CLASS="filename" >php.ini</TT >.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.resources" ></A >Resource Types</H1 ><P >This extension has no resource types defined.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="gettext.constants" ></A >Predefined Constants</H1 ><P >This extension has no constants defined.</P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.bind-textdomain-codeset.html" >bind_textdomain_codeset</A > -- Specify the character encoding in which the messages from the DOMAIN message catalog will be returned </DT ><DT ><A HREF="function.bindtextdomain.html" >bindtextdomain</A > -- Sets the path for a domain</DT ><DT ><A HREF="function.dcgettext.html" >dcgettext</A > -- Overrides the domain for a single lookup</DT ><DT ><A HREF="function.dcngettext.html" >dcngettext</A > -- Plural version of dcgettext</DT ><DT ><A HREF="function.dgettext.html" >dgettext</A > -- Override the current domain</DT ><DT ><A HREF="function.dngettext.html" >dngettext</A > -- Plural version of dgettext</DT ><DT ><A HREF="function.gettext.html" >gettext</A > -- Lookup a message in the current domain</DT ><DT ><A HREF="function.ngettext.html" >ngettext</A > -- Plural version of gettext</DT ><DT ><A HREF="function.textdomain.html" >textdomain</A > -- Sets the default domain</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.unregister-tick-function.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.bind-textdomain-codeset.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >unregister_tick_function</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >bind_textdomain_codeset</TD ></TR ></TABLE ></DIV ></BODY ></HTML >