cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nimmers80
New Member

Translate Items in a List dropdown which is populated from another list

I'm new to powerapps and I'm wondering if anyone can help?

 

I have a list which is in English, I use the form to populate and I want it to be displayed in multiple languages.

 

So far I have managed to translate all the labels using MicrosoftTranslator.Translate and they all work.

 

e.g. MicrosoftTranslator.Translate(Parent.DisplayName,lstChooserLanguage.selected.value)   where lstChooserLanguage is another dropdown with options "EN","ES","FR".

 

The challenge I have now is one of the list items is a Choice and I want to know if it is possible to translate the options in this choice list. I want the options in the form to be displayed in French but when the user clicks on Save it is saved in English.

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @Nimmers80 ,

Since your dropdown is populated from another list, I assume that the Items property of your dropdown looks like this formula:

ListXXX.ColumnName

v-albai-msft_0-1620876279600.png

 

If my assumption is correct, I did a test on my side, you can refer to my steps:

1. Set OnStart property of your App to(I get value from Title column in list10, replace to your list name and column name):

ClearCollect(list10_2,AddColumns(list10,"TitleinFR",MicrosoftTranslator.Translate(Title,"FR")))

v-albai-msft_1-1620876279603.png

 

2. Set Items property of your dropdown to:

list10_2.TitleinFR

v-albai-msft_2-1620876279607.png

 

3. Set OnSelect property of your save button to(DataCardValue12 is the name of my dropdown control):

Patch(list10,Defaults(list10),{Title:MicrosoftTranslator.Translate(DataCardValue1.Text,"FR"),Choice1:{Value:MicrosoftTranslator.Translate(DataCardValue12.Selected.TitleinFR,"EN")}})

v-albai-msft_5-1620876622524.png

 

 

Above code will save records with "Title" in "FR" format and "Choice1" in "EN" format. 

v-albai-msft_6-1620876647396.png

 

 

Best regards,

Allen

View solution in original post

2 REPLIES 2
Rivius
Resolver III
Resolver III

Aside from having many different choice lists, maybe you could display the choices to the user as a table/collection with the translated values and then when saving you could translate back to english and record the filtered/search/lookup choice.

v-albai-msft
Community Support
Community Support

Hi @Nimmers80 ,

Since your dropdown is populated from another list, I assume that the Items property of your dropdown looks like this formula:

ListXXX.ColumnName

v-albai-msft_0-1620876279600.png

 

If my assumption is correct, I did a test on my side, you can refer to my steps:

1. Set OnStart property of your App to(I get value from Title column in list10, replace to your list name and column name):

ClearCollect(list10_2,AddColumns(list10,"TitleinFR",MicrosoftTranslator.Translate(Title,"FR")))

v-albai-msft_1-1620876279603.png

 

2. Set Items property of your dropdown to:

list10_2.TitleinFR

v-albai-msft_2-1620876279607.png

 

3. Set OnSelect property of your save button to(DataCardValue12 is the name of my dropdown control):

Patch(list10,Defaults(list10),{Title:MicrosoftTranslator.Translate(DataCardValue1.Text,"FR"),Choice1:{Value:MicrosoftTranslator.Translate(DataCardValue12.Selected.TitleinFR,"EN")}})

v-albai-msft_5-1620876622524.png

 

 

Above code will save records with "Title" in "FR" format and "Choice1" in "EN" format. 

v-albai-msft_6-1620876647396.png

 

 

Best regards,

Allen

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,289)