Heya, trivedimca. Welcome to TSDN!
The way phpbb does it is it has multiple language folders in its file structure. Within each folder is a file that defines all of the localized strings. The User's language setting is stored in the session or in the database, and it becomes part of the include path when loading the i18n files.