regions - New starter: dual language site development with php -


I am new to using php (and as long as I coded it ...) but by the way Also, I want to create a website that uses two languages, I am reading on Google's best practices (), but I have not found anything that can help me with real development.

This site will contain at least 30 pages and should be compatible with all major browsers.

Really appreciate some advice on this. At the moment I do not have to make any page for every language (because Lang = 'does not look compatible with all browsers), or to hide and show on page load or dynamically load content with PHP. .. what is the best practice?

Sorry if this is a little normal ...

Thanks in advance!

Create a page for each language

This is sensible

(because long = '' does not appear compatible with all browsers),

Which language is usually the browser's care? There is no need to be written in the page. They need to display the content to the user, it does not matter.

Some screen readers can see Lang as to which guide to use, but some other tools are used directly by human beings.

Language Character encoding can affect the effect (although in most cases the answer is "Use UTF-8 only"), but this long feature is freely specified.

or hide and show the device on page load

It looks like you have a page that jumps between languages, as long as Until Javascript is not available, some of it will hide from it. I will not do this. There are sensible documents.

or dynamically load content with php

Dynamically generating content server side creates pages from one to multiple languages One way is that it is still wiser to give them an independent URI so that users can link to specific people.


Comments