Welcome, Guest. Please login or register.

Author Topic: MUI RegisterGroup & Localisation  (Read 994 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SlashTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 112
  • Country: gb
  • Gender: Male
    • Show only replies by Slash
    • http://www.the-snakepit.co.uk
MUI RegisterGroup & Localisation
« on: October 07, 2003, 12:29:09 AM »
OK this is probably going to sound like a really easy question, but how do I change the titles of my Tabs/Pages which have been created with Register group, e.g.

static char *titles[] = {"One", "Two", NULL};

Blah Blah,

Child, RegisterGroup(titles),
    Blah, Blah
End,

I can't do a

char *titles[] = {localestr(ONE), localestr(TWO), NULL};

MUI doesn't like that.

I can't do a

static char *titles[] = {localestr(ONE), localestr(TWO), NULL};

because GCC won't compile that.

So how do I register my tabs/pages with dynamic titles? Am I missing something silly? I don't want to have the page titles hardcoded into the application, there must be a way... must be :-)

Thanks!
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: MUI RegisterGroup & Localisation
« Reply #1 on: October 07, 2003, 01:25:35 AM »
Before creating register group:

titles[0] = localestr(ONE);
titles[1] = localestr(TWO);
My Amigas: A500, Mac Mini and PowerBook
 

Offline SlashTopic starter

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 112
  • Country: gb
  • Gender: Male
    • Show only replies by Slash
    • http://www.the-snakepit.co.uk
Re: MUI RegisterGroup & Localisation
« Reply #2 on: October 07, 2003, 09:44:10 AM »
Doh!!!

Thanks for that itix, my brain ain't working half as well as it used to!!

That's so simple and obvious now, yet I couldn't figure the bugger out last night!! :-(

Ta