There is a project on ZF in which string constants are scattered throughout the code. It is required to refactor, implement a simple and convenient mechanism for localizing them in one place (database or a separate PHP class), there is the prospect of using several languages. How is this done correctly? Where can I see?

Thank you in advance!

    1 answer 1

    ZF has a “native” mechanism for internationalization . Application measures: 1 and 2 . This mechanism is essentially a wrapper over various localization methods (xml, gettext, php arrays, etc.).