Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbGettext Class Reference

List of all members.

Detailed Description

gettext extension emulation class

Todo:
rewrite to use getInstance() function

Definition at line 27 of file Gettext.php.

Public Member Functions

 bind_textdomain_codeset ($domain, $codeset)
 dcgettext ($domain, $message, $category)
 dcngettext ($domain, $msgid1, $msgid2, $n, $category)
 dgettext ($domain, $message)
 dngettext ($domain, $msgid1, $msgid2, $n)
 ngettext ($msgid1, $msgid2, $n)

Static Public Member Functions

 init ($domain= 'freebeer', $dir=null)
 bindtextdomain ($domain, $directory)
 textdomain ($domain=null)
 gettext ($message)

Static Private Member Functions

 _domain ($domain=null)
_text_domain ()
_translation_map ()
 _loadData ()


Member Function Documentation

fbGettext::_domain domain = null  )  [static, private]
 

Get the translation table for domain $domain

Parameters:
$domain string Domain name
Returns:
array The translation table for domain $domain

Definition at line 53 of file Gettext.php.

References _loadData(), and fbDebug::enter().

Referenced by _loadData(), and textdomain().

fbGettext::_loadData  )  [static, private]
 

Load the translation table for the domain

Returns:
array The translation table for domain $domain, or false

Definition at line 101 of file Gettext.php.

References _domain(), _text_domain(), _translation_map(), fbDebug::dump(), fbDebug::enter(), getLocale(), and getNearestLocales().

Referenced by _domain(), and gettext().

& fbGettext::_text_domain  )  [static, private]
 

Get the static text domain array

Returns:
array Reference to static text domain array

Definition at line 72 of file Gettext.php.

References fbDebug::enter().

Referenced by _loadData(), and bindtextdomain().

& fbGettext::_translation_map  )  [static, private]
 

Get the static text domain array

Returns:
array Reference to static text domain array

Definition at line 86 of file Gettext.php.

References fbDebug::enter().

Referenced by _loadData(), and gettext().

fbGettext::bind_textdomain_codeset domain,
codeset
 

Todo:
Implement

Definition at line 250 of file Gettext.php.

fbGettext::bindtextdomain domain,
directory
[static]
 

Definition at line 206 of file Gettext.php.

References _text_domain(), and fbDebug::enter().

Referenced by init().

fbGettext::dcgettext domain,
message,
category
 

Todo:
Implement

Definition at line 259 of file Gettext.php.

fbGettext::dcngettext domain,
msgid1,
msgid2,
n,
category
 

Todo:
Implement

Definition at line 268 of file Gettext.php.

fbGettext::dgettext domain,
message
 

Todo:
Implement

Definition at line 277 of file Gettext.php.

fbGettext::dngettext domain,
msgid1,
msgid2,
n
 

Todo:
Implement

Definition at line 286 of file Gettext.php.

fbGettext::gettext message  )  [static]
 

Definition at line 225 of file Gettext.php.

References _loadData(), _translation_map(), fbDebug::dump(), fbDebug::enter(), and getLocale().

fbGettext::init domain = 'freebeer',
dir = null
[static]
 

Initialize the gettext() system for domain $domain.

Parameters:
$domain string Domain name
$dir string Location of the /local directory containing the .po files
Returns:
void

Definition at line 36 of file Gettext.php.

References bindtextdomain(), and textdomain().

fbGettext::ngettext msgid1,
msgid2,
n
 

Todo:
Implement

Definition at line 295 of file Gettext.php.

fbGettext::textdomain domain = null  )  [static]
 

Definition at line 217 of file Gettext.php.

References _domain(), and fbDebug::enter().

Referenced by init().


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:31 2004 for Freebeer by doxygen 1.3.6-20040222