Adding phrases to language files

How to add texts

All texts are located in language files in the directory: lang/

If you want to change a phrase, we recommend not changing it in the languages file, but adding your own.

This will simplify the update process when upgrading to a higher version.

Almost every update affects language files. The patterns in which these same phrases are found change less frequently.

Attention! We highly recommend using the languages file to add your own phrases: custom.inc.php

Language files: template.inc.php - global language file. Language phrases from this file are used in templates.

lang.inc.php - global system language file. Language phrases from this file can be used in all modules.

member.inc.php - language file for the Users module. And so on by analogy: the name of the language file is identical to the system name of the module.

include.inc.php - system language file. Notification language phrases.

lang.js - language file used in JS scripts.

search.inc.php - downloadable file of language phrases in the search.

custom.inc.php - global file of individual languages. Never changes in updates, optimal for storing your own language phrases.


We recommend doing it as follows

1) Open the language file: template.inc.php. We recommend using Notepad++

2) Set the encoding: Encode in UTF-8 (without BOM).

3) Add your own phrase. It is important that the variable does not conflict with existing ones. Therefore, we recommend using the name of your domain in variables. For example: maindomain

4) Open the template to which you need to add your own phrase. You can see the names and descriptions of template files in your admin panel: System - Templates

5) Insert the phrase into the place in the template where you want the phrase to be output:

Last updated