Jump to content

Problem with language in a php page of my website


isabelita

Recommended Posts

I am helping a friend to fix their website and I dont have too much experience with php.

I have noticed a problem with the language on one of the pages

 

http://www.fincalavicaria.com/alameda.php

 

When the page loads the Servicios shows in Spanish, which is correct

however, if you click on the Servicios link it changes to the English version in the Spanish vesrion. This should only be available after you have changed the language for the site to english at the top

As I dont have too much experience I would be grateful if someone could tell me what would be causing this to happen. It should be something very easy to fix but no matter what I try I can't find the problem.

 

Thank you.

Link to comment
Share on other sites

in the line where "SERVICIOS" is the code have this

onclick="texto(2)"

 

the function texto() is defined accepting 2 parameters... one is the id and the other is the value of lang... in this case the second parameter has not been passed....

 

in others part of your code this same call reads

onclick="texto(2, 'es')

 

hope this help

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.