<?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: Preselection of the language depending on the user in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065318#M87375</link>
    <description>&lt;P&gt;one other way that ive only tested but never implemented (as we use URLs to open our dashboards) is to create an extension that looks up the locale of the user and sets the language in your dashboard.&amp;nbsp; so if the user opens the dashboard, the locale and the values inside the dashboard will have the same language.&amp;nbsp; then if the user wants to switch to a different language use a button to triger a URL that has the QLik sense and data displaying the same language based on what the user wants&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 14:07:15 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2023-04-27T14:07:15Z</dc:date>
    <item>
      <title>Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2059576#M86968</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;I am looking for a way to preselect a language depending on the user. In my data model is a table with every user and their preferred language (Field UserLanguage). There is also a field Language in another table that displays all available languages and controls the language in the app. (There are users who want to switch between languages). For this field Language the option “always one selected value” is checked.&lt;/P&gt;
&lt;P&gt;When a user enters my app, I want the app to pre-select their Userlanguage in the field Language.&lt;/P&gt;
&lt;P&gt;For that I have created a variable. The output is the Userlanguage of the active user.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhc4qlik_0-1681300493491.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104706iCC9C419328479717/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhc4qlik_0-1681300493491.png" alt="mhc4qlik_0-1681300493491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhc4qlik_1-1681300493495.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104705iC25B63ECCB09D68F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhc4qlik_1-1681300493495.png" alt="mhc4qlik_1-1681300493495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If nothing is selected in the Language field I can search with this expression and get the correct language:&lt;/P&gt;
&lt;P&gt;=Language =vLanguageUser&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhc4qlik_2-1681300493498.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104704iBDD8088AE0702D5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhc4qlik_2-1681300493498.png" alt="mhc4qlik_2-1681300493498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would then save this in a bookmark.&lt;/P&gt;
&lt;P&gt;However, this only works if nothing is selected. But after I checked the option “always one selected value”, there is always something selected and so it doesn't find the language anymore.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhc4qlik_3-1681300493504.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104707iAF30851D9FDF8539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhc4qlik_3-1681300493504.png" alt="mhc4qlik_3-1681300493504.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know a workaround or an alternative solution?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2059576#M86968</guid>
      <dc:creator>mhc4qlik</dc:creator>
      <dc:date>2023-04-12T12:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2064973#M87352</link>
      <description>&lt;P&gt;the way we implemented language is via URL.&amp;nbsp; so the user clicks on the URL with the desired language.&amp;nbsp; then if the user wants to switch language, the user clicks a button that has a URL with the desired language.&amp;nbsp; we decided that you dont want to switch language just inside the dashboard as it will be weird to have all the menus and system labels in one language and then your field names, selections, filters, values in a different language.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;of course there is only one dashboard and the dashboard has all the internal words (labels, field names, values) translated.&amp;nbsp; and we make sure the language in the URL is the same language selected.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;in the dashboard itself we created a hidden language field which we lock.&lt;BR /&gt;&lt;BR /&gt;this is how we format our URLs:&lt;BR /&gt;&lt;BR /&gt;https://&amp;lt;SERVER&amp;gt;sense/app/.../sheet/.../state/analysis/language/en/bookmark/&amp;lt;bookmarkID&amp;gt;&lt;BR /&gt;&lt;BR /&gt;where the bookmark includes the&amp;nbsp; language field selected and locked&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 18:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2064973#M87352</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-04-26T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065261#M87368</link>
      <description>&lt;P&gt;Hello Edwin,&lt;/P&gt;
&lt;P&gt;Thank you very much for your answer. You have given me exactly the right idea. At least for some of the users. Our sales reps already use a URL to jump from their customer relation management tool with their selections to our Qlik Sense app. We could just add the language here.&lt;/P&gt;
&lt;P&gt;Unfortunately, the rest of the users do not use an URL .&lt;/P&gt;
&lt;P&gt;As a workaround, I have generated a button in which the language for the user is stored. Actions work, but bookmarks do not with “always one selected”. As far as I know, it is not yet possible to store actions when opening the app.&lt;/P&gt;
&lt;P&gt;The button works, but I wanted a more elegant solution, since the users are annoyed that the default setting is english.&lt;/P&gt;
&lt;P&gt;Unfortunately, we also need the possibility to change the language within the app. Because we have countries that speak several languages and depending on the customer, it must also be possible to change the language.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065261#M87368</guid>
      <dc:creator>mhc4qlik</dc:creator>
      <dc:date>2023-04-27T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065313#M87374</link>
      <description>&lt;P&gt;if you change the language via button then you can build the URL into that button - you can change the lanuage of your field values and you can set the QLik Sense language - all via URL&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065313#M87374</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-04-27T13:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065318#M87375</link>
      <description>&lt;P&gt;one other way that ive only tested but never implemented (as we use URLs to open our dashboards) is to create an extension that looks up the locale of the user and sets the language in your dashboard.&amp;nbsp; so if the user opens the dashboard, the locale and the values inside the dashboard will have the same language.&amp;nbsp; then if the user wants to switch to a different language use a button to triger a URL that has the QLik sense and data displaying the same language based on what the user wants&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 14:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2065318#M87375</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-04-27T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2078493#M88470</link>
      <description>&lt;P&gt;an action at the sheet level to set the variable wouldn't work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2078493#M88470</guid>
      <dc:creator>MaryseC</dc:creator>
      <dc:date>2023-05-31T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2078773#M88488</link>
      <description>&lt;P&gt;Hi MaryseC, thank you for your answer.&lt;/P&gt;
&lt;P&gt;I have thought about it too, but the problem is that we have sales representatives who are responsible for countries that speak several languages.&lt;BR /&gt;That means you have to have the possibility to change the language depending on the customer. With the variable on sheet level, the language would then change back when you are back on the sheet and that would not be ideal.&lt;/P&gt;
&lt;P&gt;Ideally, the user's default language should only be set once when the app is started and then it is possible to change the language for the customer.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 06:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2078773#M88488</guid>
      <dc:creator>mhc4qlik</dc:creator>
      <dc:date>2023-06-01T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Preselection of the language depending on the user</title>
      <link>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2081403#M88685</link>
      <description>I didn't test it, but do you think you could in the load script add a&lt;BR /&gt;language choice that would be like "-- please select a language --" written&lt;BR /&gt;in a way so that it's sorted by default to be the first value in the list.&lt;BR /&gt;So hopefully when the app opens, that value is the one caught by the always&lt;BR /&gt;one selected option then you could put an action on all sheet saying  if&lt;BR /&gt;the current selected language is " -- please select a language --" then&lt;BR /&gt;select the default preferred language of the user instead.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jun 2023 02:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Preselection-of-the-language-depending-on-the-user/m-p/2081403#M88685</guid>
      <dc:creator>MaryseC</dc:creator>
      <dc:date>2023-06-08T02:38:06Z</dc:date>
    </item>
  </channel>
</rss>

