refactor: keep every text in one JSON file per language
- move the texts of each language into lang/<lang>.json and the shared data into site.json - replace the per-language HTML fragments with one template per page type in templates/pages - add templates/parts for the repeated service and person blocks - move the news posts to news/ - a language lists only the pages it has, so adding one is a single file - the generated pages are unchanged - update the README
This commit is contained in:
parent
b0c6706a90
commit
21103486f8
5 changed files with 683 additions and 712 deletions
23
lang/de.json
Normal file
23
lang/de.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"lang": "de",
|
||||
"lang_name": "Deutsch",
|
||||
"header": "header-min",
|
||||
"home_link": "/?lang=en",
|
||||
"sections": "Bereiche",
|
||||
"nojs": "Diese Seite verwendet kein JavaScript, keine Cookies und keine Tracker.",
|
||||
"back": "kmalloc.org",
|
||||
"version": "Version",
|
||||
"toc": "Inhalt",
|
||||
"nav": {
|
||||
"manifesto": "Manifest",
|
||||
"news": "News"
|
||||
},
|
||||
"pages": {
|
||||
"manifesto": {
|
||||
"path": "/de/manifesto.html",
|
||||
"title": "kmalloc.org: Manifest",
|
||||
"description": "Das Manifest von kmalloc.org: freie Software, Privatsphäre, ein offenes Internet, Würde bei der Arbeit.",
|
||||
"note": "Übersetzung der Version 1.0 nach den englischen und italienischen Texten."
|
||||
}
|
||||
}
|
||||
}
|
||||
110
lang/en.json
Normal file
110
lang/en.json
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"lang": "en",
|
||||
"lang_name": "English",
|
||||
"header": "header",
|
||||
"home_link": "/?lang=en",
|
||||
"sections": "Sections",
|
||||
"nojs": "This page uses no JavaScript, cookies or trackers.",
|
||||
"back": "home",
|
||||
"version": "Version",
|
||||
"toc": "Contents",
|
||||
"news_p": "Updates from kmalloc.org.",
|
||||
"news_all": "all news",
|
||||
"news_empty": "No news yet.",
|
||||
"nav": {
|
||||
"manifesto": "Manifesto",
|
||||
"people": "People",
|
||||
"services": "Services",
|
||||
"news": "News"
|
||||
},
|
||||
"pages": {
|
||||
"home": {
|
||||
"path": "/",
|
||||
"title": "kmalloc.org: Technology. Freedom. Dissent.",
|
||||
"description": "kmalloc.org is an independent hacker space that promotes free software, privacy and an open Internet.",
|
||||
"identity": "kmalloc.org is a hacker, antifascist, ethical space.",
|
||||
"intro": "kmalloc.org is an independent hacker space that promotes free software, privacy and an open Internet, defending freedom of thought, the dignity of work and the right of people not to be controlled, exploited or subordinated to arbitrary powers.",
|
||||
"manifesto_p": "What we believe, in twelve points and a few commitments:",
|
||||
"manifesto_a": "read the manifesto",
|
||||
"people_p": "Who is behind kmalloc.org:",
|
||||
"people_a": "meet the people",
|
||||
"services_p": "Run on our own server, with free software. Accounts are created by hand.",
|
||||
"services_a": "get an account",
|
||||
"services": {
|
||||
"git": "code hosting (Forgejo)",
|
||||
"social": "Mastodon, accounts on approval",
|
||||
"lists": "mailing lists (Mailman 3)",
|
||||
"chat": "XMPP, web client",
|
||||
"matrix": "Matrix, Element web client",
|
||||
"meet": "video conferences (Jitsi Meet)",
|
||||
"mail": "email on our own server"
|
||||
}
|
||||
},
|
||||
"manifesto": {
|
||||
"path": "/manifesto.html",
|
||||
"title": "kmalloc.org: Manifesto",
|
||||
"description": "The kmalloc.org manifesto: free software, privacy, an open Internet, dignity at work."
|
||||
},
|
||||
"people": {
|
||||
"path": "/people.html",
|
||||
"title": "kmalloc.org: People",
|
||||
"description": "The people behind kmalloc.org.",
|
||||
"intro": "Who is behind kmalloc.org.",
|
||||
"bios": {
|
||||
"squid": "I'm squid. I run kmalloc.org, write code and maintain the services on this site. I have been into computers since I was ten, when I got an IBM PS/2 with a 486DX and played Gorilla, a QBasic game: ever since, I have been taking things apart to understand how they work. Outside of work: retro computing, science fiction and extreme metal."
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"path": "/services.html",
|
||||
"title": "kmalloc.org: Services",
|
||||
"description": "The services run by kmalloc.org: email, git, Mastodon, XMPP, Matrix, mailing lists and video conferences. Free, by request.",
|
||||
"intro": "These services run on our own server, with free software, for people who want an alternative to the big platforms.",
|
||||
"account_h": "Get an account",
|
||||
"account_p1": "The services are free of charge. To ask for an account, write to",
|
||||
"at_hint": "replace (at) with @",
|
||||
"account_p2": "telling us which services you want and the username you would like.",
|
||||
"donate_h": "Support kmalloc.org",
|
||||
"donate_p": "Donations are welcome and help keep the server running. Bitcoin address:",
|
||||
"terms_h": "Good to know",
|
||||
"terms_p": "Everything is run by one person on one server, with nightly encrypted backups and no guarantees of availability. Be respectful: the manifesto explains what we stand for.",
|
||||
"open_a": "open",
|
||||
"items": {
|
||||
"mail": {
|
||||
"name": "Email",
|
||||
"text": "An address @kmalloc.org on our own mail server, with webmail and support for any standard mail client. IMAP: mail.kmalloc.org, port 993 (TLS). SMTP submission: mail.kmalloc.org, port 465 (TLS). Outgoing mail is signed with DKIM and protected by SPF and DMARC."
|
||||
},
|
||||
"lists": {
|
||||
"name": "Mailing lists",
|
||||
"text": "Mailing lists with web archives (Mailman 3). Lists live under @lists.kmalloc.org. If you need one, ask."
|
||||
},
|
||||
"git": {
|
||||
"name": "Git",
|
||||
"text": "Code hosting with Forgejo: repositories, issues and pull requests. Git over SSH uses port 2222. Reading public repositories needs no account."
|
||||
},
|
||||
"social": {
|
||||
"name": "Mastodon",
|
||||
"text": "A Mastodon server. Your address is @name@social.kmalloc.org. You can ask for an account on the site itself: requests are approved by hand."
|
||||
},
|
||||
"chat": {
|
||||
"name": "XMPP chat",
|
||||
"text": "Instant messaging with XMPP: address name@kmalloc.org, group rooms on conference.kmalloc.org, file sharing, and audio and video calls through our own TURN server. Use the web client or any XMPP app (server kmalloc.org, port 5222)."
|
||||
},
|
||||
"matrix": {
|
||||
"name": "Matrix",
|
||||
"text": "A Matrix homeserver: address @name:kmalloc.org. Use the Element web client or any Matrix app with homeserver matrix.kmalloc.org."
|
||||
},
|
||||
"meet": {
|
||||
"name": "Video conferences",
|
||||
"text": "Video conferences with Jitsi Meet. Anyone with the link can join a room; creating a room needs an account."
|
||||
}
|
||||
}
|
||||
},
|
||||
"news": {
|
||||
"path": "/news/",
|
||||
"title": "kmalloc.org: News",
|
||||
"description": "Updates from kmalloc.org.",
|
||||
"intro": "Updates from kmalloc.org.",
|
||||
"rss": "RSS feed"
|
||||
}
|
||||
}
|
||||
}
|
||||
23
lang/es.json
Normal file
23
lang/es.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"lang": "es",
|
||||
"lang_name": "Español",
|
||||
"header": "header-min",
|
||||
"home_link": "/?lang=en",
|
||||
"sections": "Secciones",
|
||||
"nojs": "Esta página no usa JavaScript, cookies ni rastreadores.",
|
||||
"back": "kmalloc.org",
|
||||
"version": "Versión",
|
||||
"toc": "Índice",
|
||||
"nav": {
|
||||
"manifesto": "Manifiesto",
|
||||
"news": "News"
|
||||
},
|
||||
"pages": {
|
||||
"manifesto": {
|
||||
"path": "/es/manifesto.html",
|
||||
"title": "kmalloc.org: Manifiesto",
|
||||
"description": "El manifiesto de kmalloc.org: software libre, privacidad, una Internet abierta, dignidad en el trabajo.",
|
||||
"note": "Traducción de la versión 1.0 a partir de los textos en inglés y en italiano."
|
||||
}
|
||||
}
|
||||
}
|
||||
23
lang/fr.json
Normal file
23
lang/fr.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"lang": "fr",
|
||||
"lang_name": "Français",
|
||||
"header": "header-min",
|
||||
"home_link": "/?lang=en",
|
||||
"sections": "Sections",
|
||||
"nojs": "Cette page n'utilise ni JavaScript, ni cookies, ni traceurs.",
|
||||
"back": "kmalloc.org",
|
||||
"version": "Version",
|
||||
"toc": "Sommaire",
|
||||
"nav": {
|
||||
"manifesto": "Manifeste",
|
||||
"news": "News"
|
||||
},
|
||||
"pages": {
|
||||
"manifesto": {
|
||||
"path": "/fr/manifesto.html",
|
||||
"title": "kmalloc.org: Manifeste",
|
||||
"description": "Le manifeste de kmalloc.org: logiciel libre, vie privée, un Internet ouvert, dignité au travail.",
|
||||
"note": "Traduction de la version 1.0 à partir des textes anglais et italien."
|
||||
}
|
||||
}
|
||||
}
|
||||
106
lang/it.json
Normal file
106
lang/it.json
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
{
|
||||
"lang": "it",
|
||||
"lang_name": "Italiano",
|
||||
"header": "header",
|
||||
"home_link": "/it/",
|
||||
"sections": "Sezioni",
|
||||
"nojs": "Questa pagina non usa JavaScript, cookie né tracker.",
|
||||
"back": "home",
|
||||
"version": "Versione",
|
||||
"toc": "Indice",
|
||||
"news_p": "Novità da kmalloc.org, scritte in inglese.",
|
||||
"news_all": "tutte le news",
|
||||
"news_empty": "Ancora nessuna news.",
|
||||
"nav": {
|
||||
"manifesto": "Manifesto",
|
||||
"people": "Persone",
|
||||
"services": "Servizi",
|
||||
"news": "News"
|
||||
},
|
||||
"pages": {
|
||||
"home": {
|
||||
"path": "/it/",
|
||||
"title": "kmalloc.org: Technology. Freedom. Dissent.",
|
||||
"description": "kmalloc.org è uno spazio hacker indipendente che promuove il software libero, la privacy e un Internet aperto.",
|
||||
"identity": "kmalloc.org è uno spazio hacker, antifascista, etico.",
|
||||
"intro": "kmalloc.org è uno spazio hacker indipendente che promuove il software libero, la privacy e un Internet aperto, difendendo la libertà di pensiero, la dignità del lavoro e il diritto delle persone a non essere controllate, sfruttate o subordinate a poteri arbitrari.",
|
||||
"manifesto_p": "Quello in cui crediamo, in dodici punti e qualche impegno:",
|
||||
"manifesto_a": "leggi il manifesto",
|
||||
"people_p": "Chi c'è dietro kmalloc.org:",
|
||||
"people_a": "conosci le persone",
|
||||
"services_p": "Girano sul nostro server, con software libero. Gli account si creano a mano.",
|
||||
"services_a": "richiedi un account",
|
||||
"services": {
|
||||
"git": "repository di codice (Forgejo)",
|
||||
"social": "Mastodon, account su approvazione",
|
||||
"lists": "liste di posta (Mailman 3)",
|
||||
"chat": "XMPP, client web",
|
||||
"matrix": "Matrix, client web Element",
|
||||
"meet": "videoconferenze (Jitsi Meet)",
|
||||
"mail": "posta sul nostro server"
|
||||
},
|
||||
"switch": {
|
||||
"en": "/?lang=en"
|
||||
}
|
||||
},
|
||||
"manifesto": {
|
||||
"path": "/it/manifesto.html",
|
||||
"title": "kmalloc.org: Manifesto",
|
||||
"description": "Il manifesto di kmalloc.org: software libero, privacy, un Internet aperto, dignità nel lavoro."
|
||||
},
|
||||
"people": {
|
||||
"path": "/it/persone.html",
|
||||
"title": "kmalloc.org: Persone",
|
||||
"description": "Le persone dietro kmalloc.org.",
|
||||
"intro": "Chi c'è dietro kmalloc.org.",
|
||||
"bios": {
|
||||
"squid": "Sono squid. Gestisco kmalloc.org, scrivo codice e mantengo i servizi di questo sito. Mi appassionano i computer da quando, a dieci anni, ebbi un IBM PS/2 con un 486DX e giocai a Gorilla, un gioco in QBasic: da allora smonto le cose per capire come funzionano. Fuori dal lavoro: retrocomputing, fantascienza ed extreme metal."
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"path": "/it/servizi.html",
|
||||
"title": "kmalloc.org: Servizi",
|
||||
"description": "I servizi di kmalloc.org: posta, git, Mastodon, XMPP, Matrix, liste di posta e videoconferenze. Gratuiti, su richiesta.",
|
||||
"intro": "Questi servizi girano sul nostro server, con software libero, per chi vuole un'alternativa alle grandi piattaforme.",
|
||||
"account_h": "Richiedi un account",
|
||||
"account_p1": "I servizi sono gratuiti. Per chiedere un account scrivi a",
|
||||
"at_hint": "sostituisci (at) con @",
|
||||
"account_p2": "indicando quali servizi vuoi e il nome utente che preferisci.",
|
||||
"donate_h": "Sostieni kmalloc.org",
|
||||
"donate_p": "Le donazioni sono benvenute e aiutano a tenere acceso il server. Indirizzo Bitcoin:",
|
||||
"terms_h": "Da sapere",
|
||||
"terms_p": "Tutto è gestito da una persona su un solo server, con backup notturni cifrati e nessuna garanzia di disponibilità. Siate rispettosi: il manifesto spiega in cosa crediamo.",
|
||||
"open_a": "apri",
|
||||
"items": {
|
||||
"mail": {
|
||||
"name": "Email",
|
||||
"text": "Un indirizzo @kmalloc.org sul nostro server di posta, con webmail e supporto per qualsiasi client di posta standard. IMAP: mail.kmalloc.org, porta 993 (TLS). Invio SMTP: mail.kmalloc.org, porta 465 (TLS). La posta in uscita è firmata con DKIM e protetta da SPF e DMARC."
|
||||
},
|
||||
"lists": {
|
||||
"name": "Mailing lists",
|
||||
"text": "Liste di posta con archivi consultabili sul web (Mailman 3). Le liste stanno sotto @lists.kmalloc.org. Se te ne serve una, chiedila."
|
||||
},
|
||||
"git": {
|
||||
"name": "Git",
|
||||
"text": "Hosting di codice con Forgejo: repository, issue e pull request. Git via SSH usa la porta 2222. Per leggere i repository pubblici non serve un account."
|
||||
},
|
||||
"social": {
|
||||
"name": "Mastodon",
|
||||
"text": "Un server Mastodon. Il tuo indirizzo è @nome@social.kmalloc.org. L'account si può chiedere direttamente sul sito: le richieste si approvano a mano."
|
||||
},
|
||||
"chat": {
|
||||
"name": "XMPP chat",
|
||||
"text": "Messaggistica con XMPP: indirizzo nome@kmalloc.org, stanze di gruppo su conference.kmalloc.org, condivisione di file e chiamate audio e video con un nostro server TURN. Usa il client web o qualsiasi app XMPP (server kmalloc.org, porta 5222)."
|
||||
},
|
||||
"matrix": {
|
||||
"name": "Matrix",
|
||||
"text": "Un homeserver Matrix: indirizzo @nome:kmalloc.org. Usa il client web Element o qualsiasi app Matrix con homeserver matrix.kmalloc.org."
|
||||
},
|
||||
"meet": {
|
||||
"name": "Video conferences",
|
||||
"text": "Videoconferenze con Jitsi Meet. Chiunque abbia il link può entrare in una stanza; per crearne una serve un account."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue