How to use two headers - English and Spanish?

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
aespinal
Posts: 4
Joined: Fri Jul 02, 2010 3:19 pm

How to use two headers - English and Spanish?

Post by aespinal »

/*************************************
Title:Hesk Help Desk
Version: 2.2
Author:
Demo:
Download:
Website: http://www.support.itswebsites.com

Short description:


*************************************/

In previous versions, I had two different headers (one English, one Spanish).
header-esp.html
header-eng.html

Now, one version controls both languages.

For Spanish, I am including the header this way:
nclude_once('header-esp.html');

How I do to display the English header when in English language?
header-eng.html

The site:
http://www.support.itswebsites.com

Thanks in advance.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Something like

Code: Select all

if ($hesk_settings['language'] == 'English')
{
    include('english_header');
}
else
{
    include('spanish_header');
}
For this to work you need to call it after the

Code: Select all

require(HESK_PATH . 'inc/common.inc.php');
code.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
aespinal
Posts: 4
Joined: Fri Jul 02, 2010 3:19 pm

You are great! Thanks

Post by aespinal »

You are great! Thanks a lot. It worked fine.
Post Reply