Wordings declearation

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Wordings declearation

Postby 3QU1N0X » Wed Sep 06, 2006 7:58 pm

I am trying to add a download with instructions below the pvplog instructions, i just copied the pvplog instructions and changed everything i needed to say, i also changed the wordings to
Code: Select all
$wordings['enUS']['update_instructgp']='


Now that i have done this it does not show up on the page, So i need to know where else are these wording are declared so I can go add it to the appropriate files.

Thanks
3QU1N0X
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Jul 26, 2006 9:14 am

Wordings declearation

Postby Hannah » Wed Sep 06, 2006 8:18 pm

Hi!

Try this:

Declare something like:
Code: Select all

$wordings
['enUS']['update_instructgp']='This is the instruction....';
 

in the localization file (enUS)

Then on the page you want to add this place something like
Code: Select all
echo "Here comes the var: ".$wordings[$roster_conf['roster_lang']]['update_instructgp']
 


Be sure your conf.php uses enUS...;) and the var in localisation is only declared once...

Hope this helps

Hannah
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Wordings declearation

Postby 3QU1N0X » Wed Sep 06, 2006 8:31 pm

Thank you very much, that did the trick.

Had to enter the info into memberlist.php

Right where it says:

Code: Select all
// Print the update instructions
if( $roster_conf['index_update_inst'] )
{
   print '<hr />
<div align="left" style="font-size:12px;">
<a name="update"></a>';

   echo $wordings[$roster_conf['roster_lang']]['update_instruct'];

   if ($roster_conf['pvp_log_allow'] == 1)
      echo $wordings[$roster_conf['roster_lang']]['update_instructpvp'];


   print '</div>';
}


I had to add my wording and make it say:
// Print the update instructions
if( $roster_conf['index_update_inst'] )
{
print '<hr />
<div align="left" style="font-size:12px;">
<a name="update"></a>';

echo $wordings[$roster_conf['roster_lang']]['update_instruct'];

if ($roster_conf['pvp_log_allow'] == 1)
echo $wordings[$roster_conf['roster_lang']]['update_instructpvp'];

echo $wordings[$roster_conf['roster_lang']]['update_instructgp'];

print '</div>';
}
Last edited by 3QU1N0X on Wed Sep 06, 2006 8:32 pm, edited 1 time in total.
3QU1N0X
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Jul 26, 2006 9:14 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron