﻿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
16332	add an i18n_url tag	Florian Apolloner	nobody	"I propose adding an url tag which can take care of linking to other language; syntax would be:
{{{
{% i18n_url viewname lang k1=v1, k2=v2 %}
}}}
where ''viewname'' and ''k*'' behave like the future url tag and ''lang'' is either a context var containing a the lang-code or a literal string 'de' etc…

One thing about the attached patch: the ''i18n_url'' tag parsing is pretty much a copy of future_url, I am open to suggestions on making that one nicer…

One thing I also tried and failed miserably: I would like to have a tag like {% link_to some_url some_other_language %} which would take the url (could be the current url) and resolve it using the urlresolvers and then reverse using ''some_other_language''. Sadly this fails due to ''resolver.resolve'' ''returning extra_context'' as part of ''kwargs'' which are passed to the function.

P.S.: patch should be importable via hg import"	New feature	closed	Template system	dev	Normal	fixed	i18n, url	info@…	Accepted	1	0	0	0	0	0
