Commit 157d24de authored by Claes Sjofors's avatar Claes Sjofors

Ge dynamic OptionMenu, translation of texts added

parent 72aa76d2
......@@ -17377,7 +17377,6 @@ int GeOptionMenu::scan( grow_tObject object)
update_texts = 1;
}
else {
first_scan = false;
if ( update_p)
update_texts = 1;
}
......@@ -17404,6 +17403,16 @@ int GeOptionMenu::scan( grow_tObject object)
if ( EVEN(sts)) return sts;
}
if ( (first_scan || update_texts) && grow_GetTranslate( dyn->graph->grow->ctx)) {
for ( int i = 0; i < 32; i++) {
if ( strcmp(items_text[i],"") != 0)
Lng::translate( items_text[i], items_text[i]);
}
}
if ( first_scan)
first_scan = false;
switch( type_id) {
case pwr_eType_Float32:
enum_value = (unsigned int) (*(pwr_tFloat32 *) p > 0 ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment