Welcome Guest, Not a member yet? Register   Sign In
Route translation
#1

[eluser]guitarlove[/eluser]
How can I make my route translate themself ?

Actualy, I do

Code:
$route['connexion'] = 'site/connexion';

/* Other language */
$route['connexion/(:any)'] = 'site/connexion/$1';
$route['verbindung/(:any)'] = 'site/connexion/$1';

But I want it to be like this

Code:
$route[_('connexion/')] = 'site/connexion/$1'

And use a po file to translate the url.

Is that possible ? How can I do it ?
#2

[eluser]guitarlove[/eluser]
The only wait I can do it, it's to create a instance of the class GetText (translation class) in the route file. But, I can only acces to static object, How can I create a object in the classe.




Theme © iAndrew 2016 - Forum software by © MyBB