Help needed with generating and translating urls |
HI!
I'm working with uri language identifier. I don't see option how to translate url/contoller also. So let say i have two languages (en, si). This is how i generate urls currently and language switching works ok PHP Code: <a href="<?php echo base_url(lang('contact')); ?>">Contact</a> My language files contains those lines. Code: $lang['contact'] = "contact"; My routs Code: $route['default_controller'] = 'home'; my config file Code: $config['language'] = 'english'; How to generate url properly and how to translate them? I'm using CodeIgniter 3.0.5 Thank you in advance! Regards, Davor |
Messages In This Thread |
Help needed with generating and translating urls - by davor.pecnik - 03-12-2016, 03:56 AM
|