CaMykS  1.0-20231201
Functions | Variables
language.php.inc File Reference

Functions

 language_getAvailableLanguages ()
 
 language_isKnownlanguage ($lg)
 
 language_getTitle ($lg)
 
 language_loadLocales ($language=null)
 
 language_getIcon ($short, $full=true)
 
 language_getLocale ($short_name, $encodage='')
 
 language_getScriptList ()
 
 language_getScriptTitleList ()
 
 language_getScriptTitle ($script)
 
 language_getFileUnit ()
 
 language_numberFormat ($number, $floats=2)
 
 language_getDictionnaryList ($folder='')
 

Variables

global $languages
 Language specific methods. More...
 
const LANG_ICON_PATH ""
 
const LANG_ICON_EXTENSION ".gif"
 
const LANG_ICON_DEFAULT "default"
 

Function Documentation

◆ language_getAvailableLanguages()

language_getAvailableLanguages ( )

Return available languages.

Returns
array

◆ language_isKnownlanguage()

language_isKnownlanguage (   $lg)

Check if language is available.

Parameters
string$lg
Returns
boolean

◆ language_getTitle()

language_getTitle (   $lg)

Return language title.

Parameters
string$lg
Returns
string

◆ language_loadLocales()

language_loadLocales (   $language = null)

Load language locales.

Parameters
string$language
Returns
void

◆ language_getIcon()

language_getIcon (   $short,
  $full = true 
)

Return html flag url.

Parameters
string$short
boolean$full
Returns
string

◆ language_getLocale()

language_getLocale (   $short_name,
  $encodage = '' 
)

Return locale value from given language/country.

Parameters
string$short_name
string$encodage
Returns
string

◆ language_getScriptList()

language_getScriptList ( )

Return language script list.

Returns
array

◆ language_getScriptTitleList()

language_getScriptTitleList ( )

Return language script title list.

Returns
array

◆ language_getScriptTitle()

language_getScriptTitle (   $script)

Return language script title.

Parameters
string$script
Returns
string

◆ language_getFileUnit()

language_getFileUnit ( )

Return file size unit.

Returns
char

◆ language_numberFormat()

language_numberFormat (   $number,
  $floats = 2 
)

Return number formatting case of current language.

Parameters
float$number
integer$floats
Returns
string

◆ language_getDictionnaryList()

language_getDictionnaryList (   $folder = '')

Return available dictionnaries for a given folder

Parameters
string$folder
Returns
array

Variable Documentation

◆ $languages

array $languages

Language specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.3
Date
Creation: Jun 2005
Modification: Jun 2021
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

◆ LANG_ICON_PATH

const LANG_ICON_PATH ""

◆ LANG_ICON_EXTENSION

const LANG_ICON_EXTENSION ".gif"

◆ LANG_ICON_DEFAULT

const LANG_ICON_DEFAULT "default"