<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the user language ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239518#M192648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working in a webscript :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var acceptLanguage = headers["accept-language"];&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just note that it's not working in a workflow : &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=53&amp;amp;t=42238&amp;amp;p=123546#p123497" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=53&amp;amp;t=42238&amp;amp;p=123546#p123497&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 07:09:16 GMT</pubDate>
    <dc:creator>dranakan</dc:creator>
    <dc:date>2011-12-21T07:09:16Z</dc:date>
    <item>
      <title>How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239516#M192646</link>
      <description>Hi, I would like to know if there is a way to get the language with JavaScript ? Because the "Interface Language" is not directly linked to the user profile so there is not way to do something like person.language &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;My idea is to send an email depending on the user language preference (by using a di</description>
      <pubDate>Thu, 18 Jun 2009 16:29:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239516#M192646</guid>
      <dc:creator>riogrande</dc:creator>
      <dc:date>2009-06-18T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239517#M192647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same question for the same purpose two years later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone got a solution since?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 08:48:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239517#M192647</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-07-19T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239518#M192648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working in a webscript :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var acceptLanguage = headers["accept-language"];&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just note that it's not working in a workflow : &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=53&amp;amp;t=42238&amp;amp;p=123546#p123497" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=53&amp;amp;t=42238&amp;amp;p=123546#p123497&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:09:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239518#M192648</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2011-12-21T07:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239519#M192649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer. The problem is that I can only retrieve the language of the user currently calling the webservice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I want to trigger an email to someone else based on the preferred language of that other person.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up with a somewhat similar solution. Every time a user connect to my webservice I retrieve headers["accept-language"] and store it in&amp;nbsp; person.properties["preferenceValues"] .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That property is a json so I can just add my custom property in here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then once it's linked to the user node, I can access it whenever I want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there must already be a language associated with the user profile since Alfresco explorer interface manage to remember the user preferred language entered in his profile. It just doesn't seen to be exposed via javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:27:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239519#M192649</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-12-21T07:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239520#M192650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it not what you store ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;person.properties["{&lt;A href="http://www.alfresco.org/model/system/1.0}locale" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}locale&lt;/A&gt;"]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:31:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239520#M192650</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2011-12-21T07:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239521#M192651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Damn right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Was it already there attached to the person in 3.4? I don't understand how I possibly missed it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry it's not my topic so the point is not mine to give and I can't close the topic but that's exactly what I was searching for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:58:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239521#M192651</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-12-21T07:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the user language ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239522#M192652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know about the 3.4… I just try in 4.0b. Your savior is not me… but lukasz_turakiewicz &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 08:04:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-user-language/m-p/239522#M192652</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2011-12-21T08:04:16Z</dc:date>
    </item>
  </channel>
</rss>

