Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  can i make dynamic menu in plugin??
« previous next »
  • Print
Pages: [1]

Author Topic: can i make dynamic menu in plugin??  (Read 1330 times)

Offline restart

  • Member
  • *
  • Posts: 14
can i make dynamic menu in plugin??
« 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.

i'm using this code to make menu
Code: [Select]
MENUITEM_STRINGLIST(language, "Virtual Guide", NULL, "English", "Spanish");

selection=rb->do_menu(&language, &selection, NULL, false);

if i use "if...else" there will be warning when i compile the rockbox.
Code: [Select]
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

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??
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: can i make dynamic menu in plugin??
« Reply #1 on: June 16, 2008, 05:40:21 AM »
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.
...
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..
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  can i make dynamic menu in plugin??
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.