This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |
en:2.0:admidio_customization [2024/01/12 21:30] – [Variablen in Template-Dateien] fasse | en:2.0:admidio_customization [2024/01/12 21:31] (current) – [Use texts from language files] fasse |
---|
| |
==== 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 place. For 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 point. The ''l10n'' object is available for this purpose. All you need is the individual abbreviation of the text, e.g. SYS_FILE_EXTENSION_INVALID, and 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. |