[Android Software/Hacking General [Developers Only]] amarullz:
Ok,.. That's was the challenging questions :cool: !

Q: is it possible to get a screen before everything with the Option to choose the language, so that if I choose German it goes to the script in German, and the same in English ( anyway, nothing important, only an idea )

[A]: Yes.

You can create menubox then save all languages string in variables. But sadly it's only supported ascii characters, see in font customization page 1. Maybe next time I will try to include truetype for fonts.

Here some tricks:

* Show menubox to select language ( First Screen, so it was above other viewbox or agreebox in script):

menubox(
# Title
"Select Language",

# Sub Title
"Please select your language",

# Icon ( Create your own icon, or use bundled icon )
"icons/language",

# Will be saved in /tmp/aroma-data/lang.prop
"lang.prop",

# Items ( per 3 arguments ): Title, Subtitle/description, Icon
# Item 1
"English", "Lorem Ipsum", "icons/lang_english",

# Item 2
"Germany", "Lorem Ipsum", "icons/lang_german"
);

After the you show the menubox, you can directly compare the result like this: (Note menubox don't have any group, so I use "selected" in prop file), use something like this:

if
file_getprop("/tmp/aroma-data/lang.prop","selected") == "1"
then
... English ...
else
... Germany ...
endif;

To set some sentences, you can use setvar, and to get it use getvar

if
file_getprop("/tmp/aroma-data/lang.prop","selected") == "1"
then
setvar("welcome","Welcome To Installer");
setvar("info","You are about to Installing ANDROID ROM for your device");
else
setvar("welcome","Willkommen bei Installateur");
setvar("info","Sie sind dabei, Installation ANDROID ROM fur Ihr Gerat");
endif;

viewbox(
getvar("welcome"),
getvar("info"),
"icons/info"
);

You can also set default command text for Next, Back, and OK with something like this:

ini_set("text_ok","OK");
ini_set("text_next","Nachste >");
ini_set("text_back","< Zuruck");

If you want to use multilanguage also in updater-script, you can use writetmpfile like this:

writetmpfile(
#-- Save in
"lang.prop",

#-- Langs:
"welcome=Willkommen bei Installateur\n"+
"info=Sie sind dabei, Installation ANDROID ROM fur Ihr Gerat\n"
);

so you can call this in aroma-config:

viewbox(
file_getprop("/tmp/aroma-data/lang.prop","welcome"),
file_getprop("/tmp/aroma-data/lang.prop","info"),
"icons/info"
);

and in updater-script:

ui_print("* "+file_getprop("/tmp/aroma-data/lang.prop","welcome"));
ui_print(file_getprop("/tmp/aroma-data/lang.prop","info"));

[Q]: if I click on standard or customized installation, both will go further with the screens for choosing the options ??? I think only customized should do it and standard should install straight away.

[A]: I don't yet include all function into the downloaded zip

But please Download the attachment to learn RunnyMede AIO AROMA Config Scripts to know more... I will update the script, so all functions will be well documented.

It's include how to use updater-script to communicate with aroma-config selected result.

[Q] to install it as a Standard Version how to I get this code tried

[A] Sample Available in attachment

[Q] and strange I tried to get this one to work, but don't think it had worked, maybe you know my error

[A] What function did you used?

example checkbox prop results (value= 0:unchecked, 1:checked):

item.1.1 = 1
item.1.2 = 1
item.1.3 = 0
item.1.4 = 1
item.2.1 = 0
item.2.2 = 1

example optionbox prop results (value=selected index):

item.1 = 3
item.2 = 4
item.3 = 1

item.1 = 1 is Selected item for Group 1 is item with index 3.

example menubox prop results (value=selected index):

selected = 2

Menubox doesn't had any group, so the prop value only containing selected

Hope you understand...