Add localization for english text on LibreY

This commit is contained in:
davidovski
2023-10-25 03:57:50 +01:00
parent 217601aa49
commit ae92ec2b0a
15 changed files with 118 additions and 41 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
<?php require "locale/localization.php"; ?>
<!DOCTYPE html >
<html lang="en">
<head>
@@ -6,7 +7,7 @@
<meta name="description" content="A privacy respecting meta search engine."/>
<meta name="referrer" content="no-referrer"/>
<link rel="stylesheet" type="text/css" href="static/css/styles.css"/>
<link title="LibreY search" type="application/opensearchdescription+xml" href="opensearch.xml?method=POST" rel="search"/>
<link title="<?php printtext("page_title"); ?>" type="application/opensearchdescription+xml" href="opensearch.xml?method=POST" rel="search"/>
<link rel="stylesheet" type="text/css" href="<?php
$theme = $_REQUEST["theme"] ?? trim(htmlspecialchars($_COOKIE["theme"] ?? "dark"));
echo "static/css/" . $theme . ".css";