Variables during install question

Download, Present, and receive support for third party WoWRoster AddOns and modifications
WoWRoster AddOns and Mods are supported by the author only
Please understand that some AddOns and Mods may require advanced skills to employ

Variables during install question

Postby boyo » Sun Sep 16, 2007 11:44 am

I want to use a word out of the language file during install for one of the menu options. Is there a way to do this?

What I have that works is
Code: Select all
      $installer->add_config("'1201','player_location','Hearth','select{Hearth^Hearth|Zone^Zone','menu_player'");

And I want to replace the first Hearth and Zone with the values that are stored in the language file. Is this even possible?

Appreciate any help given.
boyo
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Wed Jan 24, 2007 7:37 am

Variables during install question

Postby zanix » Sun Sep 16, 2007 12:02 pm

No, currently it is not possible
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Variables during install question

Postby boyo » Sun Sep 16, 2007 12:14 pm

Ok, that's a better answer hte me sitting here banging my head on the keyboard.

Any suggestions on localizing the cp?
boyo
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 103
Joined: Wed Jan 24, 2007 7:37 am

Variables during install question

Postby zanix » Sun Sep 16, 2007 3:42 pm

Well, each config is localizable

In the config above, the config would be
Code: Select all
$lang['admin']['player_location'] = 'Text|Tooltip';
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Variables during install question

Postby PleegWat » Sun Sep 16, 2007 5:41 pm

The page names, frame titles, and config names are localized. The config values are not.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to AddOns and Mods

Who is online

Users browsing this forum: No registered users and 0 guests

cron