"TYPO3 4.0.1: language Class Reference", "datetime" => "Sat Dec 2 19:25:06 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
init ($lang, $altPath='') | |
addModuleLabels ($arr, $prefix) | |
hscAndCharConv ($lStr, $hsc) | |
makeEntities ($str) | |
JScharCode ($str) | |
getLL ($index, $hsc=0) | |
getLLL ($index, $LOCAL_LANG, $hsc=0) | |
sL ($input, $hsc=0) | |
loadSingleTableDescription ($table) | |
includeLLFile ($fileRef, $setGlobal=1, $mergeLocalOntoDefault=0) | |
readLLfile ($fileRef) | |
localizedFileRef ($fileRef) | |
Public Attributes | |
$lang = 'default' | |
$langSplit = 'default' | |
$charSet = 'iso-8859-1' | |
$charSetArray = array() | |
$typo3_help_url = 'http://www.typo3.com/man_uk/' | |
$helpUrlArray | |
$debugKey = FALSE | |
$moduleLabels = Array() | |
$langSplitIndex = 0 | |
$LL_files_cache = array() | |
$LL_labels_cache = array() | |
$origCharSet = '' | |
$csConvObj |
Definition at line 88 of file lang.php.
|
Adds labels and image references from the backend modules to the internal moduleLabels array
|
|
Returns the label with key $index form the globally loaded $LOCAL_LANG array. Mostly used from modules with only one LOCAL_LANG file loaded into the global space.
|
|
Works like ->getLL() but takes the $LOCAL_LANG array used as the second argument instead of using the global array.
|
|
Will htmlspecialchar() the input string and before that any charset conversion will also have taken place if needed (see init()) Used to pipe language labels through just before they are returned.
|
|
Includes locallang file (and possibly additional localized version if configured for) Read language labels will be merged with $LOCAL_LANG (if $setGlobal=1).
Definition at line 396 of file lang.php. References t3lib_div::array_merge_recursive_overrule(). |
|
Initializes the backend language. This is for example done in typo3/template.php with lines like these: require (PATH_typo3.'sysext/lang/lang.php'); $LANG = t3lib_div::makeInstance('language'); $LANG->init($BE_USER->uc['lang']);
Definition at line 138 of file lang.php. References $lang, t3lib_div::makeInstance(), and t3lib_BEfunc::typo3PrintError(). |
|
Converts the input string to a JavaScript function returning the same string, but charset-safe. Used for confirm and alert boxes where we must make sure that any string content does not break the script AND want to make sure the charset is preserved. Originally I used the JS function unescape() in combination with PHP function rawurlencode() in order to pass strings in a safe way. This could still be done for iso-8859-1 charsets but now I have applied the same method here for all charsets.
|
|
Loading $TCA_DESCR[$table]['columns'] with content from locallang files as defined in $TCA_DESCR[$table]['refs'] $TCA_DESCR is a global var
|
|
Returns localized fileRef (.[langkey].php)
|
|
Will convert the input strings special chars (all above 127) to entities. The string is expected to be encoded in the charset, $this->charSet This function is used to create strings that can be used in the Click Menu (Context Sensitive Menus). The reason is that the values that are dynamically written into the layer is decoded as iso-8859-1 no matter what charset is used in the document otherwise (only MSIE, Mozilla is OK). So by converting we by-pass this problem.
|
|
Includes a locallang file and returns the $LOCAL_LANG array found inside.
Definition at line 441 of file lang.php. References t3lib_div::readLLfile(). |
|
splitLabel function Historically labels were exploded by '|' and each part would correspond to the translation of the language found at the same 'index' in the TYPO3_languages constant. Today all translations are based on $LOCAL_LANG variables. 'language-splitted' labels can therefore refer to a local-lang file + index instead! It's highly recommended to use the 'local_lang' method (and thereby it's highly deprecated to use 'language-splitted' label strings) Refer to 'Inside TYPO3' for more details
Definition at line 299 of file lang.php. References t3lib_div::array_merge_recursive_overrule(), and t3lib_div::deHSCentities(). |
|
Initial value: array(
'dk' => 'http://www.typo3.com/man_dk/',
)
|