Closed uilson closed 10 years ago
You're posting in the wrong place asking for help,
This is for Framework bugs, features requests ...etc.
You should be trying [stackoverflow.com] for this
@uilson
Yes, it is a wrong place for such a request. Anyway, I would leave a note. I wonder how "Internationalization (i18n) for CodeIgniter 2.x" is affected by Smarty, probably it isn't.
I have searched for a good internationalization solution, but without success. So, I took the library you have mentioned and rewrote it beyond recognition to achieve what I wanted. The original is a very simple and it needs tweaking a lot.
I'm developing a Codeigniter application that requires internationalization (i18n) support.
I'm using CI-Smarty (Smarty 3) as a template solution, and Internationalization (i18n) for CodeIgniter 2.x, but I cant get the multilingual support to work with CI Smarty, I've tried to change the code, tried adding routes, and doing both at the same time but without success.
My site controller:
My pages model:
My routes.php:
When I request the index page using the www.example.com/en/ which will show the news info and it loads fine, but if I request the page news using www.example.com/en/news it does not load the news, and instead loads the 404 page, and do the same to all other pages.
The application works fine without the internationalization (i18n) support, loading all the pages ok, including the news page.
And also the internationalization (i18n) support works fine, I've tested it in a version without the CI-Smarty.
I need to translate this app into multiple languages, so I need to find a way for Codeigniter with CI-Smarty to support it. Is there one? Thanks to all those how can help.