-/**
-* Generic gettext static class.
-*
-* This class allows gettext usage with php even if the gettext support is
-* not compiled in php.
-*
-* The developper can choose between the GETTEXT_NATIVE support and the
-* GETTEXT_PHP support on initialisation. If native is not supported, the
-* system will fall back to PHP support.
-*
-* On both systems, this package add a variable interpolation system so you can
-* translate entire dynamic sentences in stead of peace of sentences.
-*
-* Small example without pear error lookup :
-*
-* <?php
-* require_once "get_text.php";
-*
-* get_text::init();
-* get_text::set_language('fr_Fr'); // may throw GetText_Error
-* get_text::add_domain('myAppDomain'); // may throw GetText_Error
-* get_text::set_var('login', $login);
-* get_text::set_var('name', $name);
-*
-* // may throw GetText_Error
-* echo get_text::gettext('Welcome ${name}, you\'re connected with login ${login}');
-*
-* // should echo something like :
-* //
-* // "Bienvenue Jean-Claude, vous ĂȘtes connectĂ© en tant qu'utilisateur jcaccount"
-* //
-* // or if fr_FR translation does not exists
-* //
-* // "Welcome Jean-Claude, you're connected with login jcaccount"
-*
-* ?>
-*
-* A gettext mini-howto should be provided with this package, if you're new
-* to gettext usage, please read it to learn how to build a gettext
-* translation directory (locale).
-*
-* @todo Tools to manage gettext files in php.
-*
-* - non traducted domains / keys
-* - modification of keys
-* - domain creation, preparation, delete, ...
-* - tool to extract required messages from TOF templates
-*
-* @version 0.5
-* @author Laurent Bedubourg <laurent.bedubourg@free.fr>
-*/
-class get_text
-{
- /**
- * This method returns current gettext support class.
- *
- * @return GetText_Support
- * @static 1
- * @access private
- */
- function &_support($set=false)
- {
- static $support_obj;
- if ($set !== false)
- {
- $support_obj = $set;
- }
- elseif (!isset($support_obj))
- {
- trigger_error("get_text not initialized !". endl.
- "Please call get_text::init() before calling ".
- "any get_text function !" . endl , E_USER_ERROR);
- }
- return $support_obj;
- }
-
- /**
- * Initialize gettext package.
- *
- * This method instantiate the gettext support depending on managerType
- * value.
- *
- * GETTEXT_NATIVE try to use gettext php support and fall back to PHP
- * support if not installed.
- *
- * GETTEXT_PHP explicitely request the usage of PHP support.
- *
- * @param int $managerType
- * Gettext support type.
- *
- * @access public
- * @static 1
- */
- function init($managerType = GETTEXT_NATIVE)
- {