Search found 3 matches
- Tue Jan 15, 2008 10:17 pm
- Forum: Joomla! Coding 101
- Topic: Changing Site Language "on-the-fly"
- Replies: 5
- Views: 930
Re: Changing Site Language "on-the-fly"
Hi "Infograf", No it's not a module or plugin. It's the main /index.php file that needs to be changed for this, and it needs to be changed on that file because on the template index.php file the JAplication is already being used and we can't change that on that part. Maybe someone will transform it ...
- Tue Jan 15, 2008 2:11 pm
- Forum: Joomla! Coding 101
- Topic: Changing Site Language "on-the-fly"
- Replies: 5
- Views: 930
Re: Changing Site Language "on-the-fly"
Hi, The language is analysed on the "initialise" method on the JApplication class. So, on the index.php file we have: $mainframe->initialise(); JPluginHelper::importPlugin('system'); if we enter a parameter on the initialise method we would change it, like shown bellow, for portuguese: $A = Array();...
- Tue Jan 15, 2008 12:30 am
- Forum: Joomla! Coding 101
- Topic: Changing Site Language "on-the-fly"
- Replies: 5
- Views: 930
Changing Site Language "on-the-fly"
Hi mates, I am developing a new 1.5RC4 site and I have two "flag" buttons on the main page so the user can change "on-the-fly" the site language. On my situation between Portuguese and English. What parameters should I transform on the index.php (template file) "J" objects so it can be rendered that...