The UI to choose a language.
tempcode
choose_lang
(tempcode $title, [boolean $choose_lang_file = false], [boolean $add_lang = false], [mixed $text = ''], [boolean $provide_na = true], [ID_TEXT $param_name = 'lang'])
-
tempcode
$title: The title to show when choosing a language
-
boolean
$choose_lang_file: Whether to also choose a language file
-
boolean
$add_lang: Whether the user may add a language
-
mixed
$text: Text message to show (Tempcode or string)
-
boolean
$provide_na: Whether to provide an N/A choice
-
ID_TEXT
$param_name: The name of the parameter for specifying language
The UI to criticise a language pack.
tempcode
criticise
()
Finds equivalents for a given string, in a different language, by automatic searching of codes and content.
string
find_lang_matches
(string $old, LANGUAGE_NAME $lang)
-
string
$old: The language string we are searching for the equivalent of
-
LANGUAGE_NAME
$lang: The language we want an equivalent in
Standard modular entry-point finder function.
?array
get_entry_points
()
Convert a standard language code to an intertran code.
string
get_intertran_conv
(LANGUAGE_NAME $in)
-
LANGUAGE_NAME
$in: The code to convert
Standard modular info function.
?array
info
()
The UI to translate code.
tempcode
interface_code
()
The UI to translate content.
tempcode
interface_content
()
Standard modular run function.
tempcode
run
()
The actualiser to translate code (called from this module).
tempcode
set_lang_code
()
The actualiser to translate code (called externally, and may operate on many lang files).
tempcode
set_lang_code_2
()
The actualiser to translate content.
tempcode
set_lang_content
()
Standard modular uninstall function.
void
uninstall
()