From: <var...@us...> - 2012-11-15 09:26:07
|
Revision: 8467 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8467&view=rev Author: vargenau Date: 2012-11-15 09:26:01 +0000 (Thu, 15 Nov 2012) Log Message: ----------- Define function __ Modified Paths: -------------- trunk/lib/IniConfig.php Modified: trunk/lib/IniConfig.php =================================================================== --- trunk/lib/IniConfig.php 2012-11-14 18:15:33 UTC (rev 8466) +++ trunk/lib/IniConfig.php 2012-11-15 09:26:01 UTC (rev 8467) @@ -1013,7 +1013,7 @@ if (!defined('WIKI_NAME')) define('WIKI_NAME', _("An unnamed PhpWiki")); if (!defined('HOME_PAGE')) - define('HOME_PAGE', _("HomePage")); + define('HOME_PAGE', __("HomePage")); ////////////////////////////////////////////////////////////////// // Autodetect URL settings: @@ -1151,6 +1151,21 @@ } +/* + * We have to handle three languages: + * 1) English, the language of the source code + * 2) The language in which the wiki was created (DEFAULT_LANGUAGE) + * 3) The language selected by the user, in which the wiki is displayed (LANG) + * + * The function "_" translates from English to LANG. + * The function "__" translates from English to DEFAULT_LANGUAGE. + */ + +function __($text) +{ + return $text; +} + // Local Variables: // mode: php // tab-width: 8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |