Mercurial Hosting > reactionary
diff src/freedit.html.luan @ 91:76baf48ea36b
add translation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 May 2025 17:17:52 -0600 |
parents | 8bd99d5f468e |
children |
line wrap: on
line diff
--- a/src/freedit.html.luan Wed Apr 23 20:10:03 2025 -0600 +++ b/src/freedit.html.luan Fri May 02 17:17:52 2025 -0600 @@ -1,17 +1,21 @@ 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 needed_header = Shared.needed_header or error() +local luan_url = Shared.luan_url or error() return function() - Io.stdout = Http.response.text_writer() + local luan_url = luan_url() + Io.stdout = text_writer() %> <!doctype html> -<html> +<html lang="<%=get_lang()%>"> <head> <% head() %> <title>FreedIt - A Reddit Alternative</title> @@ -47,7 +51,7 @@ <h3>Attempt 1 - Blasma</h3> - <p>I wrote a page describing my original thoughts on <a href="https://www.luan.software/blasma.html">Blasma</a> and later posted <a href="https://saidit.net/s/PhoenixForum/comments/7i60/my_vision_for_social_forums/">my updated thoughts</a> on SaidIt. The basic idea was to have a distributed <a href="https://www.luan.software/">Luan</a> program with a flexible architecture that allows adding modules and having different views/templates. At one point I even offered to pay for someone to do this. I never got any volunteers, so this died.</p> + <p>I wrote a page describing my original thoughts on <a href="<%=luan_url%>/blasma.html">Blasma</a> and later posted <a href="https://saidit.net/s/PhoenixForum/comments/7i60/my_vision_for_social_forums/">my updated thoughts</a> on SaidIt. The basic idea was to have a distributed <a href="<%=luan_url%>/">Luan</a> program with a flexible architecture that allows adding modules and having different views/templates. At one point I even offered to pay for someone to do this. I never got any volunteers, so this died.</p> <h3>Attempt 2 - SaidIt clone</h3>