Hello, what is the easiest way to save spinner in a choosen position?
Reserve a TinyDb tag for that Spinner, and save and restore the Spinner Selection from there?
(Have not tried this.)
That dont work.
![]()
Im trying to make so i can change language. Its theese blocks.
I had put the image inhere and the .aia file, if someone could help.
PrepperHelper.aia (4.0 MB)
The problem is that i have:
Dansk
English
in spinner.
Dansk (danish) is the current language.
When i choose English in spinner and close the app, open the app, the language is in english, but in the spinner is Dansk choosed.
This is the Dansk language:
This is english lang:
And this is when i had closed the app and reopened:
the apps language is english but it is Dansk there is choosen.
In Screen1.Initialize, you forgot to call the update all texts procedure after recovering the language selection from TinyDB.
(sorry - I see it now, all the way at the bottom)
No, but I don't know where set this:

Post the relevant blocks.
What? They are posted.
The SpinnerSelection is English after selecting English and after restarting the app.

![]()
But I need to see the blocks where you set this:

The problem might be your use of a temporary Label.Text to pass data from your txt procedure back to your Update All Texts procedure.
AI2 does not update display elements until the end of the current event, so those updates to your display Text values might not be taking effect.
Try coding a value procedure for the translated text and pass it directly into the target Label.
Alternatively, use your language translation dictionaries to perform the advanced replace text block with dictionaries against every Label component returned by the Every Label block.
That would save you a lot of tedium.
Well the language works alright, thats only the spinner there not save the right position.
I also see disabled blocks


I see 5 Screens.
Do you have When Other Screen Closed events to retranslate after switching screens?
The translation is only on screen1 for now, until i know its works.
The disabled blocks are not doing anything right now, thats why they are disabled. Because i need to try other things to get it to work.
Here is a working approach to selecting and storing a language with a spinner:
storeSpinnerSetting.aia (3.0 KB)
How can i use it in that i already had make? Example in the spinner1.AfterSelecting?











