/functions/gettext.php

Description

SquirrelMail internal gettext functions

Since 1.5.1 uses php-gettext classes. Original implementation was done by Tyler Akins (fidian)

Includes
include_once (SM_PATH.'class/l10n.class.php') (line 21)

Load classes and other functions

include_once (SM_PATH.'functions/ngettext.php') (line 22)
Functions
bindtextdomain (line 53)

Alternative php bindtextdomain function

Sets path to directory containing domain translations

string bindtextdomain (string $domain, string $dir)
  • string $domain: gettext domain name
  • string $dir: directory that contains all translations
dgettext (line 95)

Alternative php dgettext function

string dgettext (string $domain, string $str)
  • string $domain: Gettext domain
  • string $str: English string
textdomain (line 75)

Alternative php textdomain function

Sets default domain name. Before 1.5.1 command required bindtextdomain() call for each gettext domain change.

string textdomain ([string $name = false])
  • string $name: gettext domain name
_ (line 33)

Alternative php gettext function (short form)

string _ (string $str)
  • string $str: English string

Documentation generated on Sat, 07 Oct 2006 16:11:26 +0300 by phpDocumentor 1.3.0RC6