Jump to content

Url Linking in Multi-language PHP site


whitedragon

Recommended Posts

Hi,

 

I'm a newbie with php.  I know it is possible to set multi-languages for a php site, but is linking to a specific page with a specific set language within a website possible?  The homepage has a set default language and the other languages are set by users clicking on the language after the homepage with the default language is accessed.

 

 

Thanks.

Link to comment
Share on other sites

Yes, this is perfectly possible.

 

By default your URL will look like (and all translations will translate to this one):

 

http://www.domain.top/my/page

 

Your database provides translations for my & page for other languages, so in Dutch I would be able to access your page like:

 

http://www.domain.top/mijn/pagina

 

Or in French:

 

http://www.domain.top/mon/page

 

Based on the locale (fr_FR, nl_BE) you would translate everything after domain.top to your default language (hence the word translation).

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.