Blame html/centos-indexhtml/index.html

d428ee
d428ee
<html>
d428ee
<head>
d428ee
<title>Apache HTTP Server Test Page powered by CentOS</title>
d428ee
<body>
d428ee
<script type="text/javascript">
d428ee
	var lang = navigator.language;
d428ee
	var match = 0;
6cf361
	var locales = ["es-ES"];
d428ee
d428ee
// Try for full match of lang_LOC
d428ee
	for(locale in locales)
d428ee
	{
d428ee
		if(lang == locales[locale])
d428ee
		{
d428ee
			match = 1;
d428ee
			break;
d428ee
		}
d428ee
	}
d428ee
d428ee
	// Else try for match of lang
d428ee
	if(match == 0)
d428ee
	{
d428ee
		for(locale in locales)
d428ee
		{
d428ee
			var loc_lang = locales[locale].substring(0,2);
d428ee
			var language = lang.substring(0,2);
d428ee
d428ee
			if(loc_lang == language)
d428ee
			{
d428ee
				lang = locales[locale];
d428ee
				match = 1;
d428ee
				break;
d428ee
			}
d428ee
		}
d428ee
	}
d428ee
d428ee
	// Else default to en-US
d428ee
	if(match == 0)
d428ee
	{
6cf361
		lang = 'en-US';
d428ee
	}
d428ee
d428ee
	window.location = lang + "/index.html";
d428ee
</script>
d428ee
</body>
d428ee
</html>