#25933: Allow unprefixed default language in i18n_patterns
-------------------------------------+-------------------------------------
Reporter: urbaniak | Owner: nobody
Type: New feature | Status: new
Component: | Version: master
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
-------------------------------------+-------------------------------------
Changes (by timgraham):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => New feature
Old description:
> The idea is to allow having the default language urls un-prefixed.
>
> So adding a translations to existing site is more seamless - it does not
> require changing current urls, just adding new ones.
>
> That pattern with un-prefixed default language is pretty common - for
> example https://www.apple.com (which is en_US) and
> https://www.apple.com/fr/ (fr_FR).
>
> Any other language than the default one is prefixed as before using
> i18n_patterns.
>
> The idea for that is having a `prefix_default_language` param to`
> i18n_patterns`, which is `True` by default, to keep it compatible with
> current appriach. Setting it to `False` will turn on this "feature".
>
> Here's the code: https://github.com/django/django/pull/5823
New description:
The idea is to allow having the default language urls un-prefixed.
So adding a translations to existing site is more seamless - it does not
require changing current urls, just adding new ones.
That pattern with un-prefixed default language is pretty common - for
example https://www.apple.com (which is en_US) and
https://www.apple.com/fr/ (fr_FR).
Any other language than the default one is prefixed as before using
i18n_patterns.
The idea for that is having a `prefix_default_language` param to`
i18n_patterns`, which is `True` by default, to keep it compatible with
current approach. Setting it to `False` will turn on this "feature".
Here's the code: https://github.com/django/django/pull/5823
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25933#comment:1>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.1c290eefd76e6b758fb8546dc0d6cb35%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.