PHPGettextLocated in /includes/phpgettext/phpgettext.class.php (line 13)
mixed
$charset
(line 34)
The current character set
mixed
$debug
(line 53)
The debugging flag
mixed
$domain
(line 29)
The current domain
mixed
$has_gettext
(line 15)
mixed
$headers
= array() (line 44)
The asssociative array of headers for the current domain
mixed
$lang
(line 20)
The current locale. eg: en-GB
mixed
$locale
(line 24)
The current locale. eg: en-GB
mixed
$messages
= array() (line 48)
The asssociative array of messages for the current domain
mixed
$text_domains
= array() (line 39)
Container for the loaded domains
Sets the path for a domain
if gettext is unavailable, translation files will be loaded here
Specify the character encoding in which the messages
from the DOMAIN message catalog will be returned
Overrides the domain for a single lookup This function allows you to override the current domain for a single message lookup.
It also allows you to specify a category. Categories are folders within the languages directory . currently, only LC_MESSAGES is implemented
The values for categories are: LC_CTYPE 0 LC_NUMERIC 1 LC_TIME 2 LC_COLLATE 3 LC_MONETARY 4 LC_MESSAGES 5 LC_ALL 6
not yet implemented
dcngettext -- Plural version of dcgettext
not yet implemented
Override the current domain The dgettext() function allows you to override the current domain for a single message lookup.
Plural version of dgettext
Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;
nplurals - total number of plurals plural - the plural index
Plural-Forms: nplurals=1; plural=0;
Plural-Forms: nplurals=2; plural=n>1; 2 forms, singular used for zero and one
Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2; 3 forms, special case for zero
Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2; 3 forms, special cases for one and two
Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3; 4 forms, special case for one and all numbers ending in 02, 03, or 04
Lookup a message in the current domain
returns translation if it exists or original message
Plural version of gettext
debugging function
Set and lookup the locale from the environment variables.
Priority order for gettext is:
Sets the default domain textdomain
Alias for gettext
will also output the result if $output = true
Documentation generated on Mon, 05 May 2008 16:22:23 +0400 by phpDocumentor 1.4.0