Search found 50 matches

by kamil_w
04 Apr 2019 11:12
Forum: General
Topic: Language selector
Replies: 6
Views: 18153

Re: Language selector

My idea is to create a menu in Automagic, which will be activated by Automagic Destop Shortcut. It based on Input Dialog and looks this way: Menu: <status> <functionality> <status> <functionality> ... <options> Where <status> shows if functionality is on or off, and <functionality> is a name of set ...
by kamil_w
26 Mar 2019 12:32
Forum: General
Topic: Language selector
Replies: 6
Views: 18153

Re: Language selector

Sorry, I don't understand.
by kamil_w
22 Mar 2019 17:23
Forum: General
Topic: Language selector
Replies: 6
Views: 18153

Re: Language selector

Thanks. I will try it.

FYI: Those flags are taken from emoji icons from built-in Samsung keyboard.
by kamil_w
22 Mar 2019 11:39
Forum: General
Topic: Language selector
Replies: 6
Views: 18153

Language selector

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...
by kamil_w
22 Mar 2019 11:00
Forum: General
Topic: [Solved] Script: Loop for + if/else
Replies: 7
Views: 18170

Re: [Solved] Script: Loop for + if/else

Thank you Desmanto. I didn't know that.

However now I know why it didn't work. Let's leave that topic. I will describe my scenario in new topic. :)
by kamil_w
22 Mar 2019 10:16
Forum: General
Topic: [Solved] Script: Loop for + if/else
Replies: 7
Views: 18170

Re: Script: Loop for + if/else

Finally!
Great thanks!

Just once note: in variable "value" there must be no spaces after commas.
by kamil_w
22 Mar 2019 09:43
Forum: General
Topic: [Solved] Script: Loop for + if/else
Replies: 7
Views: 18170

Re: Script: Loop for + if/else

I don't understand that: Script: value = 'pl_PL, en_GB, xx_XX'; listvar = newList(value); listdirect = newList("pl_PL", "en_GB", "xx_XX"); // elements for list taken form variable "value" for (iv in listvar) { if (iv == "pl_PL") { lang_plv = "Polish"; } if (iv == "en_GB") { lang_env = "English (Brit...
by kamil_w
22 Mar 2019 07:53
Forum: General
Topic: [Solved] Script: Loop for + if/else
Replies: 7
Views: 18170

Re: Script: Loop for + if/else

Thanks. It works that way, but I can't provide a string directly in function newList, as variable "value" is an output from previous action.
by kamil_w
22 Mar 2019 07:08
Forum: General
Topic: [Solved] Script: Loop for + if/else
Replies: 7
Views: 18170

[Solved] Script: Loop for + if/else

Hi, I have such code in action Script: --------------------------- value = "pl_PL, en_GB, xx_XX"; list = newList(value); for (i in list) { if (i == "pl_PL") { lang_pl = "Polish"; } if (i == "en_GB") { lang_en = "English (British)"; } else { lang_xx = "Unknown" } } --------------------------- It does...