<?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 Browser locale in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213686#M2287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a multi-lingual report and thus far I've managed to successfully implement French and English labels using the File/Localize Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm now trying to translate the data itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I'd like to be able to create a calculated item as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (browser_local = 'EN') return DeptName_En &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DeptName_Fr&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to reference the browser locale from the calculated item expression window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 21:02:07 GMT</pubDate>
    <dc:creator>Sanjeev</dc:creator>
    <dc:date>2015-03-31T21:02:07Z</dc:date>
    <item>
      <title>Browser locale</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213686#M2287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a multi-lingual report and thus far I've managed to successfully implement French and English labels using the File/Localize Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm now trying to translate the data itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I'd like to be able to create a calculated item as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (browser_local = 'EN') return DeptName_En &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DeptName_Fr&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to reference the browser locale from the calculated item expression window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 21:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213686#M2287</guid>
      <dc:creator>Sanjeev</dc:creator>
      <dc:date>2015-03-31T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Browser locale</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213687#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A very good question and technique that would be extremely useful to support users with different browser locale settings. I don't think the specific request you are asking, being able to take advantage of browser or VA server configuration settings as parameters is currently possible within SAS Visual Analytics Designer. It's an idea and feature that would be useful to support multiple locales and potentially other areas such as setting report size dynamically based on client device and device type, date formatting based on client preferences etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a requirement you must have then a suggested work around would be to add another a data source to the report that contains the locales you want to support and a report prompt using the locale data item so that the user has the option to change the locale within the report from a default EN value to FR (or vice versa) depending on your user community. If you are using SAS Visual Analytic 7.1, you can create a parameter based on the report prompt value and use it within your calculated item. Have a look at parameters at &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/67500/HTML/default/viewer.htm#p0qvah37e3ft42n1cbdyymfvbbjl.htm" title="http://support.sas.com/documentation/cdl/en/vaug/67500/HTML/default/viewer.htm#p0qvah37e3ft42n1cbdyymfvbbjl.htm"&gt;SAS(R) Visual Analytics 7.1: User's Guide - Overview of Parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully someone from SAS can respond if there is a way to use the browser locale setting and future plans. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 01:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213687#M2288</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2015-04-01T01:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Browser locale</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213688#M2289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michelle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. Your suggestion may be my only option. But it made me think, what about JavaScript? Could I do the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create my own Language prompt sourced from a second data source (as you suggested).&lt;/P&gt;&lt;P&gt;2) Then using a JavaScript call , get the browser locale and populate the language prompt accordingly.&lt;/P&gt;&lt;P&gt;3) Then reference the language prompt in a calculated item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just don't know where I can add the JavaScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 15:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213688#M2289</guid>
      <dc:creator>Sanjeev</dc:creator>
      <dc:date>2015-04-01T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Browser locale</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213689#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can embed your own Javascript within a SAS Visual Analytics report. This is why I made the suggestion I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Browser-locale/m-p/213689#M2290</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2015-04-01T19:35:15Z</dc:date>
    </item>
  </channel>
</rss>

