Author Topic: how to add new lang vars ?  (Read 4070 times)

0 Members and 1 Guest are viewing this topic.

Offline daniel_74

  • Newbie
  • *
  • Posts: 25
    • View Profile
how to add new lang vars ?
« on: April 08, 2005, 12:14:04 AM »
Hello,

Iīm trying to add more lang vars to some templates.
For example Iīm adding a main menu to the Home Template.

Now I have this:
<td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_main_menu}</td>

But I canīt find the file where to define the variable "lang_main_menu" to be referred to the lang file "main.php" where I have already defined the following:
$lang['main_menu'] = "Main Menu";

Please help.
Best regards,
Daniel

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: how to add new lang vars ?
« Reply #1 on: April 08, 2005, 12:22:11 AM »
yeah, u need register them first.
u can see how its done in includes/page_header.php ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline daniel_74

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: how to add new lang vars ?
« Reply #2 on: April 08, 2005, 12:30:36 AM »
Great,

thatīs what I was searching !
I looked for registering them in global.php, but not suposed them to be in page_header !

Best regards,
Daniel