Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:2.0:admidio_customization [2024/01/12 21:30] – [Variablen in Template-Dateien] fasseen:2.0:admidio_customization [2024/01/12 21:31] (current) – [Use texts from language files] fasse
Line 83: Line 83:
  
 ==== Use texts from language files ==== ==== Use texts from language files ====
-With Smarty you also have access to the texts from the language files (adm_program/languages) in the template files and can integrate them at any placeFor this purpose you need the individual abbreviation of the text e.g. SYS_FILE_EXTENSION_INVALID and you can integrate it into the html code using the following syntax:+With Smarty you also have access to the texts from the language files (adm_program/languages) in the template files and can integrate these at any pointThe ''l10n'' object is available for this purpose. All you need is the individual abbreviation of the texte.g. SYS_FILE_EXTENSION_INVALIDand you can then integrate this into the HTML code using the following syntax:
 <code html><b>{$l10n->get('SYS_FILE_EXTENSION_INVALID')}</b></code> <code html><b>{$l10n->get('SYS_FILE_EXTENSION_INVALID')}</b></code>
 The curly brackets with the l10n->get, as well as the normal brackets with the quotation marks must always be deposited. In between there is the text abbreviation, which is replaced by the text in the selected language when the page is displayed.  The curly brackets with the l10n->get, as well as the normal brackets with the quotation marks must always be deposited. In between there is the text abbreviation, which is replaced by the text in the selected language when the page is displayed. 
  • en/2.0/admidio_customization.1705091403.txt.gz
  • Last modified: 2024/01/12 21:30
  • by fasse