<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>RE: How to invoke user desired language of a website</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7598021" />
  <subtitle>RE: How to invoke user desired language of a website</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7598021</id>
  <updated>2026-05-24T16:32:46Z</updated>
  <dc:date>2026-05-24T16:32:46Z</dc:date>
  <entry>
    <title>Resolved: simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7943995" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7943995</id>
    <updated>2011-03-19T22:42:38Z</updated>
    <published>2011-03-19T22:42:38Z</published>
    <summary type="html">Glad to be of help.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-03-19T22:42:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7943606" />
    <author>
      <name>Yan Naing Oo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7943606</id>
    <updated>2011-03-19T17:34:27Z</updated>
    <published>2011-03-19T17:34:27Z</published>
    <summary type="html">Thank for the reply !</summary>
    <dc:creator>Yan Naing Oo</dc:creator>
    <dc:date>2011-03-19T17:34:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7932773" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7932773</id>
    <updated>2011-03-18T11:11:10Z</updated>
    <published>2011-03-18T11:11:10Z</published>
    <summary type="html">&lt;blockquote&gt;In my case i want to display english &amp;amp; chinese fonts on same Web Content.so that how &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Liferay&amp;#39;s setting is just for languages used in Liferay&amp;#39;s menus and messages. You can just mix different languages inside a Web Content - just select the correct font for the language. As an example, I can mix Japanese (日本語) here with English.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-03-18T11:11:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7928796" />
    <author>
      <name>sperry street</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7928796</id>
    <updated>2011-03-17T23:45:35Z</updated>
    <published>2011-03-17T23:45:35Z</published>
    <summary type="html">We ended up figuring this out. It was an edit under the Manage Pages (when not in &amp;#34;your community&amp;#34;) and then select &amp;#39;localize language&amp;#39; and we had to edit the &amp;#34;name&amp;#34; of the page to reflect the correct Chinese characters.&lt;br /&gt;&lt;br /&gt;We also setup the site to show both English and Chinese characters but we do this by logging in as admin and then on the content page click on &amp;#39;edit web content&amp;#39;, click on language, and then create the content in the language you need (our case chinese).  Now, when the user has their browser setting on the &amp;#39;chinese&amp;#39; the chinese version of the website appears.</summary>
    <dc:creator>sperry street</dc:creator>
    <dc:date>2011-03-17T23:45:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7902057" />
    <author>
      <name>Yan Naing Oo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7902057</id>
    <updated>2011-03-16T11:02:27Z</updated>
    <published>2011-03-16T11:02:27Z</published>
    <summary type="html">Hi sperry ,&lt;br /&gt;&lt;br /&gt;In my case i want to display english &amp;amp; chinese fonts on same Web Content.so that how &lt;br /&gt;we can figure out for it.&lt;br /&gt;locales=zh_CN,en_US change into portal-ext.properties file is work fine ??&lt;br /&gt;if anyone know ? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advanced</summary>
    <dc:creator>Yan Naing Oo</dc:creator>
    <dc:date>2011-03-16T11:02:27Z</dc:date>
  </entry>
  <entry>
    <title>simplified v traditional chinese characters</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7771589" />
    <author>
      <name>sperry street</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7771589</id>
    <updated>2011-03-05T17:18:03Z</updated>
    <published>2011-03-05T17:18:03Z</published>
    <summary type="html">We are having trouble getting simplified chinese (instead of traditional chinese) to appear in our navigation. I have checked the the portal-ext.properties file in liferay and found you had put the language override in there, that last line is:&lt;br /&gt;locales=zh_CN,en_US&lt;br /&gt;&lt;br /&gt;I have checked to be sure the browser settings were selected for simplified chinese ....but the characters continue to appear as traditional chinese.&lt;br /&gt;&lt;br /&gt;Any ideas how we might fix this?&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>sperry street</dc:creator>
    <dc:date>2011-03-05T17:18:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7617727" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7617727</id>
    <updated>2011-02-22T05:13:07Z</updated>
    <published>2011-02-22T05:13:07Z</published>
    <summary type="html">Thank you Oliver.&lt;br /&gt;&lt;br /&gt;The solution you suggested also worked excellent. As you said, the query string is appended to every page. It is great that now we have two solutions available. Once again thank you for your help.</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-22T05:13:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7606167" />
    <author>
      <name>Oliver Bayer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7606167</id>
    <updated>2011-02-21T08:55:19Z</updated>
    <published>2011-02-21T08:55:19Z</published>
    <summary type="html">Hi Venkat,&lt;br /&gt;&lt;br /&gt;as you don&amp;#39;t use Liferay v6 you can&amp;#39;t use the i18n servlet which allows urls like &amp;#34;&lt;em&gt;liferay.com/en/community&lt;/em&gt;&amp;#34; or &amp;#34;&lt;em&gt;liferay.com/de/community&lt;/em&gt;&amp;#34;. That&amp;#39;s the reason why I&amp;#39;ve suggested you to use the url parameter &amp;#34;&lt;em&gt;doAsUserLanguageId&lt;/em&gt;&amp;#34;.&lt;br /&gt;&lt;br /&gt;Example: http://localhost:8080/web/guest/home?doAsUserLanguageId=de_DE.&lt;br /&gt;&lt;br /&gt;The drawback is that this parameter is appended to all links the user clicks. If you want the parameter to &amp;#34;disappear&amp;#34; you can modify the &amp;#34;&lt;em&gt;ServicePreAction&lt;/em&gt;&amp;#34; class (override the method servicePre).&lt;br /&gt;&lt;br /&gt;HTH Oli</summary>
    <dc:creator>Oliver Bayer</dc:creator>
    <dc:date>2011-02-21T08:55:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7603047" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7603047</id>
    <updated>2011-02-20T17:31:21Z</updated>
    <published>2011-02-20T17:31:21Z</published>
    <summary type="html">Thank you Olaf.&lt;br /&gt;&lt;br /&gt;I will check with our admin regarding masking of URLs.&lt;br /&gt;&lt;br /&gt;Yes. Virtual hosts is not an option for us as each one has to be mapped with either community or organization. In our case, we have single community but needs to be available on multiple (virtual) domains.&lt;br /&gt;&lt;br /&gt;You and Hitoshi are phenomenal and once again thank you very much.</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-20T17:31:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602946" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602946</id>
    <updated>2011-02-20T16:52:28Z</updated>
    <published>2011-02-20T16:52:28Z</published>
    <summary type="html">Of course - my recommendation is to have an apache in front of your appserver. Apache can handle the initial redirection (e.g. just on &amp;#34;/&amp;#34;) and forward the rest to liferay (e.g. through mod_jk).&lt;br /&gt;&lt;br /&gt;To be complete: In case you have different content - e.g. in communities or organizations, separated by language, you could utilize liferay virtualhosts, but from what I understand this is not an option for you.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2011-02-20T16:52:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602776" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602776</id>
    <updated>2011-02-20T15:23:03Z</updated>
    <published>2011-02-20T15:23:03Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Hitoshi Ozawa:&lt;/div&gt;&lt;blockquote&gt;Sorry, I&amp;#39;ve been testing on Liferay 6.0.5 at home. The properties may not be supported in 5.2.2.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Not a problem Hitoshi. &lt;strong&gt;Your earlier solution has been very helpful&lt;/strong&gt; and I can live with query string as mentioned in my previous post.&lt;br /&gt;&lt;br /&gt;I have another follow up question relevant to same thread. &lt;br /&gt;&lt;br /&gt;French page is opened via redirection URL from http://www.mywebsite.fr (which I have yet to test after I get access to that box). Now I see http://www.mywebsite.org/homepage in address bar with French content on page which is expected. &lt;br /&gt;&lt;br /&gt;I am wondering if it is possible to mask the URL as &lt;span style="color: #616EF3"&gt;http://www.mywebsite.&lt;strong&gt;fr&lt;/strong&gt;/homepage&lt;/span&gt; to give a feeling to the user that the site is hosted on other domain (www.mywebsite.fr). Similarly, user should see &lt;span style="color: #616EF3"&gt;http://www.mywebsite.&lt;strong&gt;es&lt;/strong&gt;/homepage&lt;/span&gt; if got redirected from Spanish domain.  Any ideas?</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-20T15:23:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602482" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7602482</id>
    <updated>2011-02-20T10:50:40Z</updated>
    <published>2011-02-20T10:50:40Z</published>
    <summary type="html">Sorry, I&amp;#39;ve been testing on Liferay 6.0.5 at home. The properties may not be supported in 5.2.2.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-02-20T10:50:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7601036" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7601036</id>
    <updated>2011-02-20T03:39:58Z</updated>
    <published>2011-02-20T03:39:58Z</published>
    <summary type="html">Thanks a lot to both you and Olaf for your valuable postings. But no luck yet.&lt;br /&gt;&lt;br /&gt;I have set the two suggested properties in portal-ext.properties file.  Apparently the second property &amp;#34;locale.prepend.friendly.url.style&amp;#34; is not supported (or unavailable) in v5.2.2. I confirmed it by looking at the available list at &lt;strong&gt;Control Panel -&amp;gt; Server Administrator -&amp;gt; Portal Properties&lt;/strong&gt; tab. Is this a similar bug which Olaf talking about?&lt;br /&gt;&lt;br /&gt;So, I still have the same issue and getting &amp;#39;Page not found&amp;#39; error when tried following. I think language code (highlighted below) is treated as folder in &amp;#39;Manage Pages&amp;#39; page tree.&lt;br /&gt;http://www.mywebsite.org&lt;strong&gt;&lt;span style="color: #1F0AE6"&gt;/fr/&lt;/span&gt;&lt;/strong&gt;homepage or http://www.mywebsite.org&lt;strong&gt;&lt;span style="color: #1F0AE6"&gt;/es/&lt;/span&gt;&lt;/strong&gt;homepage&lt;br /&gt;&lt;br /&gt;However, it worked when I appended following query string to the base URL&lt;br /&gt;&lt;strong&gt;http://www.mywebsite.org/homepage&lt;/strong&gt;&lt;span style="color: #1F0AE6"&gt;?p_p_id=82&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;p_p_col_count=1&amp;amp;_82_struts_action=%2Flanguage%2Fview&amp;amp;languageId=fr_FR&lt;/span&gt;. I have yet to try if this works when used as redirection URL from www.mywebsite.fr. But, it would be nice if it works as in www.liferay.com website. Is there any alternate solution to make it work in v5.2.2?&lt;br /&gt;&lt;br /&gt;Olaf,&lt;br /&gt;&lt;br /&gt;Where should I read &amp;#39;accept-language&amp;#39; header? How do I open language specific page after reading &amp;#39;language&amp;#39; property from the headers? Thanks in advance for your help.</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-20T03:39:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7601414" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7601414</id>
    <updated>2011-02-19T23:08:34Z</updated>
    <published>2011-02-19T23:08:34Z</published>
    <summary type="html">Thanks for that clarification. My memory served me wrong - I thought that these settings have been on by default.&lt;br /&gt;&lt;br /&gt;That said, it might even be enough to just get the language setting from the accept-header (see the properties mentioned) - after all this is the best guess on the personal preferences of the person browsing the site.&lt;br /&gt;&lt;br /&gt;Also, I now remember a bug in an old version (might even be 5.2.2, you should update...) on pages that started with recognized language codes - e.g. a page named &amp;#34;demo&amp;#34; was mistaken as the signal to show the page in german (&amp;#34;de&amp;#34;) but the actual page (mo) could not be found. Or similar...</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2011-02-19T23:08:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600794" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600794</id>
    <updated>2011-02-19T22:46:51Z</updated>
    <published>2011-02-19T22:46:51Z</published>
    <summary type="html">I think Olaf&amp;#39;s solution would be the best if you can change the URL of the referring pages.&lt;br /&gt;IF you look at the URL of this forum, you&amp;#39;ll see they are different for each language.&lt;br /&gt;e.g.&lt;br /&gt;www.liferay.com/ja/&lt;br /&gt;&lt;br /&gt;Please try adding the following settings in the portal-ext.properties&lt;br /&gt;&lt;br /&gt;    #&lt;br /&gt;    # Set this to true if unauthenticated users get their preferred language&lt;br /&gt;    # from the Accept-Language header. Set this to false if unauthenticated&lt;br /&gt;    # users get their preferred language from their company.&lt;br /&gt;    #&lt;br /&gt;    locale.default.request=true&lt;br /&gt;&lt;br /&gt;    #&lt;br /&gt;    # Set this to 0 if the locale is not automatically prepended to a URL. This&lt;br /&gt;    # means that each URL could potentially point to many different languages.&lt;br /&gt;    # For example, the URL http://localhost:8080/web/guest/home could then be&lt;br /&gt;    # viewed by users in many different languages.&lt;br /&gt;    #&lt;br /&gt;    # Set this to 1 if the locale is automatically prepended to a URL when the&lt;br /&gt;    # requested locale is not the default locale. This means that each URL&lt;br /&gt;    # points to just one language. For example, the URL&lt;br /&gt;    # http://localhost:8080/web/guest/home would point to the default language.&lt;br /&gt;    # The URL http://localhost:8080/zh/web/guest/home and&lt;br /&gt;    # http://localhost:8080/zh_CN/web/guest/home would both point to the Chinese&lt;br /&gt;    # language.&lt;br /&gt;    #&lt;br /&gt;    # In cases where the prepended locale is &amp;#34;zh&amp;#34; and not complete locale&lt;br /&gt;    # &amp;#34;zh_CN&amp;#34;, then the full locale returned will be based on the order in which&lt;br /&gt;    # the locales appear in the property &amp;#34;locales&amp;#34;. If &amp;#34;zh_CN&amp;#34; appears before&lt;br /&gt;    # &amp;#34;zh_TW&amp;#34;, then &amp;#34;zh&amp;#34; will be a short hand for &amp;#34;zh_TW&amp;#34;.&lt;br /&gt;    #&lt;br /&gt;    # The default language is set in system.properties with the properties&lt;br /&gt;    # &amp;#34;user.country&amp;#34; and &amp;#34;user.language&amp;#34;.&lt;br /&gt;    #&lt;br /&gt;    # Set this to 2 if the locale is automatically prepended to every URL. This&lt;br /&gt;    # means that each URL points to just one language.&lt;br /&gt;    #&lt;br /&gt;    # Note that each language requires an entry in the property &amp;#34;locales&amp;#34; and a&lt;br /&gt;    # servlet mapping in web.xml for the I18n Servlet.&lt;br /&gt;    #&lt;br /&gt;    locale.prepend.friendly.url.style=1</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-02-19T22:46:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600736" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600736</id>
    <updated>2011-02-19T22:34:42Z</updated>
    <published>2011-02-19T22:34:42Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;Can you go to www.mywebsite.com/fr/home or .../fr/web/guest/home ?&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;No Olaf. It didn&amp;#39;t work either. As I said, we are using v5.2.2 with Tomcat6.x. Is it not supported by the version we are using?</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-19T22:34:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600489" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600489</id>
    <updated>2011-02-19T19:39:28Z</updated>
    <published>2011-02-19T19:39:28Z</published>
    <summary type="html">Can you go to www.mywebsite.com/fr/home or .../fr/web/guest/home ?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2011-02-19T19:39:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600399" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600399</id>
    <updated>2011-02-19T18:08:36Z</updated>
    <published>2011-02-19T18:08:36Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;Make www.mywebsite.es redirect to www.mywebsite.org/es&lt;br /&gt;&lt;br /&gt;See the example on liferay.com: The language you see the UI in (from the supported languages) is in the URL, e.g. for me this forum lives on www.liferay.com/de/community/forums&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I am getting page not found error if I try http://www.mywebstie.org/es (or http://www.mywebstie.org/fr)&lt;br /&gt;Each language on liferay&amp;#39;s website has its own URL. Do anyone know how Liferay has implemented localization on their website (www.liferay.com)?</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-19T18:08:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600386" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600386</id>
    <updated>2011-02-19T18:04:01Z</updated>
    <published>2011-02-19T18:04:01Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Oliver Bayer:&lt;/div&gt;&lt;blockquote&gt;Hi Venkat,&lt;br /&gt;&lt;br /&gt;as a quick solution to your requirement you can set the &amp;#34;&lt;em&gt;doAsUserLanguageId&lt;/em&gt;&amp;#34; url parameter to the language in which you want to display the page.&lt;br /&gt;&lt;br /&gt;HTH Oli&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thank you Oliver.&lt;br /&gt;Is it customization in Liferay code? Could you please elaborate more?&lt;br /&gt;Thanks again.</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-19T18:04:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to invoke user desired language of a website</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600378" />
    <author>
      <name>Venkat P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7600378</id>
    <updated>2011-02-19T18:01:20Z</updated>
    <published>2011-02-19T18:01:20Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Hitoshi Ozawa:&lt;/div&gt;&lt;blockquote&gt;Do you mean to select language page depending on http referrer?&lt;br /&gt;Some user web browser may be set not to revel their referrer so it may be better to use modify Liferay&amp;#39;s jsp code to redirect to language specific page using http header&amp;#39;s Accept-Language.&lt;br /&gt;Countries in the drop down list are in the &amp;#34;country&amp;#34; table in the database. You can use database table editor to edit their names.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thank you for your response. Yes. Language specific page should be opened based on http referrer. &lt;br /&gt;You mean to say, Liferay expects referrer to set language preference in http-header? Instead, does liferay provide a unique URL for each language listed in dropdown so that referrer can directly use it as redirection URL? (This is something like what Liferay does on their website, www.liferay.com).&lt;br /&gt;&lt;br /&gt;If above is not possible, can I read http-header properties in custom theme and handle the requests accordingly? If cannot be done in theme, which jsp page in lifery code needs to be customized? Can you please point me to some code samples?</summary>
    <dc:creator>Venkat P</dc:creator>
    <dc:date>2011-02-19T18:01:20Z</dc:date>
  </entry>
</feed>
