From 3e9cab47c5f218c06c79d075c5627bf57e929a72 Mon Sep 17 00:00:00 2001 From: "Mart-Erki.Noumees" Date: Tue, 2 Oct 2018 00:28:24 +0300 Subject: [PATCH] Worked out how to localise and started translating index.html --- _data/localisation.yml | 60 ++++++++++++++++++++++++++++++++++++++++++ index.html | 36 +++++++++++-------------- 2 files changed, 76 insertions(+), 20 deletions(-) create mode 100644 _data/localisation.yml diff --git a/_data/localisation.yml b/_data/localisation.yml new file mode 100644 index 0000000..c698d96 --- /dev/null +++ b/_data/localisation.yml @@ -0,0 +1,60 @@ +en: + + # index.html + index_ForStudentHeader : "For Student" + index_ForStudentDesc : "Come and develop your skills and befriend cool people" + index_ForStudentLink : "Learn more about our activites ->" + + index_HelpdeskHeader : "Helpdesk" + index_HelpdeskDesc : "Student-friendly PC repair" + index_HelpdeskLink : "Pricelist ->" + + index_ForBusinessesHeader : "For Businesses" + index_ForBusinessesDesc : "We'll help to make your ideas reality" + index_ForBusinessesLink : "Previous works ->" + + index_WhoWeHeader : "Who are we?" + index_WhoWeDesc : "MTÜ Lapikud ( nonprofit organisation ) is a TUT software developement club, which combines former and current students interested in IT. + The organization was established in 2002 by computer science students whose speciality's identification code was \"LAP\". + The wise men then decided that henceforth they are to be called \"Lapikud\"." + + index_WhatDoHeader : "What are we up to?" + index_WhatDoDesc : "Our main goal is to complement TUT's IT students studies with relevant experience. + We involve students in interesting IT themed projects and give them an opportunity to finish something meaningful on their own. + Our projects often turn into compelling and useful theses. We offer clever students a chance to get their first work experience. + Lapikud is not only a IT student organization - we also try to involve economics students in our projects so also business side would be represented." + + index_Partners : "Our partners" + + # todo : translate other pages + +ee: + + # index.html + index_ForStudentHeader : "Tudengile" + index_ForStudentDesc : "Tule arenda oma oskuseid ja saa ägedaid sõpru" + index_ForStudentLink : "Uuri edasi meie tegevuste kohta ->" + + index_HelpdeskHeader : "Helpdesk" + index_HelpdeskDesc : "Tudengisõbralik arvutiparandus!" + index_HelpdeskLink : "Tööde hinnakiri ->" + + index_ForBusinessesHeader : "Ettevõttele" + index_ForBusinessesDesc : "Aitame sinu ideed ellu viia!" + index_ForBusinessesLink : "Tehtud tööd ->" + + index_WhoWeHeader : "Kes me oleme?" + index_WhoWeDesc : "MTÜ Lapikud on TTÜ Tarkvaraarendusklubi, mis ühendab endisi ja praegusi IT huvilisi tudengeid. + Organisatsioon loodi 2002. aastal informaatika tudengite poolt, kelle erialatunnuseks oli “LAP”. + Targad mehed otsustasid, et järelikult on nad “Lapikud”." + + index_WhatDoHeader : "Millega tegeleme?" + index_WhatDoDesc : "Meie põhieesmärgiks on TTÜ IT tudengite erialase lisandväärtuse loomine. + Kaasame tudengeid huvitavatesse IT projektidesse ning anname tudengitele võimaluse midagi reaalset oma käega midagi ära teha. + Meie projektidest kooruvad välja huvitavad ja tarvilikud lõputööd. + Pakume nutikatele tudengitele võimalust saada meie juures esimene töökogemus. + Lapikud ei ole ainult IT tudengite organisatsioon – püüame kaasata oma tegevusse ka majandusteaduskonna tudengeid, et projektides oleks esindatud ka äriline pool." + + index_Partners : "Koostööpartnerid" + + # todo : copy estonian text for other pages \ No newline at end of file diff --git a/index.html b/index.html index bce4dd5..ed03260 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,9 @@ --- layout: default title: Lapikud +language: ee --- +{% assign locale = site.data.localisation[page.language] %}
@@ -16,9 +18,9 @@ title: Lapikud
-

Tudengile

-

Tule arenda oma oskuseid ja saa ägedaid sõpru

-

Uuri edasi meie tegevuste kohta ->

+

{{ locale.index_ForStudentHeader }}

+

{{ locale.index_ForStudentDesc }}

+

{{ locale.index_ForStudentLink }}

@@ -27,9 +29,9 @@ title: Lapikud d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/>
-

Helpdesk

-

Tudengisõbralik arvutiparandus!

-

Tööde hinnakiri ->

+

{{ locale.index_HelpdeskHeader }}

+

{{ locale.index_HelpdeskDesc }}

+

{{ locale.index_HelpdeskLink }}

@@ -38,34 +40,28 @@ title: Lapikud d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/>
-

Ettevõttele

-

Aitame sinu ideed ellu viia!

-

Tehtud tööd ->

+

{{ locale.index_ForBusinessesHeader }}

+

{{ locale.index_ForBusinessesDesc }}

+

{{ locale.index_ForBusinessesLink }}

-

Kes me oleme?

+

{{ locale.index_WhoWeHeader }}

- MTÜ Lapikud on TTÜ Tarkvaraarendusklubi, mis ühendab endisi ja praegusi IT huvilisi tudengeid. Organisatsioon - loodi 2002. aastal informaatika tudengite poolt, kelle erialatunnuseks oli “LAP”. Targad mehed otsustasid, et - järelikult on nad “Lapikud”. + {{ locale.index_WhoWeDesc }}

-

Millega tegeleme?

+

{{ locale.index_WhatDoHeader }}

- Meie põhieesmärgiks on TTÜ IT tudengite erialase lisandväärtuse loomine. Kaasame tudengeid huvitavatesse IT - projektidesse ning anname tudengitele võimaluse midagi reaalset oma käega midagi ära teha. Meie projektidest - kooruvad välja huvitavad ja tarvilikud lõputööd. Pakume nutikatele tudengitele võimalust saada meie juures esimene - töökogemus. Lapikud ei ole ainult IT tudengite organisatsioon – püüame kaasata oma tegevusse ka - majandusteaduskonna tudengeid, et projektides oleks esindatud ka äriline pool. + {{ locale.index_WhatDoDesc }}

-

Koostööpartnerid

+

{{ locale.index_Partners }}

{% for partner in site.data.partners %}