convert Settings module to Routes. refs #1788. requires route reload.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| Refs tickets  | #1788
| License       | MIT
| Doc PR        | -
Will change that in an hour or so

Sent from my iPhone

> On Sep 16, 2014, at 1:48 PM, Christian Flach <notifications@github.com> wrote:
> 
> In src/system/Zikula/Module/SettingsModule/Controller/AdminController.php:
> 
> > @@ -233,7 +255,7 @@ public function updatemultilingualAction()
> >  
> I think the solution is to change the if above from
> 
> if (isset($deleteLangUrl)) {
> // reset language settings
> SessionUtil::delVar('language');
> $url = preg_replace('#(.*)(&lang=[a-z-]{2,5})(.*)#i', '$1$3', $url);
> }
> to
> 
> if (isset($deleteLangUrl)) {
> // reset language settings
> SessionUtil::delVar('language');
> $url = $this->get('router')->generate('zikulasettingsmodule_admin_multilingual', array('_locale' => \System::getVar('language_i18n')), RouterInterface::ABSOLUTE_URL);
> }
> This should generate an url with the default locale.
> 
> —
> Reply to this email directly or view it on GitHub.