Ticket #13896: django_13896.diff
File django_13896.diff, 1.5 KB (added by , 14 years ago) |
---|
-
docs/ref/contrib/syndication.txt
268 268 -------- 269 269 270 270 Feeds created by the syndication framework automatically include the 271 appropriate ``<language>`` tag (RSS 2.0) or ``xml:lang`` attribute (Atom). This 272 comes directly from your :setting:`LANGUAGE_CODE` setting. 271 appropriate ``<language>`` tag (RSS 2.0) or ``xml:lang`` attribute (Atom). You 272 can set the language for a feed by specifying an attribute :attr:`language`, 273 using the same format as the project-wide setting :setting:`LANGUAGE_CODE`. If 274 you don't specify a language, it comes directly from your 275 :setting:`LANGUAGE_CODE` setting. 273 276 274 277 URLs 275 278 ---- -
django/contrib/syndication/views.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 = settings.LANGUAGE_CODE.decode(),107 language = __get_dynamic_attr('language', obj, settings.LANGUAGE_CODE.decode()), 108 108 feed_url = add_domain( 109 109 current_site.domain, 110 110 self.__get_dynamic_attr('feed_url', obj) or request.path,