Hello All – I’m beginning to step into projects that require the display of various languages.
So far, to accommodate this, I’ve got the http-equiv meta tag set to:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
But what about the language attributes of the DOCTYPE? Previously – before the possibility of multi-language projects, it was set as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Now that I’m going to have to be dealing with Japanese and German text, should these be dynamically altered depending upon the langugage chosen?
I.e.: xml:lang="ja" lang="ja" if the site language is Japanese, or xml:lang="de" lang="de" if the site language is German?
All insight greatly appreciated!
Neophyte