From 55acb5685c33f893125619bbae5a53ab1a2e1afb Mon Sep 17 00:00:00 2001 From: David JOULIN Date: Mon, 19 Feb 2024 15:48:35 +0100 Subject: [PATCH] Fix trad EN/FR --- Gemfile | 1 - _config.yml | 6 -- _data/showcases.yml | 9 +++ _includes/fr-footer.html | 36 ++++++++++ _includes/fr-header.html | 29 ++++++++ _includes/header.html | 8 +-- _layouts/fr-home.html | 5 ++ _layouts/fr-support-page.html | 25 +++++++ docs/en/why.md | 1 - docs/fr/agritech_adi.md | 4 +- docs/fr/community.md | 30 ++++----- docs/fr/france2030.md | 4 +- docs/fr/osxp2023.md | 4 +- docs/fr/sia2024.md | 6 +- docs/{ => fr}/why.md | 9 ++- fr/index.html | 122 ++++++++++++++++++---------------- index.html | 21 +++--- 17 files changed, 211 insertions(+), 109 deletions(-) create mode 100644 _includes/fr-footer.html create mode 100644 _includes/fr-header.html create mode 100644 _layouts/fr-home.html create mode 100644 _layouts/fr-support-page.html rename docs/{ => fr}/why.md (96%) diff --git a/Gemfile b/Gemfile index 6e32845..09e646f 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,6 @@ gem 'github-pages', '> 103', group: :jekyll_plugins group :jekyll_plugins do gem 'jekyll-octicons' - gem "jekyll-polyglot" # need lazy-load support gem 'jekyll-avatar' gem 'jekyll-youtube' diff --git a/_config.yml b/_config.yml index 7a765a8..006d7af 100644 --- a/_config.yml +++ b/_config.yml @@ -37,12 +37,6 @@ kramdown: math_engine: mathjax syntax_highlighter: rouge -# polyglot -languages: ["en", "fr"] -default_lang: "en" -exclude_from_localization: ["javascript", "images", "css", "public"] -parallel_localization: true - unexisting_page: en: "The page you're looking for doesn't seem to be there!" fr: "La page demandée n'est pas présente ici !" diff --git a/_data/showcases.yml b/_data/showcases.yml index a805472..a832e38 100644 --- a/_data/showcases.yml +++ b/_data/showcases.yml @@ -3,35 +3,44 @@ video: https://www.youtube.com/embed/I7qKnWaY5tg img: "/assets/img/projects/agopengps.png" description: Self guidance system on existing tractor + description-fr: Autoguidage pour tracteur en 2eme monte - name: Autoplant video: https://www.youtube.com/embed/2Ybtjoabz_g?si=kwGgKt8rxNrkK9OI img: "/assets/img/projects/agrogeovisio.png" description: Self planting system on existing tractor + description-fr: "Planteuse autonome d'arbre (peuplier)" - name: Ecoterrabot video: https://www.youtube.com/embed/PbUobvAS0MM img: "/assets/img/projects/ecoterra.png" description: Autonomous precision weed picking robot + description-fr: Robot de desherbage autonome avec pince - name: E-tract video: https://www.youtube.com/embed/l4sHiCAmqXs?si=a8S8BQ6zDYBTy8JY img: "/assets/img/projects/agrogeovisio.png" description: Autonomous hoeing corn crop robot + description-fr: Desherbage autonome du maïs - name: Intel Iris video: https://www.youtube.com/embed/TBeyGvqpbxk img: "/assets/img/projects/waziup.png" description: Low-cost Autonomous Water Control + description-fr: "Systeme low cost de controle et de gestion d'irrigation" - name: Farmbot video: https://www.youtube.com/embed/qwSbWy_1f8w img: "/assets/img/projects/farmbot.png" description: All in one robot for small croping area + description-fr: Robot maraîcher tout-en-un - name: Natuition video: https://www.youtube.com/embed/ojdT-zIs6Po img: "/assets/img/projects/natuition.png" description: Autonomous precision weed picking robot on grass land + description-fr: Robot desherbeur autonome de surface enherbée - name: "Le pré fabriqué" video: https://www.youtube.com/embed/W_apNCuG31M?si=M99qh332Y8BKCK-S img: "/assets/img/projects/leprefabrique.svg" description: On premise tools for crop + description-fr: Outils de travail du sol et semoir open source et sur mesure - name: Ekylibre video: https://www.youtube.com/embed/odJCn2xkkWQ img: "/assets/img/projects/ekylibre.svg" description: all in one farm management information system + description-fr: "Solution web de gestion complète d'une exploitation agricole" diff --git a/_includes/fr-footer.html b/_includes/fr-footer.html new file mode 100644 index 0000000..962c231 --- /dev/null +++ b/_includes/fr-footer.html @@ -0,0 +1,36 @@ + + + + + + + {% if page.url == "/community/" %} + + {% elsif page.url == "/" %} + + {% endif %} + + + diff --git a/_includes/fr-header.html b/_includes/fr-header.html new file mode 100644 index 0000000..c4a7be6 --- /dev/null +++ b/_includes/fr-header.html @@ -0,0 +1,29 @@ + + + + + + + + + + + {% seo %} + + + + @@ -109,28 +108,28 @@

{% octicon globe height:28 class:"fill-blue d-inline mr-2" aria-label:globe %} - Engage community by training & testing in a real farm + Venez vous former et valider votre projet sur nos show-rooms

-

Test your project on real farm to engage farmer, or train your agtech developers with ease.

+

Tester votre projet et venez former vos collaborateurs en conditions réelles grâce à nos show rooms.

{% octicon checklist height:28 class:"fill-blue d-inline mr-2" aria-label:checklist %} - Skip the longtime paperwork on project + Arréter la procrastination.

-

No more procrastination on project, look at our community and start building your stack

+

Arrêter la procrastination et les longues heures de réunions qui aboutissent à rien et lancez vous avec OSFarm

- Show me the community → + Montrez moi les projets →

-

Join the Revolution

-

Join peoples, projects, organizations around the world who collaborate on code, data, hardware, and more for farming future. See the rest of the OSFarm community.

+

Rejoignez la révolution en marche

+

Rencontrer des personnes, des projets, des organisations du monde entier ou proche de chez vous avec qui vous allez pouvoir collaborer sur des sujets passionnants.

+
+ +
+
-

Get started today

-

Interessted by something around farming and open source Contact us to learn more about how to be involved

+

Lancez vous aujourd'hui !

+

+ J'adhère gratuitement pour 2024→ +

-

Join as Contributor

-

Coming soon.

+

Je suis un porteur / contributeur de projet agricole ouvert

+

Je developpe des projets et propose des services.

-

Join as Farmer

-

Coming soon.

+

Je suis un agriculteur

+

J'utilise des solutions et je les personnalises.

-

Join as Farmer Organization

-

Coming soon.

+

Je suis une organisation agricole

+

Je propose des solutions et veux les rendres interoperables.

-

Join Discussions and learn More

-

Browse OSFarm resources community or discussions

+

Je souhaite soutenir financièrement les actions de cette association

+

J'ai un intérêt à voir se developper l'interoperabilité et l'usage des nouvelles technologies ouvertes.

-
-
- -
-
-

Awesome experts for smart farming

- -

Talk to the core team

-

Send an email to inform OSfarm's team about your project

-

Join on Discord to talk to OSfarm's team.

- - +

+ J'adhère gratuitement pour 2024→ +

diff --git a/index.html b/index.html index 8514b43..9f7e7a2 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,6 @@ description: Make farms better, together. Stories of open source, open data, and open hardware on farms. org_count: 60 permalink: / -lang: en ---

Awesome stack for smart farming

@@ -151,21 +150,21 @@

Get started today

Join as Contributor

-

Coming soon.

+

Coding and developpement on open source projets link to Agtech.

Join as Farmer

-

Coming soon.

+

I use solution and want to customize and build it.

Join as Farmer Organization

-

Coming soon.

+

We want to promote and sell services aroud open source solutions for Agtech.

-

Join Discussions and learn More

-

Browse OSFarm resources community or discussions

+

Join as a sponsort partner

+

We want to promote and support open source Agtech solutions.

@@ -183,8 +182,14 @@

Awesome experts for smart farming

Talk to the core team

-

Send an email to inform OSfarm's team about your project

-

Join on Discord to talk to OSfarm's team.

+ + Email + {% octicon inbox height:24 class:"fill-gray-light d-inline" aria-label:github-logo %} + + + Discord + {% octicon comment-discussion height:24 class:"fill-gray-light d-inline" aria-label:github-logo %} +