Jump to content

Change header depending on the language


raggsie

Recommended Posts

Hi,

I have been looking everywhere for an answer and have tried so many things, but I just can get this working (There might even be a totally better way of doing this)

 

I am using WHMCS in Spanish and English (Spanish being the default language)

 

So in the header I want to say:

If the language is English - include header.php

else echo headeres.php

 

<?php
if ($language==English) {
 include 'header.php';
} else {
include 'headeres.php';
}
?>

 

But this is not working, just goes straight to the spanish (headeres.php)

 

I would really appreciate some help.

Thanks in advance

Rache

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated