#27063: Regex url routing + Localization (prefix_default_language) -------------------------------------+------------------------------------- Reporter: keithhackbarth | Owner: nobody Type: Bug | Status: new Component: | Version: 1.10 Internationalization | Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by urbaniak): The language prefix is separated from the rest of the url with `/` instead of `-`. So the url for english (with default language `en`) will be `/moines- parking/` and the same page for german will have url `/de/moines- parking/`. You can also translate the `-parking` part using _/gettext. About the `/de/fr/it/de-moines-parking` issue - it looks like a german page for city named `fr/it/de-moines`, can you replace the `.*` in city match with something like `\w` or `[\w-]` to not catch the `/` as part of the city name? Then I think it should return 404. -- Ticket URL: <https://code.djangoproject.com/ticket/27063#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.9d5b83b71bef65d2e99f460241ff9f30%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.