Jump to content

changing the language of the links (english-spanish)


fallen_angel21

Recommended Posts

I'm creating a site right now wherein the user has an option what language the user wants to use in browing the site.... either english or spanish...

 

now the problem is I have to change the links too right? is there a way where in I could do that except from using a condition statement? cause look, it's like having around 50 links and if I'm gonna use a condition, then the code will be too confusing...

Link to comment
Share on other sites

It depends how you store each version {english, spanish} of the content of the site.  If the content is stored in a database with 2 columns, one for eng, one for span, then you may want to follow suite with the links.

 

It really depends how your site is deployed, and what needs to be translated.  Some people simply copy the site once complete and add it to a directory off the main site and translate it.

 

ie:  yoursite.com

    yoursite.com/es  <-- contains main site, but then everything is translated.

 

Depends mainly on how often your content is updated!

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.