Skip to main content

Hello,

 

I would like to provide analyses in German and English. But I would like to maintain only 1 analysis. Depending on the set user language, the correct variables should then be used.

 

Name mapping is already used for descriptions and texts, but I haven't found a way to use it in variables.

 

Is there a standard way to do this?

 

Many thanks in advance,

Stephan

Hi Stephan,

 

One of the main methods could be to:

  • Create 1 variable for the language itself i.e. user_language = 'EN' or 'DE'. This variable would be updated based on UI like a dropdown that the User would toggle.
  • Create localized variables using conditions like CASE WHEN. For example text_1 variable could have a statement like: CASE WHEN user_language = 'DE' THEN text_de ELSE text_en END
  • Then wherever you would use variables like text_1, it will use the right language based on the unique user_language variable.

 

Best,


HI @strephan.sturm 

 

I would suggest you to use OLAP table and use variable for the language so that you can drill down as per the language depending on the set of users.

 

image 

Just sharing the above snapshot to give you an idea how you can drilldown.

 

So in that drill down you can put German and English user and then the OLAP table will show the description accordingly.

 

Hope it helps.

 

Happy Learning!


Hi Stephan,

 

One of the main methods could be to:

  • Create 1 variable for the language itself i.e. user_language = 'EN' or 'DE'. This variable would be updated based on UI like a dropdown that the User would toggle.
  • Create localized variables using conditions like CASE WHEN. For example text_1 variable could have a statement like: CASE WHEN user_language = 'DE' THEN text_de ELSE text_en END
  • Then wherever you would use variables like text_1, it will use the right language based on the unique user_language variable.

 

Best,

Hi Stephane,

 

thank you for your suggestion. That was my first attempt also. But I thought, there has to be a better way 🙂 From the user perspective, it is not so user-friendly to select the language additionally to the system language in each analysis.

 

Best regards,

Stephan

 

 

 


Reply