From 95f87e234c409a410a30735f662770fbf3639d3f Mon Sep 17 00:00:00 2001 From: djoate <56777051+djoate@users.noreply.github.com> Date: Mon, 18 Nov 2019 01:18:12 +0000 Subject: [PATCH] Translate more of the index.html * Translate more of index.html, with translations sourced from deepl.com * Relax the plugin to allow capitalization, periods, exclamation marks, and question marks in the Weblate ID for YAML src. This helps differentiate between similar but different strings. --- .gitignore | 2 +- _data/languages/es.yml | 52 ++++++++++++++++++++++--- _includes/card.html | 2 +- _includes/sections/resources.html | 62 +++++++++++++++++++++--------- _plugins/weblate-source-file.rb | 2 +- weblate-source-file.yml | 64 +++++++++++++++++++++++++++++++ 6 files changed, 157 insertions(+), 27 deletions(-) create mode 100644 weblate-source-file.yml diff --git a/.gitignore b/.gitignore index 4170d373..4c76a727 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ font/assets/ font/_sass/ font/.fontcustom-manifest.json assets/webfonts/ptio-font-preview.html -weblate-source-file.yml +# weblate-source-file.yml diff --git a/_data/languages/es.yml b/_data/languages/es.yml index 56181882..91516e4e 100644 --- a/_data/languages/es.yml +++ b/_data/languages/es.yml @@ -1,13 +1,55 @@ --- -sponsors: | +Prefer_the_classic_site?_View_a_singlepage_layout.: | + ¿Prefieres el sitio clásico? Ver un diseño de una sola página. + +Providers: | + Proveedores + +Discover_privacycentric_online_services_including_email_providers_VPN_operators_DNS_administrator: | + Descubra servicios en línea centrados en la privacidad, incluyendo proveedores de correo electrónico, operadores de VPN, administradores de DNS y mucho más! + +Learn_More: | + Aprenda Más + +Web_Browsers: | + Navegadores Web + +Find_a_web_browser_that_respects_your_privacy_and_discover_how_to_harden_your_browser_against_tracki: | + Encuentre un navegador web que respete su privacidad y descubra cómo proteger su navegador contra el rastreo y las fugas. + +Software: | + Software + +Discover_a_variety_of_open_source_software_built_to_protect_your_privacy_and_keep_your_digital_data_s: | + Descubra una variedad de software de código abierto creado para proteger su privacidad y mantener sus datos digitales seguros. + +Operating_Systems: | + Sistemas Operativos + +Find_out_how_your_operating_system_is_compromising_your_privacy_and_what_simple_alternatives_exist.: | + Descubra cómo su sistema operativo está comprometiendo su privacidad y qué alternativas sencillas existen. + +PrivacyTools_Services: | + Servicios de PrivacyTools + +The_PrivacyTools_team_is_proud_to_launch_a_variety_of_privacycentric_online_services_including_a_Ma: | + El equipo de PrivacyTools se enorgullece de lanzar una variedad de servicios en línea centrados en la privacidad, incluyendo una instancia de Mastodon, un motor de búsqueda y mucho más. + +Donate: | + Donaciones + +We_cant_operate_this_site_without_the_generous_contributions_we_receive_from_our_viewers._If_you_lov: | + No podemos operar este sitio sin las generosas contribuciones que recibimos de nuestros televidentes. Si usted ama la privacidad y nuestro sitio web por favor considere donar. + +Sponsors: | Patrocinadores -new: | +New: | Nuevo! -showcase_your_brand_as_a_sponsor_of_privacytools_here_and_support_our_mission_of_creating_a_world_fre: | +Showcase_your_brand_as_a_sponsor_of_PrivacyTools_here_and_support_our_mission_of_creating_a_world_fre: | Presente su marca como patrocinador de PrivacyTools aquí y apoye nuestra misión de crear un mundo libre de vigilancia masiva! -learn_more: | - Conozca más... +Learn_more...: | + Aprenda más... diff --git a/_includes/card.html b/_includes/card.html index ec676c84..715e1bda 100644 --- a/_includes/card.html +++ b/_includes/card.html @@ -51,7 +51,7 @@ {% if include.moretext %} {{include.moretext}} {% else %} - Learn More + {% translate Learn More %} {% endif %} {% endif %} diff --git a/_includes/sections/resources.html b/_includes/sections/resources.html index 66e6c395..43cb8250 100644 --- a/_includes/sections/resources.html +++ b/_includes/sections/resources.html @@ -1,55 +1,79 @@

Privacy Tools

-

Prefer the classic site? View a single-page layout.

+

{% translate Prefer the classic site? View a single-page layout.%}

+ {% capture providers_title %}{% translate Providers %}{% endcapture %} + {% capture providers_page %}/{% if page.language %}{{ page.language }}/{% endif %}providers/{% endcapture %} + {% capture providers_description %}{% translate Discover privacy-centric online services, including email providers, VPN operators, DNS administrators, and more!%}{% endcapture %} + {% include card.html color="success" - title="Providers" + title=providers_title icon="fas fa-server" iconcolor="dark" - page="/providers/" - description="Discover privacy-centric online services, including email providers, VPN operators, DNS administrators, and more!" + page=providers_page + description=providers_description %} + {% capture browsers_title %}{% translate Web Browsers %}{% endcapture %} + {% capture browsers_page %}/{% if page.language %}{{ page.language }}/{% endif %}browsers/{% endcapture %} + {% capture browsers_description %}{% translate Find a web browser that respects your privacy, and discover how to harden your browser against tracking and leaks.%}{% endcapture %} + {% include card.html color="primary" - title="Web Browsers" + title=browsers_title icon="far fa-compass" iconcolor="dark" - page="/browsers/" - description="Find a web browser that respects your privacy, and discover how to harden your browser against tracking and leaks." + page=browsers_page + description=browsers_description %} + {% capture software_title %}{% translate Software %}{% endcapture %} + {% capture software_page %}/{% if page.language %}{{ page.language }}/{% endif %}software/{% endcapture %} + {% capture software_description %}{% translate Discover a variety of open source software built to protect your privacy and keep your digital data secure.%}{% endcapture %} + {% include card.html color="warning" - title="Software" + title=software_title icon="far fa-window-restore" iconcolor="dark" - page="/software/" - description="Discover a variety of open source software built to protect your privacy and keep your digital data secure." + page=software_page + description=software_description %} + {% capture os_title %}{% translate Operating Systems%}{% endcapture %} + {% capture os_page %}/{% if page.language %}{{ page.language }}/{% endif %}operating-systems/{% endcapture %} + {% capture os_description %}{% translate Find out how your operating system is compromising your privacy, and what simple alternatives exist.%}{% endcapture %} + {% include card.html color="info" - title="Operating Systems" + title=os_title icon="fas fa-desktop" iconcolor="dark" - page="/operating-systems/" - description="Find out how your operating system is compromising your privacy, and what simple alternatives exist." + page=os_page + description=os_description %} + {% capture services_title %}{% translate PrivacyTools Services%}{% endcapture %} + {% capture services_page %}/{% if page.language %}{{ page.language }}/{% endif %}services/{% endcapture %} + {% capture services_description %}{% translate The PrivacyTools team is proud to launch a variety of privacy-centric online services, including a Mastodon instance, search engine, and more!%}{% endcapture %} + {% include card.html color="secondary" - title="PrivacyTools Services" + title=services_title icon="far fa-eye-slash" iconcolor="dark" - page="/services/" - description="The PrivacyTools team is proud to launch a variety of privacy-centric online services, including a Mastodon instance, search engine, and more!" + page=services_page + description=services_description %} + {% capture donate_title %}{% translate Donate%}{% endcapture %} + {% capture donate_page %}/{% if page.language %}{{ page.language }}/{% endif %}donate/{% endcapture %} + {% capture donate_description %}{% translate We can't operate this site without the generous contributions we receive from our viewers. If you love privacy and our website please consider donating.%}{% endcapture %} + {% include card.html color="danger" - title="Donate" + title=donate_title icon="fas fa-donate" iconcolor="dark" - page="/donate/" - description="We can't operate this site without the generous contributions we receive from our viewers. If you love privacy and our website please consider donating." + page=donate_page + description=donate_description %}
diff --git a/_plugins/weblate-source-file.rb b/_plugins/weblate-source-file.rb index d71fc994..cd5ad413 100644 --- a/_plugins/weblate-source-file.rb +++ b/_plugins/weblate-source-file.rb @@ -10,7 +10,7 @@ module Weblate class ID def self.get(source_text) - source_text.nil? ? source_text : source_text.strip[0..100].gsub(/[^\w\d\s]/, '').tr(' ', '_').downcase + source_text.nil? ? source_text : source_text.strip[0..100].gsub(/[^\w\d\s\.\?\!]/, '').tr(' ', '_') end end diff --git a/weblate-source-file.yml b/weblate-source-file.yml new file mode 100644 index 00000000..ca5ddb55 --- /dev/null +++ b/weblate-source-file.yml @@ -0,0 +1,64 @@ +--- +Prefer_the_classic_site?_View_a_singlepage_layout.: | + Prefer the classic site? View a single-page layout. + +Providers: | + Providers + +Discover_privacycentric_online_services_including_email_providers_VPN_operators_DNS_administrator: | + Discover privacy-centric online services, including email providers, VPN operators, DNS administrators, and more! + +Learn_More: | + Learn More + +Web_Browsers: | + Web Browsers + +Find_a_web_browser_that_respects_your_privacy_and_discover_how_to_harden_your_browser_against_tracki: | + Find a web browser that respects your privacy, and discover how to harden your browser against tracking and leaks. + +Software: | + Software + +Discover_a_variety_of_open_source_software_built_to_protect_your_privacy_and_keep_your_digital_data_s: | + Discover a variety of open source software built to protect your privacy and keep your digital data secure. + +Operating_Systems: | + Operating Systems + +Find_out_how_your_operating_system_is_compromising_your_privacy_and_what_simple_alternatives_exist.: | + Find out how your operating system is compromising your privacy, and what simple alternatives exist. + +PrivacyTools_Services: | + PrivacyTools Services + +The_PrivacyTools_team_is_proud_to_launch_a_variety_of_privacycentric_online_services_including_a_Ma: | + The PrivacyTools team is proud to launch a variety of privacy-centric online services, including a Mastodon instance, search engine, and more! + +Donate: | + Donate + +We_cant_operate_this_site_without_the_generous_contributions_we_receive_from_our_viewers._If_you_lov: | + We can't operate this site without the generous contributions we receive from our viewers. If you love privacy and our website please consider donating. + +Sponsors: | + Sponsors + +New!: | + New! + +Showcase_your_brand_as_a_sponsor_of_PrivacyTools_here_and_support_our_mission_of_creating_a_world_fre: | + Showcase your brand as a sponsor of PrivacyTools here and support our mission of creating a world free of mass surveillance! + +Learn_more...: | + Learn more... + +Prefer_the_classic_site?_View_a_singlepage_layout.: | + Prefer the classic site? View a single-page layout. + +Prefer_the_classic_site?_View_a_singlepage_layout.: | + Prefer the classic site? View a single-page layout. + +Prefer_the_classic_site?_View_a_singlepage_layout.: | + Prefer the classic site? View a single-page layout. +