0

how should I set the locale in my site? I mean, in a test for websites it says I'm not setting the language..

I tried with html this way:

<meta http-equiv="content-language" content="es">

but someone said is not the way, even the test still says the language was not set

tirenweb
  • 30,963
  • 73
  • 183
  • 303
  • use In w3c Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead. – Tamil Selvan C May 22 '13 at 18:07

2 Answers2

2

Specify it in the HTML tag like this:

<html lang="es">

More information here.

sPaul
  • 469
  • 1
  • 4
  • 20
0

If you want multilingual web site. Then you need Create a string array with values. And load by language prefix. When spanish You will load string es.php when english you will load string file en.php.

iProgrammer
  • 107
  • 1
  • 12