From e356ae921226497348447931c955f57ab265f143 Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Sat, 10 Jun 2023 07:27:39 +0000 Subject: [PATCH] Enable Italian Translation (#2184) Signed-off-by: Jonah Aragon --- config/mkdocs.common.yml | 4 + config/mkdocs.en.yml | 2 +- config/mkdocs.es.yml | 2 +- config/mkdocs.it.yml | 160 +++++++++++++++++++++++++++++++++++++++ config/mkdocs.nl.yml | 2 +- netlify.toml | 7 +- static/_redirects | 1 + theme/schema.html | 23 ------ 8 files changed, 174 insertions(+), 27 deletions(-) create mode 100644 config/mkdocs.it.yml delete mode 100644 theme/schema.html diff --git a/config/mkdocs.common.yml b/config/mkdocs.common.yml index 6a3ce8bb..51c646fe 100644 --- a/config/mkdocs.common.yml +++ b/config/mkdocs.common.yml @@ -50,6 +50,10 @@ extra: link: /he/ lang: he icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1ee-1f1f1.svg + - name: Italian + link: /it/ + lang: it + icon: https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f1ee-1f1ea.svg - name: Nederlands link: /nl/ lang: nl diff --git a/config/mkdocs.en.yml b/config/mkdocs.en.yml index 6e291091..68c57612 100644 --- a/config/mkdocs.en.yml +++ b/config/mkdocs.en.yml @@ -53,7 +53,7 @@ extra: theme: language: en - # this logo needs to be set separately because the relative path is different + # ENGLISH ONLY: this logo needs to be set separately because the relative path is different logo: ../theme/assets/brand/SVG/Logo/privacy-guides-logo-notext-colorbg.svg font: text: Public Sans diff --git a/config/mkdocs.es.yml b/config/mkdocs.es.yml index 3f5fee08..451dcb57 100644 --- a/config/mkdocs.es.yml +++ b/config/mkdocs.es.yml @@ -32,7 +32,7 @@ copyright: | © 2019 - 2023 Privacy Guides y colaboradores. Contenido bajo licencia CC BY-ND 4.0. -edit_uri: edit/main/docs/ +edit_uri: edit/main/i18n/es/ extra: generator: false diff --git a/config/mkdocs.it.yml b/config/mkdocs.it.yml new file mode 100644 index 00000000..f0c149cb --- /dev/null +++ b/config/mkdocs.it.yml @@ -0,0 +1,160 @@ +# Copyright (c) 2022-2023 Jonah Aragon + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +INHERIT: mkdocs.common.yml +docs_dir: '../i18n/it' +site_url: "https://www.privacyguides.org/it/" +site_dir: '../site/it' + +site_name: Privacy Guides +site_description: | + Privacy Guides è la risorsa centrale per la privacy e la sicurezza per proteggersi online. +copyright: | + Privacy Guides è un sito web senza fini di lucro e a sfondo sociale che fornisce informazioni per proteggere la sicurezza e la privacy dei dati.
+ Non guadagniamo denaro consigliando determinati prodotti e non utilizziamo link di affiliazione.
+ © 2019 - 2023 Privacy Guides e collaboratori. + + Contenuto sotto licenza CC BY-ND 4.0. +edit_uri: edit/main/i18n/it/ + +extra: + generator: false + analytics: + provider: plausible + property: privacyguides.org + feedback: + title: "Questa pagina è stata utile?" + ratings: + - icon: material/robot-happy-outline + name: "Questa pagina è stata utile" + data: Helpful + note: "Grazie per il tuo feedback!" + - icon: material/robot-confused + name: "Questa pagina può essere migliorata" + data: Needs Improvement + note: "Grazie per il tuo feedback! Aiutaci a migliorare questa pagina aprendo una discussione sul nostro forum." + +theme: + language: it + font: + text: Public Sans + code: DM Mono + palette: + - media: "(prefers-color-scheme)" + scheme: default + accent: deep purple + toggle: + icon: material/brightness-auto + name: "Passa al tema scuro" + - media: "(prefers-color-scheme: dark)" + scheme: slate + accent: amber + toggle: + icon: material/brightness-2 + name: "Passa al tema chiaro" + - media: "(prefers-color-scheme: light)" + scheme: default + accent: deep purple + toggle: + icon: material/brightness-5 + name: "Passa al tema di sistema" + +markdown_extensions: + pymdownx.snippets: + auto_append: + - includes/abbreviations.it.txt + +nav: + - Pagina iniziale: 'index.md' + - Conoscenze di base: + - 'basics/why-privacy-matters.md' + - 'basics/threat-modeling.md' + - 'basics/common-threats.md' + - 'basics/common-misconceptions.md' + - 'basics/account-creation.md' + - 'basics/account-deletion.md' + - Elementi essenziali della tecnologia: + - 'basics/passwords-overview.md' + - 'basics/multi-factor-authentication.md' + - 'basics/email-security.md' + - 'basics/vpn-overview.md' + - Argomenti avanzati: + - 'advanced/dns-overview.md' + - 'advanced/tor-overview.md' + - 'advanced/payments.md' + - 'advanced/communication-network-types.md' + - Sistemi operativi: + - 'os/android-overview.md' + - 'os/linux-overview.md' + - 'os/qubes-overview.md' + - kb-archive.md + - Raccomandazioni: + - 'tools.md' + - Navigazione su Internet: + - 'tor.md' + - 'desktop-browsers.md' + - 'mobile-browsers.md' + - Fornitori: + - 'cloud.md' + - 'dns.md' + - 'email.md' + - 'financial-services.md' + - 'search-engines.md' + - 'vpn.md' + - Software: + - 'calendar.md' + - 'cryptocurrency.md' + - 'data-redaction.md' + - 'email-clients.md' + - 'encryption.md' + - 'file-sharing.md' + - 'frontends.md' + - 'multi-factor-authentication.md' + - 'news-aggregators.md' + - 'notebooks.md' + - 'passwords.md' + - 'productivity.md' + - 'real-time-communication.md' + - 'video-streaming.md' + - Sistemi operativi: + - 'android.md' + - 'desktop.md' + - 'router.md' + - Informazioni: + - 'about/index.md' + - 'about/criteria.md' + - 'about/statistics.md' + - 'about/notices.md' + - 'about/privacy-policy.md' + - Comunità: + - 'about/donate.md' + - Servizi online: 'about/services.md' + - Codice di condotta: 'CODE_OF_CONDUCT.md' + - 'about/privacytools.md' + - Contribuisci: + - Guida alla scrittura: + - 'meta/writing-style.md' + - 'meta/brand.md' + - Guide tecniche: + - 'meta/uploading-images.md' + - 'meta/git-recommendations.md' + - Registro delle modifiche: 'https://github.com/privacyguides/privacyguides.org/releases' + - Forum: 'https://discuss.privacyguides.net/' + - Blog: 'https://blog.privacyguides.org/' diff --git a/config/mkdocs.nl.yml b/config/mkdocs.nl.yml index 24985ef8..8c9e9a68 100644 --- a/config/mkdocs.nl.yml +++ b/config/mkdocs.nl.yml @@ -32,7 +32,7 @@ copyright: | © 2019 - 2023 Privacy Guides en medewerkers. Inhoud gelicentieerd onder CC BY-ND 4.0. -edit_uri: edit/main/docs/ +edit_uri: edit/main/i18n/nl/ extra: generator: false diff --git a/netlify.toml b/netlify.toml index 4ffcecb4..39c491de 100644 --- a/netlify.toml +++ b/netlify.toml @@ -20,7 +20,7 @@ [build] publish = "site/" - command = "crowdin download && mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.es.yml && mkdocs build --config-file config/mkdocs.he.yml && mkdocs build --config-file config/mkdocs.fr.yml && mkdocs build --config-file config/mkdocs.nl.yml && mv static/* site/" + command = "crowdin download && mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.es.yml && mkdocs build --config-file config/mkdocs.fr.yml && mkdocs build --config-file config/mkdocs.he.yml && mkdocs build --config-file config/mkdocs.it.yml && mkdocs build --config-file config/mkdocs.nl.yml && mv static/* site/" [context.deploy-preview] command = "mkdocs build --config-file config/mkdocs.en.yml && mv static/* site/" @@ -59,6 +59,11 @@ to = "/he/404/index.html" status = 404 +[[redirects]] + from = "/it/*" + to = "/it/404/index.html" + status = 404 + [[redirects]] from = "/nl/*" to = "/nl/404/index.html" diff --git a/static/_redirects b/static/_redirects index ec34af73..f605e6e4 100644 --- a/static/_redirects +++ b/static/_redirects @@ -22,6 +22,7 @@ / /es/ 302 Language=es / /fr/ 302 Language=fr / /he/ 302 Language=he +/ /it/ 302 Language=it / /nl/ 302 Language=nl / /en/ 302 diff --git a/theme/schema.html b/theme/schema.html deleted file mode 100644 index 6d59ac5b..00000000 --- a/theme/schema.html +++ /dev/null @@ -1,23 +0,0 @@ - -{% extends "main.html" %} -{# This file can be deleted when it is no longer referenced by localized sites #}