title: Add language support in liferay theme
body: <p>I am creating theme using liferay 6.2. I need to add language support in my theme. For this I try to add language portlet by using</p>
  
  <pre><code>$theme.language()
  </code></pre>
  
  <p>in portal_normal.vm. By this portlet is added to theme but it did not work.
  Also I tried by </p>
  
  <pre><code>     $velocityPortletPreferences.setValue("portletSetupShowBorders","false")
       &lt;menu class="nav-horizontal" id="language-navigation"&gt;
           &lt;ul&gt;
               &lt;li&gt;$theme.runtime("82", "", $velocityPortletPreferences.toString())&lt;/li&gt;
           &lt;/ul&gt;
       &lt;/menu&gt;
       $velocityPortletPreferences.reset()
  </code></pre>
  
  <p>Also I noticed that language portlet does not work for guest (unauthorized) user. The issue has been logged <a href="https://issues.liferay.com/browse/LPS-42075" rel="nofollow">here</a>. </p>
  
  <p>My requirement is whenever guest user comes to site he can change the language and accordingly Theme/site pages/admin/web content should change to the respective language.</p>
  
  <p>Can anyone suggest a workaround to develop this functionality?</p>