NEW - bug 210: Babel or Babel-like Community Internationalization
https://foundation.eclipse.org/infrazilla/show_bug.cgi?id=210
diff --git a/html/callback/setCurrentProject.php b/html/callback/setCurrentProject.php
new file mode 100644
index 0000000..d133415
--- /dev/null
+++ b/html/callback/setCurrentProject.php
@@ -0,0 +1,36 @@
+<?php
+/*******************************************************************************
+ * Copyright (c) 2007 Eclipse Foundation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Paul Colton (Aptana)- initial API and implementation
+ *    Eclipse Foundation
+*******************************************************************************/
+
+
+if(defined(BABEL_BASE_DIR)){
+	require_once(BABEL_BASE_DIR."html/global.php");
+}else{
+	require_once("../global.php");
+}
+
+InitPage("login");
+
+$language_post = $App->getHTTPParameter("proj", "POST");
+
+if($language_post){
+	$lang = explode("=",$language_post);
+	if($lang[1]){
+		# TODO check database before setting to make sure input is valid choice
+		$_SESSION['project'] = $lang[1];
+		print $lang[1];
+	}else{
+		echo "bad";
+	}
+}
+
+?>
\ No newline at end of file