<?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: An additional  thought on showing data in the language(s) of the browser locale in VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763102#M15198</link>
    <description>&lt;P&gt;From my (limited) understanding, setting the browser local will change the user interface language but does not deal with the report data - which is what I think you wanted it to handle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may be misunderstanding you, but if you are expecting the browser or SAS VA to translate report data on the fly based on a browser language setting then I'm pretty sure that isn't currently possible, although I'd love to be proved wrong. Hence my discussion on having a data source with multiple languages recorded either in different rows or I guess different columns. My point being that you need to store all the translations in the VA data source organised in such a way that it is easy to select. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Aug 2021 04:20:18 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-08-22T04:20:18Z</dc:date>
    <item>
      <title>How do I show data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762778#M15186</link>
      <description>&lt;P&gt;I have a lot of tables in which I have fields with Dutch, French and occasionally German names&amp;nbsp;(I work in Belgium, where a majority is Dutch mother tongue, most others French and some German.) Often not all the fields are filled. For instance, communities usually have a name in one language, sometimes in two.&lt;/P&gt;&lt;P&gt;A German mother tongue user would prefer the German name of a community (if it is filled in), else any other name that is filled in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The natural solution would be to create a calculated field like this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF (substr(browser.locale, 1, 2) = 'nl' and not  'Dutch name'n Missing )
RETURN 'Dutch name'n
ELSE (
IF (substr(browser.locale, 1, 2) = 'fr' and not  'French name'n Missing )
RETURN 'French name'n
ELSE (
IF (substr(browser.locale, 1, 2) = 'de' and not  'German name'n Missing )
RETURN 'German name'n
ELSE (
IF ( not 'Dutch name'n Missing )
RETURN 'Dutch name'n
ELSE (
IF ( not 'French name'n Missing )
RETURN 'French name'n
ELSE 'German name'n ))))&lt;/PRE&gt;&lt;P&gt;Is something like that possible?&lt;/P&gt;&lt;P&gt;(An improvement would be to take into account the second browser locale too.)&lt;BR /&gt;&lt;BR /&gt;Actually, why does SAS not offer a function that selects the best locale for you and&amp;nbsp;you can use like this?&lt;/P&gt;&lt;PRE&gt;localizeData('nl', 'Dutch name'n, 'fr' 'French name'n, 'de' 'German name')&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 07:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762778#M15186</guid>
      <dc:creator>Dirk_Horsten</dc:creator>
      <dc:date>2021-08-20T07:35:47Z</dc:date>
    </item>
    <item>
      <title>An additional  thought on showing data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762850#M15190</link>
      <description>&lt;P&gt;I considered sending all the languages to the browser and using java script to select one in this style&lt;/P&gt;&lt;PRE&gt;&amp;lt;body&amp;gt;
	&amp;lt;p class=multilingual&amp;gt;{"nl":"Nederlands","fr":"Français","en":"English"}&amp;lt;/p&amp;gt;
	&amp;lt;p class=multilingual&amp;gt;{"nl":"Vondel","fr":"Molière","en":"Shakespear"}&amp;lt;/p&amp;gt;
	&amp;lt;p class=multilingual&amp;gt;{"nl":"Vlaanderen","fr":"Wallonie"}&amp;lt;/p&amp;gt;
	&amp;lt;script type="text/javascript"&amp;gt;
		var multiList = document.getElementsByClassName("multilingual");
		var miltiIndex;
		var language = navigator.languages == undefined 
			? navigator.language.split("-")[0] 
			: navigator.languages[0].split("-")[0];
		for (miltiIndex = 0; miltiIndex &amp;lt; multiList.length; miltiIndex++) {
			multiElement = multiList[miltiIndex];
			multiJson = JSON.parse(multiElement.innerHTML);
			multiElement.innerHTML = multiJson[language] == undefined
				? multiJson[Object.keys(multiJson)[0]]
				: multiJson[language];
		}
	&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;P&gt;but SAS does not send the data in standard html tags, so that is impossible&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762850#M15190</guid>
      <dc:creator>Dirk_Horsten</dc:creator>
      <dc:date>2021-08-20T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: An additional  thought on showing data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762999#M15195</link>
      <description>&lt;P&gt;If I understand you correctly you have columns which contain words in multiple languages. The question I have is how do you identify what language is being used in a particular column or row? Please be aware that web browsers don't contain language translators. SAS Viya contains some language capability but it is not something I have looked at yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way I can think of that might work would be to have your source data repeated for each language that you want - each data row would be repeated for the required languages and each row would have a language column identifying the language used in that row (and only that language). Then changing language would be simply a matter of changing the language column filter (for example LanguageSelect = 'ENG' or 'GER' etc). This of course requires your data to be well organised by language and I don't know if that is possible. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 23:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/762999#M15195</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-20T23:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: An additional  thought on showing data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763012#M15196</link>
      <description>&lt;P&gt;The hard problem is not to organize the data, but to know data in which language to display. You don't address that in your answer.&lt;BR /&gt;&lt;BR /&gt;As SAS already allows &lt;A href="https://documentation.sas.com/doc/en/vacdc/8.5/vareports/n0v60ijuzpxmsqn1fmskkowcd0rf.htm#:~:text=SAS%20Visual%20Analytics%20enables%20you,is%20part%20of%20your%20report.&amp;amp;text=You%20can%20translate%20your%20report,can%20add%20to%20the%20report." target="_self"&gt;localizing fixed text&lt;/A&gt;&amp;nbsp;based on the browser locale and since the organization prefers not storing the language preference of the user, we want to select the content based on the browser locale too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the SAS platform administrator, developing a Proof of Concept (PoC) for our developers. We currently have hundreds of tables in which we have columns with Dutch, French and occasionally German or English descriptions. If I suggest they should reorganize their data and store different languages in different rows, I guess my PoC will not have much success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(The problem is not typical for my current customer. My previous employer had the same situation and I have seen it before in my career. They too had columns, not rows per language.)&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 07:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763012#M15196</guid>
      <dc:creator>Dirk_Horsten</dc:creator>
      <dc:date>2021-08-21T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763099#M15197</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/363447"&gt;@Dirk_Horsten&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The discussion &lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Change-language-from-english-to-other-language-in-SAS-VA/td-p/259254" target="_self"&gt;here&lt;/A&gt; should give you the pointers and links.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amadeus.co.uk/tips/translating-sas-visual-analytics-reports-to-foreign-languages" target="_self"&gt;This link&lt;/A&gt; found in above discussion specifically addresses how to configure browser local specific languages.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 02:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763099#M15197</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-08-22T02:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: An additional  thought on showing data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763102#M15198</link>
      <description>&lt;P&gt;From my (limited) understanding, setting the browser local will change the user interface language but does not deal with the report data - which is what I think you wanted it to handle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may be misunderstanding you, but if you are expecting the browser or SAS VA to translate report data on the fly based on a browser language setting then I'm pretty sure that isn't currently possible, although I'd love to be proved wrong. Hence my discussion on having a data source with multiple languages recorded either in different rows or I guess different columns. My point being that you need to store all the translations in the VA data source organised in such a way that it is easy to select. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 04:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763102#M15198</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-22T04:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show data in the language(s) of the browser locale in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763171#M15202</link>
      <description>This does not contain much new information for me.&lt;BR /&gt;Most of your first link and all of your second link is only on translating fixed text, not data.&lt;BR /&gt;When it comes to data, your first link does not give a solution to make it depend on the locale.</description>
      <pubDate>Sun, 22 Aug 2021 18:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-show-data-in-the-language-s-of-the-browser-locale-in-VA/m-p/763171#M15202</guid>
      <dc:creator>Dirk_Horsten</dc:creator>
      <dc:date>2021-08-22T18:22:06Z</dc:date>
    </item>
  </channel>
</rss>

