Vergleich inc/class_language.php - 1.8.3 - 1.8.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 42Zeile 42
	/**
* Set the path for the language folder.
*

	/**
* Set the path for the language folder.
*

	 * @param string The path to the language folder.

	 * @param string $path The path to the language folder.

	 */
function set_path($path)
{

	 */
function set_path($path)
{

Zeile 52Zeile 52
	/**
* Check if a specific language exists.
*

	/**
* Check if a specific language exists.
*

	 * @param string The language to check for.

	 * @param string $language The language to check for.

	 * @return boolean True when exists, false when does not exist.
*/
function language_exists($language)

	 * @return boolean True when exists, false when does not exist.
*/
function language_exists($language)

Zeile 71Zeile 71
	/**
* Set the language for an area.
*

	/**
* Set the language for an area.
*

	 * @param string The language to use.
* @param string The area to set the language for.

	 * @param string $language The language to use.
* @param string $area The area to set the language for.

	 */
function set_language($language="english", $area="user")
{

	 */
function set_language($language="english", $area="user")
{

Zeile 125Zeile 125
	/**
* Load the language variables for a section.
*

	/**
* Load the language variables for a section.
*

	 * @param string The section name.
* @param boolean Is this a datahandler?
* @param boolean supress the error if the file doesn't exist?

	 * @param string $section The section name.
* @param boolean $isdatahandler Is this a datahandler?
* @param boolean $supress_error supress the error if the file doesn't exist?

	 */
function load($section, $isdatahandler=false, $supress_error=false)
{

	 */
function load($section, $isdatahandler=false, $supress_error=false)
{

Zeile 173Zeile 173
		}
}


		}
}


 
	/**
* @param string $string
*
* @return string
*/

	function sprintf($string)
{
$arg_list = func_get_args();

	function sprintf($string)
{
$arg_list = func_get_args();

Zeile 189Zeile 194
	/**
* Get the language variables for a section.
*

	/**
* Get the language variables for a section.
*

	 * @param boolean Admin variables when true, user when false.

	 * @param boolean $admin Admin variables when true, user when false.

	 * @return array The language variables.
*/

	 * @return array The language variables.
*/

	function get_languages($admin=0)

	function get_languages($admin=false)

	{
$dir = @opendir($this->path);
while($lang = readdir($dir))

	{
$dir = @opendir($this->path);
while($lang = readdir($dir))

Zeile 215Zeile 220
	/**
* Parse contents for language variables.
*

	/**
* Parse contents for language variables.
*

	 * @param string The contents to parse.

	 * @param string $contents The contents to parse.

	 * @return string The parsed contents.
*/
function parse($contents)

	 * @return string The parsed contents.
*/
function parse($contents)

Zeile 227Zeile 232
	/**
* Replace content with language variable.
*

	/**
* Replace content with language variable.
*

	 * @param array Matches.

	 * @param array $matches Matches.

	 * @return string Language variable.
*/
function parse_replace($matches)
{

	 * @return string Language variable.
*/
function parse_replace($matches)
{

		return $this->$matches[1];

		return $this->{$matches[1]};

	}
}

	}
}