ALite CMS 50.9
Language: 
ALite CMS

Articles

The file structure of language resources

29.04.2026 13:43  rating: 48  author: ALite CMS 

File structure of language resources that are loaded automatically. Folders and files marked in gray do not initially exist but can be created during system operation and configuration.

Shared language resources.
Always available after the languages module is loaded.

[root]
_languages
en
scripts
[...]
en.ini
en.ini
en.ini
en_custom.ini

 

Module language resources.
Available after the corresponding module is loaded or loaded separately using the function: if (!$alc_controller->is_loaded_module('module_name')) $alc_controller->module_get_resources('module_name');.
For example, the constants module is shown.

[root]
_modules
constants
languages
en
en.ini
en_custom.ini

 

Recommendations for adding and modifying language resources.
Do not modify or add to the main language resource files, such as en.ini. During a system update, they may be replaced by distribution files. Make changes to the _custom files, such as en_custom.ini. If you need to change an existing value, create a section and key in this file with the same names as in the main file and set the new value.

New comment
User:
Protected code
Update
RSS  RSS