i18n and ajax page not showing translated lang |
[eluser]kamikaz[/eluser]
Hi, I'm developing a multilang website with http://jeromejaglale.com/doc/php/codeigniter_i18n. Everything works great on the main page (as for now I only have one page ) but when I load a page through ajax (like a form page), the text doesn't appear: the 'lang' method doesn't find the translation. My url looks like mysite.tld/en/modules/login/dsplogin. 'modules' is a folder in controllers folder, etc. When I access the page directly, it is the same: text is not translated. In ajax, I tried to call '/en/modules/login/dsplogin' and '/modules/login/dsplogin' but it didn't solve the issue. I don't have a clue about the problem Do you? I think it is related to the url: maybe it doesn't like controllers in a sub-folder Regards
[eluser]kamikaz[/eluser]
Nobody has a solution? I'm still searching on the web but nobody seems to have this problem. I put my htaccess and my routes, maybe it is a start: Code: RewriteEngine on Code: $route['default_controller'] = 'main';
[eluser]InsiteFX[/eluser]
The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed. This corresponds to the last command in Perl, or the break command in C. Use this flag to indicate that the current rule should be applied immediately without considering further rules.
[eluser]kamikaz[/eluser]
Thank you for your reply InsiteFX but I must admit that I don't understand you... I user the [L] flag in my htaccess. I just figured out that I have two same RewriteRule ^(.*)$ /index.php/$1 [L]. |
Welcome Guest, Not a member yet? Register Sign In |