add support for swedish and italian languages
Modified: trunk/web/reactos.org/htdocs/roscms/index.php

Modified: trunk/web/reactos.org/htdocs/roscms/index.php
--- trunk/web/reactos.org/htdocs/roscms/index.php	2006-01-08 21:26:34 UTC (rev 20733)
+++ trunk/web/reactos.org/htdocs/roscms/index.php	2006-01-08 21:32:30 UTC (rev 20734)
@@ -126,6 +126,8 @@
 		case 'fr':
 		case 'ru':
 		case 'es':
+		case 'sv':
+		case 'it':
 			break;
 		default:
 			$checked_lang = '';
@@ -228,6 +230,24 @@
 					$rpm_lang_session="ru/";
 					$rpm_lang="ru";
 				}
+				$var = "";
+				$var = strchr($roscms_referrer, "/es/");				
+				if ($var != "" AND $rpm_lang == "") {
+					$rpm_lang_session="es/";
+					$rpm_lang="ru";
+				}
+				$var = "";
+				$var = strchr($roscms_referrer, "/sv/");				
+				if ($var != "" AND $rpm_lang == "") {
+					$rpm_lang_session="sv/";
+					$rpm_lang="ru";
+				}
+				$var = "";
+				$var = strchr($roscms_referrer, "/it/");				
+				if ($var != "" AND $rpm_lang == "") {
+					$rpm_lang_session="it/";
+					$rpm_lang="ru";
+				}
 				if ($rpm_lang == "") {
 					$rpm_lang_session="en/";
 					$rpm_lang="en";