Jump to content


Multi-Language-PHP only

  • Please log in to reply
1 reply to this topic

#1 hgtwn

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 July 2006 - 12:48 PM

I posted this message in another catagegory but I think it was the wrong place, so i'm putting it here....

I am creating a multilanguage site and need some feedback from you all.  What I started creating is a site that uses the same page for each language but calls it's respective language file (ie. en.php).  Depending on what language is selected (www.site.com/page.php?lang=en) the respective language file will be called by include('/en.php');  Is this a good way to handle multiple languages?  I want to stay away from databases and this was my solution.  My concern is that I don't know how search engines like Google or Yahoo handle searching pages like this.  I want all of my languages to be included in the search but does Google search www.site.com/index.php?lang=en and www.site.com/index.php?lang=spanish separately?  I want to be able to search my Spanish terms and go to the right page with the right $lang var set.  Is this what happens?  Thanks

#2 pixy

  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 29 July 2006 - 11:51 PM

You could just put each different language in a folder like so:


and on the main website.com allow them to choose a language. That way they will index the main page where you choose the language thus allowing whoever finds your website the option of changing the language.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users