Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/ref.gettext.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.gettext.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'ref.gettext.php',
1 => 'Gettext Functions',
),
'up' =>
array (
0 => 'book.gettext.php',
1 => 'Gettext',
),
'prev' =>
array (
0 => 'gettext.constants.php',
1 => 'Predefined Constants',
),
'next' =>
array (
0 => 'function.bind-textdomain-codeset.php',
1 => 'bind_textdomain_codeset',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">Gettext Functions</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.bind-textdomain-codeset.php">bind_textdomain_codeset</a> — Specify the character encoding in which the messages from the DOMAIN message catalog will be returned</li><li><a href="function.bindtextdomain.php">bindtextdomain</a> — Sets the path for a domain</li><li><a href="function.dcgettext.php">dcgettext</a> — Overrides the domain for a single lookup</li><li><a href="function.dcngettext.php">dcngettext</a> — Plural version of dcgettext</li><li><a href="function.dgettext.php">dgettext</a> — Override the current domain</li><li><a href="function.dngettext.php">dngettext</a> — Plural version of dgettext</li><li><a href="function.gettext.php">gettext</a> — Lookup a message in the current domain</li><li><a href="function.ngettext.php">ngettext</a> — Plural version of gettext</li><li><a href="function.textdomain.php">textdomain</a> — Sets the default domain</li></ul>
</div>
<?php manual_footer(); ?>