This is a small patch to make profile context use current user's language translation. Without the patch it's always the original node selected.

CommentFileSizeAuthor
panel-context-language-6--1-0-BETA4.txt958 byteskhorpyakov

Comments

majdi’s picture

Hello
I think this patch has a small problem
in case you want to show a default node in language that is different from the current language you will get empty $content_profile_node which means the relation will be broken

i face this problem and i fix it by adding

	if(!$content_profile_node){
	$content_profile_node = content_profile_load($conf['type'], $uid);
	}

after

 $content_profile_node = content_profile_load($conf['type'], $uid, $language->language);