summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBojan Mihelac <bmihelac@mihelac.org>2012-06-19 14:42:02 +0300
committerFlorian Apolloner <florian@apolloner.eu>2012-06-23 16:14:56 +0200
commit946d3d9f84ea7979a4abf0857e4aa7ee33576303 (patch)
treee0f5f84acb69374cad83133e9c6f2735e6af4cc8
parentc864b36ba12f195cb1d3f9b1ad27ad71d5d8b5ea (diff)
Fixed url translation docs.
``include`` calls shouldn't have a $ sign at the end of the url pattern.
-rw-r--r--docs/topics/i18n/translation.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 896ff87744..ec6159d538 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -890,7 +890,7 @@ prepend the current active language code to all url patterns defined within
urlpatterns += i18n_patterns('',
url(r'^about/$', 'about.view', name='about'),
- url(r'^news/$', include(news_patterns, namespace='news')),
+ url(r'^news/', include(news_patterns, namespace='news')),
)
@@ -945,7 +945,7 @@ URL patterns can also be marked translatable using the
urlpatterns += i18n_patterns('',
url(_(r'^about/$'), 'about.view', name='about'),
- url(_(r'^news/$'), include(news_patterns, namespace='news')),
+ url(_(r'^news/'), include(news_patterns, namespace='news')),
)