Ticket #7039: patch_feed_lang.diff
File patch_feed_lang.diff, 1.4 KB (added by , 16 years ago) |
---|
-
django/contrib/syndication/feeds.py
104 104 subtitle = self.__get_dynamic_attr('subtitle', obj), 105 105 link = link, 106 106 description = self.__get_dynamic_attr('description', obj), 107 language = se ttings.LANGUAGE_CODE.decode(),107 language = self.__get_dynamic_attr('language', obj) or settings.LANGUAGE_CODE.decode(), 108 108 feed_url = add_domain(current_site.domain, 109 109 self.__get_dynamic_attr('feed_url', obj)), 110 110 author_name = self.__get_dynamic_attr('author_name', obj), -
docs/ref/contrib/syndication.txt
332 332 333 333 Feeds created by the syndication framework automatically include the 334 334 appropriate ``<language>`` tag (RSS 2.0) or ``xml:lang`` attribute (Atom). This 335 comes directly from your :setting:`LANGUAGE_CODE setting`. 335 comes directly from your :setting:`LANGUAGE_CODE setting` unless you define a 336 ``language`` method/attribute in your :class:`~django.contrib.syndication.feeds.Feed` 337 class. 336 338 337 339 URLs 338 340 ----