Language selector
Posted: 22 Mar 2019 11:39
Hi.
I am trying to create fancy and automated input dialog to choose UI language based on existing language files.
It works fine, but I would like to polish it a little bit.
Right now list in dialog shows county codes (ex. pl_PL) which are taken from filenames.
What I would like to achieve is to get on list:
Country flag + country name
instead of
Country code.
My idea to do this was presented here:
http://automagic4android.com/forum/view ... 6&t=7960&p
However it needs improvements.
1. Else{} create an "unknown" position even if there is no other element on the list.
2. Else{} create just one position on the list even if there is more unrecognized elements.
3. And maybe it can be done in different way than by loop if...else.
Do you have any advices?
I am trying to create fancy and automated input dialog to choose UI language based on existing language files.
It works fine, but I would like to polish it a little bit.
Right now list in dialog shows county codes (ex. pl_PL) which are taken from filenames.
What I would like to achieve is to get on list:
Country flag + country name
instead of
Country code.
My idea to do this was presented here:
http://automagic4android.com/forum/view ... 6&t=7960&p
However it needs improvements.
1. Else{} create an "unknown" position even if there is no other element on the list.
2. Else{} create just one position on the list even if there is more unrecognized elements.
3. And maybe it can be done in different way than by loop if...else.
Do you have any advices?