Constructor
language
language
()
Function to construct a language pulldown menu
string
construct_language_pulldown
([ $fieldname = 'languageid'])
Function to construct a phrase using replacement phrases
array
construct_phrase
(string $var, mixed $replacements)
-
string
$var: phrase string containing [x]'s
-
mixed
$replacements: array or string containing our replacements
Function to count the number of phrases within a particular phrase group
integer
count_phrases_in_phrasegroup
([integer $phrasegroup = ''])
-
integer
$phrasegroup: phrase group
Function to count the number of un-phrased phrases within a particular phrase group
integer
count_unphrased_in_phrasegroup
([integer $phrasegroup = ''], string $slng)
-
integer
$phrasegroup: phrase group
-
string
$slng: short language code
Function to print the site's default language id
integer
fetch_default_languageid
()
Function to fetch the seo replacement characters for the seo urls based on the currently selected viewing language
integer
fetch_seo_replacements
([integer $languageid = 0])
-
integer
$languageid: language id
Function to return the language phrases cache array from the datastore.
This function is called just after session_start() within global.php
array
init_phrases
()
Function to print a language code like english or german, etc
string
print_language_code
([integer $languageid = ''])
-
integer
$languageid: (optional) language id
Function to return site language selection pulldown menu on footer pages
void
print_language_pulldown
([string $selected = ''], [bool $autosubmit = ''], [string $selectname = ''], [string $optgrouptitle = ''])
-
string
$selected: selected language
-
bool
$autosubmit: enable auto-submit once new value is selected?
-
string
$selectname: fieldname of pulldown menu
-
string
$optgrouptitle: (optional) optgroup title
Function to print the phrase group pulldown menu
integer
print_phrase_groups_pulldown
([integer $selected = ''], [bool $autosubmit = ''], string $slng)
-
integer
$selected: (optional) phrase group
-
bool
$autosubmit: enable auto-submit?
-
string
$slng: short language code
Function to print a short version of the language code like eng or ger, etc
string
print_short_language_code
()