All frontend (user-side) messages are located in a single file and can
be easily translated. It is even possible to enable several languages
and user will be able to choose interface language while navigating on egBusiness pages.
How To Translate messages?
- Go to egbusiness/languages/ folder. You will see existing language files.
- Copy file en.php to, for example it.php (use your language common abbreviation)
- Copy file en.inc.php to, for example it.inc.php (again use common abbreviation instead of
- Edit file it.inc.php using your favorite text editor. Replace en, English, USA to appropriate values
$GLOBALS['_lang']['it'] = array(
'id' => 'it',
'title' => 'Italian',
'country' => 'Italia',
//language country / default country
'encoding' => 'utf-8',
'template_path' => 'italian',
'file' => $lang_file
- Edit file it.php using your favorite text editor/php editor, translating line by line to your language. Periodically check that you do not break PHP syntax during translation.
- Copy "/themes/english/" folder to, for example "/themes/italian/"
- Edit the html templates using your favorite html editor, translating the text to your language
- Go to egBusiness Admin Panel -> Configuration -> Language and enable your new language. Everything should work without PHP errors
- Once translation is complete, please pack your it.php and it.inc.php files and please give us a favour to use it by sending the packed file to firstname.lastname@example.org.