﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13896	Change language to dynamic attribute in syndication feed generator	jedie	Jason Kotenko	"In my project, the language is dynamic and not hardcoded in settings. IMHO there is no way to change the language in syndication feed generator without a hack.

Change language to dynamic attribute in syndication feed generator:
{{{
#!diff
Index: django/contrib/syndication/views.py
===================================================================
--- django/contrib/syndication/views.py	(revision 13426)
+++ django/contrib/syndication/views.py	(working copy)
@@ -104,7 +104,7 @@
             subtitle = self.__get_dynamic_attr('subtitle', obj),
             link = link,
             description = self.__get_dynamic_attr('description', obj),
-            language = settings.LANGUAGE_CODE.decode(),
+            language=self.__get_dynamic_attr('language', obj, settings.LANGUAGE_CODE.decode()),
             feed_url = add_domain(current_site.domain,
                     self.__get_dynamic_attr('feed_url', obj) or request.path),
             author_name = self.__get_dynamic_attr('author_name', obj),
}}}"	New feature	closed	contrib.syndication	dev	Normal	duplicate		kotenko@…	Accepted	1	0	0	1	0	0
