diff src/index.html.luan @ 91:76baf48ea36b

add translation
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 02 May 2025 17:17:52 -0600
parents 20e080f6d217
children
line wrap: on
line diff
--- a/src/index.html.luan	Wed Apr 23 20:10:03 2025 -0600
+++ b/src/index.html.luan	Fri May 02 17:17:52 2025 -0600
@@ -1,17 +1,19 @@
 local Luan = require "luan:Luan.luan"
 local error = Luan.error
 local Io = require "luan:Io.luan"
-local Http = require "luan:http/Http.luan"
+local Site_translator = require "luan:gpt/Site_translator.luan"
+local get_lang = Site_translator.get_lang or error()
+local text_writer = Site_translator.text_writer or error()
 local Shared = require "site:/lib/Shared.luan"
 local head = Shared.head or error()
 local header = Shared.header or error()
 
 
 return function()
-	Io.stdout = Http.response.text_writer()
+	Io.stdout = text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="<%=get_lang()%>">
 	<head>
 <%		head() %>
 		<title>Reactionary Software</title>
@@ -31,13 +33,13 @@
 			<h3>Make software great again!</h3>
 			<p>For programmers who hate modern software.  Modern software is overcomplicated, bloated, unreliable, incomprehensible, pointlessly ideological, and mostly unusable.  We like the values of older software: simplicity, reliability, and usability.</p>
 			<ul links>
-				<li><a href="/about.html">About Reactionary Software</a></li>
-				<li><a href="/existing.html">Existing Reactionary Software</a></li>
-				<li><a href="/needed.html">Needed Reactionary Software</a></li>
-				<li><a href="/learn.html">Learn Reactionary Programming</a></li>
-				<li><a href="/books.html">Reactionary Programming Books</a></li>
-				<li><a href="/saving.html">Saving Programming from Modern Culture</a></li>
-				<li><a href="/discussion.html">Discussion</a></li>
+				<li><a href="about.html">About Reactionary Software</a></li>
+				<li><a href="existing.html">Existing Reactionary Software</a></li>
+				<li><a href="needed.html">Needed Reactionary Software</a></li>
+				<li><a href="learn.html">Learn Reactionary Programming</a></li>
+				<li><a href="books.html">Reactionary Programming Books</a></li>
+				<li><a href="saving.html">Saving Programming from Modern Culture</a></li>
+				<li><a href="discussion.html">Discussion</a></li>
 			</ul>
 		</div>
 	</body>