#36279: translatable path without a name attribute does not translate in
django.urls.base.translate_url
-------------------------------------+-------------------------------------
Reporter: Rami Boutassghount | Owner: Ahmed
| Nassar
Type: Bug | Status: assigned
Component: Core (URLs) | Version: 5.1
Severity: Normal | Resolution:
Keywords: set_language, i18n, | Triage Stage: Accepted
translate_url, url, translation, |
url path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Ahmed Nassar):
Hi maintainers,
I've been testing the URL translation functionality and encountered
several test failures. Here's what I found:
Test Failures:
1. URL prefix tests fail with language code mismatches (en vs nl)
2. URL translation tests fail with incorrect path translations
3. Response tests return 404 instead of 200 for translated paths
Running: python runtests.py i18n.patterns.tests
Sample errors:
- '/en/prefixed/' != '/nl/prefixed/'
- '/translated/' != '/vertaald/'
- '/en/users/' != '/nl/gebruikers/'
- 404 status code instead of 200 for Dutch and Portuguese URLs
Could you please help with:
1. How to properly handle language codes in URLs
2. The correct way to translate URL paths
3. Fixing the 404 errors for translated paths
Thanks for your help!
--
Ticket URL: <https://code.djangoproject.com/ticket/36279#comment:7>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701960950c726-b0a6438a-7143-4696-abbc-917ab16eadca-000000%40eu-central-1.amazonses.com.