From 4964bc48eca4d1d4aed5066881841648d764e2ae Mon Sep 17 00:00:00 2001 From: Ivan Tsouvarev Date: Tue, 1 Mar 2016 09:53:44 +0300 Subject: [PATCH] Fix links in docs --- README.rst | 8 ++++---- django_babel/middleware.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 4c26e97..aed8ab8 100644 --- a/README.rst +++ b/README.rst @@ -344,7 +344,7 @@ would render **10E5**. .. _Babel: http://babel.pocoo.org/ .. _Django: https://www.djangoproject.com/ .. _wrapper scripts: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#localization-how-to-create-language-files -.. _Distutils/Setuptools Integration: http://babel.pocoo.org/docs/setup/ -.. _Date Formatting: http://babel.pocoo.org/docs/dates/ -.. _Number Formatting: http://babel.pocoo.org/docs/numbers/ -.. _Locale: http://babel.pocoo.org/docs/api/core/#babel.core.Locale +.. _Distutils/Setuptools Integration: http://babel.pocoo.org/en/stable/setup.html +.. _Date Formatting: http://babel.pocoo.org/en/stable/dates.html +.. _Number Formatting: http://babel.pocoo.org/en/stable/numbers.html +.. _Locale: http://babel.pocoo.org/en/stable/api/core.html#babel.core.Locale diff --git a/django_babel/middleware.py b/django_babel/middleware.py index 0ce25e2..5c3ac1c 100644 --- a/django_babel/middleware.py +++ b/django_babel/middleware.py @@ -16,8 +16,8 @@ _thread_locals = local() def get_current_locale(): """Get current locale data outside views. - See http://babel.pocoo.org/docs/api/core/#babel.core.Locale for Locale - objects documentation + See http://babel.pocoo.org/en/stable/api/core.html#babel.core.Locale + for Locale objects documentation """ return getattr(_thread_locals, 'locale', None)