From f47f31cf14f92824d169df47aa6cf1f3a71d4d69 Mon Sep 17 00:00:00 2001 From: mio Date: Tue, 9 Aug 2022 04:13:37 +0000 Subject: [PATCH] Add Esperanto translation (thanks wsinatra) --- lang/eo.lua | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++ readme.md | 3 +- 2 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 lang/eo.lua diff --git a/lang/eo.lua b/lang/eo.lua new file mode 100644 index 0000000..18dbfb8 --- /dev/null +++ b/lang/eo.lua @@ -0,0 +1,159 @@ +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 = [[ + + {{ titolo }} + {{ subtitolo }} + {{ dato }} + + {{ aŭtoro }} + + {{ XML-fluo_url }} + + +]] + +eo.atom_entry = [[ + + {{ url }} + + <![CDATA[{{ titolo }}]] .. "]]>" .. [[ + + + {{ dato }} + + {{ aŭtoro }} + + + + " .. [[ + + + + " .. [[ + + + +]] + +eo.atom_footer = [[]] + +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 diff --git a/readme.md b/readme.md index 7de3296..275adf3 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ A little command-line helper for publishing [Gemini] sites or "capsules". ``` Options: -config Generate a config directory +config [lang] Generate a config directory page [capsule] [title] Add a new page 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 @@ -60,6 +60,7 @@ version Print version info Special thanks to the following contributors: - [lucidiot](https://tilde.town/~lucidiot/) — French translation +- [wsinatra](http://lambdacreate.com/) — Esperanto translation ## License