CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Functions | Variables
language.php.inc File Reference

Language specific methods. More...

Functions

 language_getAvailableLanguages ()
 
 language_isKnownlanguage ($lg)
 
 language_getTitle ($lg)
 
 language_getIcon ($short, $full=true)
 
 language_getLocale ($short_name, $encodage='')
 
 language_getFileUnit ()
 
 language_numberFormat ($number, $floats=2)
 
 language_getDictionnaryList ($folder='')
 

Variables

global $languages
 
const LANG_ICON_PATH ""
 
const LANG_ICON_EXTENSION ".gif"
 
const LANG_ICON_DEFAULT "default"
 

Detailed Description

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.2
Date
Creation: Jun 2005
Modification: Oct 2018
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Function Documentation

language_getAvailableLanguages ( )

Return available languages.

Returns
array
language_getDictionnaryList (   $folder = '')

Return available dictionnaries for a given folder

Parameters
string$folder
Returns
array
language_getFileUnit ( )

Return file size unit.

Returns
char
language_getIcon (   $short,
  $full = true 
)

Return html flag url.

Parameters
string$short
boolean$full
Returns
string
language_getLocale (   $short_name,
  $encodage = '' 
)

Return locale value from given language/country.

Parameters
string$short_name
string$encodage
Returns
string
language_getTitle (   $lg)

Return language title.

Parameters
string$lg
Returns
string
language_isKnownlanguage (   $lg)

Check if language is available.

Parameters
string$lg
Returns
boolean
language_numberFormat (   $number,
  $floats = 2 
)

Return number formatting case of current language.

Parameters
float$number
integer$floats
Returns
string

Variable Documentation

array $languages
const LANG_ICON_DEFAULT "default"
const LANG_ICON_EXTENSION ".gif"
const LANG_ICON_PATH ""