[eluser]breaddes[/eluser]
I have an url that goes like this:
Code:
<a href="<?=base_url().$this->lang('glossary')?>"><?=$this->lang->('glossary')?></a>
$this->lang('glossary') is the glossary in a certain language. It can be French, German, Swedish or English. However, in the German case the output looks like:
Code:
<a href="http://localhost/Glossar">Glossar</a>
The thing is that I don't have a specific controller for each language. I have just one controller that's in the English language. So it is glossary.
How can I remap all the different urls to the english name? I think there's a solution using routes, if I do it static:
Code:
$route['glossar'] = "glossary";
That works fine for the German version, but I'd like to set a dynamic version ... so it would be something like:
Code:
$route[$this->lang('glossary')] = "glossary";
As the routeshelper is already loaded, that won't work out pretty well. Any ideas?