Compare commits
No commits in common. "main" and "0.3" have entirely different histories.
159
lang/eo.lua
159
lang/eo.lua
|
@ -1,159 +0,0 @@
|
||||||
local eo = {}
|
|
||||||
|
|
||||||
-- Templates
|
|
||||||
eo.tpl_vars = {
|
|
||||||
post = {
|
|
||||||
author = "{{ aŭtoro }}",
|
|
||||||
content = "{{ entenaĵo }}",
|
|
||||||
date = "{{ dato }}",
|
|
||||||
summary = "{{ resumo }}",
|
|
||||||
-- This is not used in the templates yet.
|
|
||||||
tags = "{{ markoj }}",
|
|
||||||
title = "{{ titolo }}",
|
|
||||||
-- unuforma risurca lokindiko
|
|
||||||
url = "{{ url }}",
|
|
||||||
},
|
|
||||||
feed = {
|
|
||||||
date = "{{ dato }}",
|
|
||||||
url = "{{ XML-fluo_url }}",
|
|
||||||
},
|
|
||||||
index = {
|
|
||||||
posts = "{{ afiŝejo }}",
|
|
||||||
},
|
|
||||||
log = {
|
|
||||||
author = "{{ aŭtoro }}",
|
|
||||||
subtitle = "{{ subtitolo }}",
|
|
||||||
title = "{{ titolo }}",
|
|
||||||
url = "{{ protokolo_url }}",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
eo.atom_header = [[<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
||||||
<title>{{ titolo }}</title>
|
|
||||||
<subtitle>{{ subtitolo }}</subtitle>
|
|
||||||
<updated>{{ dato }}</updated>
|
|
||||||
<author>
|
|
||||||
<name>{{ aŭtoro }}</name>
|
|
||||||
</author>
|
|
||||||
<id>{{ XML-fluo_url }}</id>
|
|
||||||
<link href="{{ protokolo_url }}" rel="alternate"/>
|
|
||||||
<link href="{{ XML-fluo_url }}" rel="self" type="application/atom+xml"/>
|
|
||||||
]]
|
|
||||||
|
|
||||||
eo.atom_entry = [[
|
|
||||||
<entry>
|
|
||||||
<id>{{ url }}</id>
|
|
||||||
<title>
|
|
||||||
<![CDATA[{{ titolo }}]] .. "]]>" .. [[
|
|
||||||
|
|
||||||
</title>
|
|
||||||
<updated>{{ dato }}</updated>
|
|
||||||
<author>
|
|
||||||
<name>{{ aŭtoro }}</name>
|
|
||||||
</author>
|
|
||||||
<link href="{{ url }}" rel="alternate"/>
|
|
||||||
<summary>
|
|
||||||
<![CDATA[{{ resumo }}]] .. "]]>" .. [[
|
|
||||||
|
|
||||||
</summary>
|
|
||||||
<content>
|
|
||||||
<![CDATA[{{ entenaĵo }}]] .. "]]>" .. [[
|
|
||||||
|
|
||||||
</content>
|
|
||||||
</entry>
|
|
||||||
]]
|
|
||||||
|
|
||||||
eo.atom_footer = [[</feed>]]
|
|
||||||
|
|
||||||
eo.post = [[---
|
|
||||||
date: {{ dato }}
|
|
||||||
---
|
|
||||||
|
|
||||||
# {{ titolo }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Ligiloj
|
|
||||||
|
|
||||||
=> gemini:// ligilo
|
|
||||||
=> gemini:// ligilo (bildo)
|
|
||||||
=> https:// ligilo (https)]]
|
|
||||||
|
|
||||||
eo.index = [[
|
|
||||||
# {{ titolo }}
|
|
||||||
{{ afiŝejo }}
|
|
||||||
]]
|
|
||||||
|
|
||||||
eo.page = [[
|
|
||||||
# {{ titolo }}
|
|
||||||
|
|
||||||
## supra paĝotitolo 2
|
|
||||||
### supra paĝotitolo 3
|
|
||||||
|
|
||||||
Tabelo:
|
|
||||||
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
|
|
||||||
```
|
|
||||||
antaŭformatita teksto
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Ligiloj
|
|
||||||
|
|
||||||
=> gemini:// ligilo
|
|
||||||
=> gemini:// ligilo (bildo)
|
|
||||||
=> https:// ligilo (https)]]
|
|
||||||
|
|
||||||
|
|
||||||
eo.msgs = {}
|
|
||||||
|
|
||||||
-- %s: gemtext filename
|
|
||||||
eo.msgs.add_gemtext = "Kreita %s."
|
|
||||||
|
|
||||||
-- %s: app executable name
|
|
||||||
eo.msgs.help_usage = [[%s [opcioj] [kapsulo] [titolo]
|
|
||||||
|
|
||||||
]]
|
|
||||||
|
|
||||||
-- %s: command-line options
|
|
||||||
-- (see env.lua env.cli_opts for the full list)
|
|
||||||
eo.msgs.help_opts = [[
|
|
||||||
Opcioj:
|
|
||||||
|
|
||||||
%s [lang] Generi agordan dosierujon
|
|
||||||
%s [kapsulo] [titolo] Aldonu novan paĝon kun la donita titolo
|
|
||||||
%s [kapsulo] [titolo] Aldonu novan gemlog-afiŝon kun la donita titolo
|
|
||||||
%s Generu indeksan paĝon kaj fonton de afiŝoj
|
|
||||||
%s Indeksu kaj kopiu afiŝojn malproksime uzante scp
|
|
||||||
|
|
||||||
%s Helpema helpo estas helpema
|
|
||||||
%s Presaĵversio-informoj
|
|
||||||
]]
|
|
||||||
|
|
||||||
-- %s: list of language codes
|
|
||||||
eo.msgs.help_lang_opts = [[
|
|
||||||
|
|
||||||
Agordu lingvo-opciojn:
|
|
||||||
|
|
||||||
%s]]
|
|
||||||
|
|
||||||
eo.msgs.index = "Kreita indeksa paĝo kaj feed"
|
|
||||||
|
|
||||||
-- %s: config directory path
|
|
||||||
eo.msgs.load_config = [[Kreis agordosierojn. Bonvolu redakti ilin per la ĝustaj
|
|
||||||
detaloj antaŭ ol daŭrigi. La agordosieroj troveblas ĉe:
|
|
||||||
%s]]
|
|
||||||
|
|
||||||
eo.msgs.publish = "Eldonita kapsulo."
|
|
||||||
|
|
||||||
|
|
||||||
eo.errs = {
|
|
||||||
invalid_cap_id = "Eraro: nekonata kapsula id.",
|
|
||||||
}
|
|
||||||
|
|
||||||
return eo
|
|
|
@ -6,7 +6,7 @@ A little command-line helper for publishing [Gemini] sites or "capsules".
|
||||||
```
|
```
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
config [lang] Generate a config directory
|
config Generate a config directory
|
||||||
page [capsule] [title] Add a new page with the given title
|
page [capsule] [title] Add a new page with the given title
|
||||||
post [capsule] [title] Add a new gemlog post with the given title
|
post [capsule] [title] Add a new gemlog post with the given title
|
||||||
index Generate an index page and feed of posts
|
index Generate an index page and feed of posts
|
||||||
|
@ -60,7 +60,6 @@ version Print version info
|
||||||
Special thanks to the following contributors:
|
Special thanks to the following contributors:
|
||||||
|
|
||||||
- [lucidiot](https://tilde.town/~lucidiot/) — French translation
|
- [lucidiot](https://tilde.town/~lucidiot/) — French translation
|
||||||
- [wsinatra](http://lambdacreate.com/) — Esperanto translation
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
@ -28,7 +28,11 @@ end
|
||||||
function util.extract_str(full_str, find_str, end_str)
|
function util.extract_str(full_str, find_str, end_str)
|
||||||
local fi1, fi2 = string.find(full_str, find_str, 1)
|
local fi1, fi2 = string.find(full_str, find_str, 1)
|
||||||
local ei1, ei2 = string.find(full_str, end_str, fi2)
|
local ei1, ei2 = string.find(full_str, end_str, fi2)
|
||||||
return string.sub(full_str, fi2 + 1, ei1 - 1)
|
if end_str == "\n" then
|
||||||
|
return string.sub(full_str, fi2 + 1, ei1 - 2)
|
||||||
|
else
|
||||||
|
return string.sub(full_str, fi2 + 1, ei1 - 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue