Mercurial Hosting > reactionary
diff src/learn.html.luan @ 91:76baf48ea36b
add translation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 May 2025 17:17:52 -0600 |
parents | 0dced626778b |
children |
line wrap: on
line diff
--- a/src/learn.html.luan Wed Apr 23 20:10:03 2025 -0600 +++ b/src/learn.html.luan Fri May 02 17:17:52 2025 -0600 @@ -2,10 +2,13 @@ local error = Luan.error local pairs = Luan.pairs or 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() +local luan_url = Shared.luan_url or error() local content = { @@ -189,7 +192,7 @@ title = [[Java 8]] content = function() %> -<p><a href="/java.html">Java</a> is not an easy language to learn and if you later use Python or Luan then you won't use Java much. So why learn it first? Because it will give you a core understanding of programming. Also, ChatGPT understands Java very well, so this can help you learn it. And lastly because Java will help you understand Luan.</p> +<p><a href="java.html">Java</a> is not an easy language to learn and if you later use Python or Luan then you won't use Java much. So why learn it first? Because it will give you a core understanding of programming. Also, ChatGPT understands Java very well, so this can help you learn it. And lastly because Java will help you understand Luan.</p> <p>To learn Java, you will need the following resources:</p> <ul> @@ -228,7 +231,7 @@ title = [[Luan]] content = function() %> -<p>See <a href="https://www.luan.software/learn.html">Learning Luan</a>.</p> +<p>See <a href="<%=luan_url()%>/learn.html">Learning Luan</a>.</p> <% end } @@ -327,10 +330,10 @@ end return function() - Io.stdout = Http.response.text_writer() + Io.stdout = text_writer() %> <!doctype html> -<html> +<html lang="<%=get_lang()%>"> <head> <% head() %> <title>Learn Reactionary Programming</title>