diff --git a/index.php b/index.php
index b351ed03..74cd756b 100644
--- a/index.php
+++ b/index.php
@@ -17,6 +17,10 @@ elseif (isset($config['categoriesDir'])) {
   }
 }
 
+if (isset($_GET['lang'])) {
+  $_SESSION['ui_lang'] = $_GET['lang'];
+}
+
 if (sizeof($_GET)) {
   Header('Location: .#' . http_build_query($_GET));
   exit(0);