Opened 10 years ago

Closed 10 years ago

#23696 closed Uncategorized (worksforme)

Documentation for i18n_patterns for current Stable 1.7 wrong

Reported by: Govinda Dasu Owned by: nobody
Component: Uncategorized Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Govinda Dasu)

Hi, I'm not sure if this is intentional but when someone comes to your home page and downloads 1.7, they expect the documentation for i18n_patterns to apply to 1.7 and not 1.8. I spent all day trying to figure out why

i18n_patterns(
    url(r'^home/$', views.index, name='index'),
)

is wrong since I just copied the example you guys posted, but after reading between the lines on the statement about prefix being deprecated in 1.8, I realized that the provided example must be for 1.8 and not 1.7 and got the url working by doing

 i18n_patterns('', ...)

Change History (3)

comment:1 by Govinda Dasu, 10 years ago

Description: modified (diff)

comment:2 by Baptiste Mispelon, 10 years ago

Hi,

Thanks for reaching out to us.
Where in the docs did you find this example of using i18n_patterns?

All the examples I've found on that page: https://docs.djangoproject.com/en/1.7/topics/i18n/translation/ use the correct i18n_patterns('', ...).

Thanks.

comment:3 by Baptiste Mispelon, 10 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top