A
A
Arthur Grand2017-05-08 13:17:03
CMS
Arthur Grand, 2017-05-08 13:17:03

How can I make optimal autoloading of translations for some modules?

There are cms with multilingual modules. When loading a certain module, a file with its translations is automatically loaded. Everything would be fine, but sometimes one module uses the api of another and it so happens that the translations of the second module are not available unless I explicitly load them.
How to be?
Manually specifying from which modules to which to load is not an option, too lazy.
Loading translations for all modules is also not an option, because it wastes more memory.
UPD: If it is not abstractly clear what and how, here is the translator
https://github.com/sydes/sydes/blob/master/system/...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question