Welcome Guest, Not a member yet? Register   Sign In
i18n and ajax page not showing translated lang
#2

[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

# Removes access to the system folder by users.
# Additionally this will allow you to create a System.php controller,
# previously this would not have been possible.
# 'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond $1 !^(index\.php|assets|css|js|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(en|de|fr|nl|it|es)/assets/(.*)$ /assets/$1 [L]
RewriteRule ^(en|de|fr|nl|it|es)/(.*)$ $1 [L]

Code:
$route['default_controller'] = 'main';
$route['404_override'] = '';
$route['translate_uri_dashes'] = TRUE;
//LANG ROUTES
$route['^(en|de|fr|nl|it|es)/assets/(.+)$'] = "assets/$2";
// URI like '/en/about' -> use controller 'about'
$route['^(en|de|fr|nl|it|es)/(.+)$'] = "$2";
// '/en', '/de', '/fr' and '/nl' URIs -> use default controller
$route['^(en|de|fr|nl|it|es)$'] = $route['default_controller'];


Messages In This Thread
i18n and ajax page not showing translated lang - by El Forum - 09-23-2014, 05:27 AM
i18n and ajax page not showing translated lang - by El Forum - 09-25-2014, 03:48 AM
i18n and ajax page not showing translated lang - by El Forum - 09-26-2014, 12:40 PM
i18n and ajax page not showing translated lang - by El Forum - 09-29-2014, 12:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB