summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7bd637c)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9159
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/**
* SquirrelMail internal gettext functions
*
/**
* SquirrelMail internal gettext functions
*
- * Uses php-gettext classes
+ * Since 1.5.1 uses php-gettext classes.
+ * Original implementation was done by Tyler Akins (fidian)
* @copyright (c) 1999-2005 The SquirrelMail Project Team
* @copyright (c) 1999-2005 The SquirrelMail Project Team
- * @license http://opensource.org/licenses/gpl-license.php GNU Public Licens
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://www.php.net/gettext Original php gettext manual
* @link http://savannah.nongnu.org/projects/php-gettext php-gettext classes
* @version $Id$
* @link http://www.php.net/gettext Original php gettext manual
* @link http://savannah.nongnu.org/projects/php-gettext php-gettext classes
* @version $Id$
* @package squirrelmail
* @subpackage i18n
*/
* @package squirrelmail
* @subpackage i18n
*/
*
* @param string $str English string
* @return string translated string
*
* @param string $str English string
* @return string translated string
*/
function _($str) {
global $l10n, $gettext_domain;
*/
function _($str) {
global $l10n, $gettext_domain;
* @param string $domain gettext domain name
* @param string $dir directory that contains all translations
* @return string path to translation directory
* @param string $domain gettext domain name
* @param string $dir directory that contains all translations
* @return string path to translation directory
*/
function bindtextdomain($domain, $dir) {
global $l10n, $sm_notAlias;
*/
function bindtextdomain($domain, $dir) {
global $l10n, $sm_notAlias;
/**
* Alternative php textdomain function
*
/**
* Alternative php textdomain function
*
- * Sets default domain name
+ * Sets default domain name. Before 1.5.1 command required
+ * bindtextdomain() call for each gettext domain change.
*
* @link http://www.php.net/function.textdomain
* @param string $name gettext domain name
* @return string gettext domain name
*
* @link http://www.php.net/function.textdomain
* @param string $name gettext domain name
* @return string gettext domain name
*/
function textdomain($name = false) {
global $gettext_domain;
*/
function textdomain($name = false) {
global $gettext_domain;