lang Class Reference

represents a translation lang allowed in this wiki More...

List of all members.

Public Member Functions

 lang ($id, $code, $description, $flag)
 getIdFromCode ($langList, $code)
 returns a lang database id from a list of lang object and a lang code
 getUILangs ($langBaseDir)
 returns a list of available langs from i18n directory

Public Attributes

 $id
 database id
 $code
 lang code
 $description
 free text description
 $flag
 flag file name (fr_lang.png for example)


Detailed Description

represents a translation lang allowed in this wiki

an allowed translation lang must not be confused with a UI translation lang. a site may allow 2 langs (say fr and en) but provides UI translation files in more languages.


Member Function Documentation

lang::getIdFromCode ( langList,
code 
)

returns a lang database id from a list of lang object and a lang code

this method is static

Parameters:
langList array<lang>
code lang code
Returns:
database id

lang::getUILangs ( langBaseDir  ) 

returns a list of available langs from i18n directory

this method is static

Parameters:
$langBaseDir path to i18n lang files
Returns:
array<lang code>


Member Data Documentation

lang::$code

lang code

lang::$description

free text description

lang::$flag

flag file name (fr_lang.png for example)

lang::$id

database id


The documentation for this class was generated from the following file:
Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7