Rockbox Development > Starting Development and Compiling
can i make dynamic menu in plugin??
(1/1)
restart:
i want to make dynamic menu in my plugin. cause i have 2 language in my plugin (e.g. English and Spanish), so if i choose english, the next menu will appear in english, and if i choose spanish, the next menu will appear in spanish.
i'm using this code to make menu
--- Code: ---MENUITEM_STRINGLIST(language, "Virtual Guide", NULL, "English", "Spanish");
selection=rb->do_menu(&language, &selection, NULL, false);
--- End code ---
if i use "if...else" there will be warning when i compile the rockbox.
--- Code: ---VirtualGuide.c: In function `menu':
VirtualGuide.c:207: warning: unused variable `menu'
VirtualGuide.c:210: warning: unused variable `menu'
VirtualGuide.c:214: warning: passing arg 1 of pointer to function from incompatible pointer type
--- End code ---
and when i running the rockbox (i am using simulator), when i choose one of language in language menu, the rockbox will hang.
can anyone suggest the problem(s)??
another question is:
i want to make dynamic language that read from .txt file. So, if i've changed the .txt files, the menu in rockbox will change too. how i can build it??
mcuelenaere:
--- Quote from: restart on June 16, 2008, 01:49:51 AM ---i want to make dynamic menu in my plugin. cause i have 2 language in my plugin (e.g. English and Spanish), so if i choose english, the next menu will appear in english, and if i choose spanish, the next menu will appear in spanish.
...
--- End quote ---
I don't know what's the plugins intention, but there is a SoC being developed adding multi language support to plugins, so you might just want to wait on that..
Navigation
[0] Message Index
Go to full version