yana

phpDocumentor v 1.4.0

Class Language

Description

«Singleton» Language
This class may be used to dynamically load additional language files at runtime.
  • access: public
Object
   |
   --Singleton
      |
      --Language
Method Summary

Methods

get name of selected language
string|bool(false) getSelectedLanguage ()
Description:
Returns the name of the currently selected language as a string, or bool(false) on error.
Example: Returns 'en' for English, 'de' for German.
Technically spoken, this is the name of the sub-directory, where the current language's files are stored. Check the directory "languages/" for a complete list.
  • since: 2.9.6
  • access: public
read language strings from a file
bool read (
string $filename
)
List of parameters:
Name Type Description
$filename string
Description:
The file should be taken from 'languages/*.config', without path and file extension.
The file contents will automatically be stored in the global registry and can be accessed using $YANA->getVar('LANGUAGE.SOME_VALUE').
This function issues an E_USER_NOTICE if the file does not exist. It returns bool(true) on success and bool(false) on error.
  • access: public
inherited from base classes

Inherited From Singleton

Inherited From Object

Documentation generated on Sat, 03 Jan 2009 22:22:29 +0100 by phpDocumentor 1.4.0

yana author: Thomas MeyerHomepage: www.yanaframework.net