this is a bit from the LocaleRouteProvider of simplecms