I add the language portlet in my liferay theme using this code:
#set ($VOID = $velocityPortletPreferences.setValue('portletSetupShowBorders', 'false'))
#set ($portlet_id = '82')
#set ($instance_id = "239abc678iuy")
#set ($my_portlet_id = "${portlet_id}_INSTANCE_${instance_id}")
$theme.runtime($my_portlet_id, "", $velocityPortletPreferences.toString())
in the portal_normal.vm
.
I use the same theme in many pages. The problem is when I change the configuration of the language portlet (e.g. add or delete some languages) the modification is only applied to the current page, not to other pages.