From 5ffa0ad4d3fc8df1ba9ff170ba6c82644d51d802 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Tue, 24 Mar 2020 12:58:43 +0100 Subject: [PATCH] Get language selector working. The chosen language got lost (reset to "en") after following the next link, as the language field wasn't part of those links. Now we choose the language in three steps: If "language" ist set (after using the language selector form), we use that. If it isn't set but a plugin group was chosen, we take the right language from the filename of that page. Only if neither is set we fall back to english. Moreover we keep the current language "selected" in the language selector dropdown. Signed-off-by: Thomas Hochstein --- homepage/index.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/homepage/index.php b/homepage/index.php index 2ed19345..fad9a80d 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -1,17 +1,24 @@ 'Tamil'); foreach($lang as $l => $d) { ?> - +