This question has already been answered:

Help me to understand. There is a session in which the selected page language is saved.

There is a database with data in three languages ​​(rus., In., It.), I want to write a central class that will make a choice from the database depending on the language that is stored in the session.

Reported as a duplicate by the participants BOPOH , Streletz , Yuri Glushenkov , zRrr , user185447 Nov 15 '15 at 16:30 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    Once again I ask: what is the point of reinventing bicycles when everyone has already invented it before you?

    From Wikipedia :

    gettext is a GNU project's internationalization library, widely used in free software.

    • I do not invent anything, I try to disassemble and understand, and if I wanted to take something ready, I would put some cms multilingual at all - kiberchainik