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

add translation
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 02 May 2025 17:17:52 -0600
parents 981e744abff1
children
line wrap: on
line diff
--- a/src/nginx.html.luan	Wed Apr 23 20:10:03 2025 -0600
+++ b/src/nginx.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 existing_header = Shared.existing_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 - Nginx</title>
@@ -21,7 +23,7 @@
 		<div content>
 			<h1>Nginx</h1>
 
-			<p>As a disclaimer, I haven't worked with <a href="https://nginx.org/en/">Nginx</a> directly.  My sysadmin manages it.  But I believe that it is good reactionary software.  Nginx works reliably.  It doesn't seem to be based on any senseless modern ideology.  Its developers are from Russia, outside of the depraved West.  And most tellingly, its <a href="http://hg.nginx.org/nginx/">source code</a> is on <a href="/mercurial.html">Mercurial</a>.</p>
+			<p>As a disclaimer, I haven't worked with <a href="https://nginx.org/en/">Nginx</a> directly.  My sysadmin manages it.  But I believe that it is good reactionary software.  Nginx works reliably.  It doesn't seem to be based on any senseless modern ideology.  Its developers are from Russia, outside of the depraved West.  And most tellingly, its <a href="http://hg.nginx.org/nginx/">source code</a> is on <a href="mercurial.html">Mercurial</a>.</p>
 		</div>
 	</body>
 </html>