Language file is a PHP script storing phrases translated into other languages. The script contains an array $MESS whose keys are the language phrases ID's and values are the translations into a correspondent language.
<? $MESS ['SUP_SAVE'] = "Save"; $MESS ['SUP_APPLY'] = "Apply"; $MESS ['SUP_RESET'] = "Reset"; $MESS ['SUP_EDIT'] = "Edit"; $MESS ['SUP_DELETE'] = "Delete"; ?>
<? $MESS ['SUP_SAVE'] = "Enregistrer"; $MESS ['SUP_APPLY'] = "Appliquer"; $MESS ['SUP_RESET'] = "Reset"; $MESS ['SUP_EDIT'] = "Modifier"; $MESS ['SUP_DELETE'] = "Supprimer"; ?>
For each language, there is a number of language files stored in subdirectories /lang/ (see also: The structure of system files, The structure of module files).
Usually, the language files are used in administrative scripts of modules or in components. They are included using one of the following appropriate functions:
Note!
For the easier search and further modification of the language phrases, the page
parameter show_lang_files=Y
can be used. It allows to quickly find or edit any language phrase in the Translation
module.
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |