From 98e0ab7973e72cfef1ffca4921686580ae90cb5d Mon Sep 17 00:00:00 2001 From: max/sooulix Date: Thu, 15 Aug 2024 02:13:33 +0200 Subject: [PATCH] [i18n] language levels --- messages.pot | 22 +++++++- static/css/resume.css | 9 ++- templates/partials/languages.html | 22 +++++--- templates/resume.html | 1 - translations/en/LC_MESSAGES/messages.mo | Bin 473 -> 1107 bytes translations/en/LC_MESSAGES/messages.po | 70 ++++++++++++++++++++++-- translations/fr/LC_MESSAGES/messages.mo | Bin 473 -> 1066 bytes translations/fr/LC_MESSAGES/messages.po | 67 ++++++++++++++++++++++- 8 files changed, 171 insertions(+), 20 deletions(-) diff --git a/messages.pot b/messages.pot index 2cb42a2..bf2bce9 100644 --- a/messages.pot +++ b/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-08-15 00:56+0200\n" +"POT-Creation-Date: 2024-08-15 02:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,6 +40,22 @@ msgstr "" msgid "resume language title" msgstr "" +#: templates/partials/languages.html:20 +msgid "language level native" +msgstr "" + +#: templates/partials/languages.html:22 +msgid "language level fluent" +msgstr "" + +#: templates/partials/languages.html:24 +msgid "language level elementary" +msgstr "" + +#: templates/partials/languages.html:26 +msgid "language level notions" +msgstr "" + #: templates/partials/projects.html:5 msgid "resume project title" msgstr "" @@ -56,3 +72,7 @@ msgstr "" msgid "resume skill title" msgstr "" +#: templates/partials/work.html:5 +msgid "resume work title" +msgstr "" + diff --git a/static/css/resume.css b/static/css/resume.css index 2d5f0a1..9735364 100644 --- a/static/css/resume.css +++ b/static/css/resume.css @@ -232,7 +232,12 @@ section .location { height: 5px; } -.level.beginner .bar::after { +.level.notions .bar::after { + background: #eb5f51; + width: 2.5em; +} + +.level.elementary .bar::after { background: #eb5f51; width: 2.5em; } @@ -249,7 +254,7 @@ section .location { } .level.master .bar::after, -.level.native.speaker .bar::after { +.level.native .bar::after { background: #59c596; width: 10em; } diff --git a/templates/partials/languages.html b/templates/partials/languages.html index 892684b..7e17917 100644 --- a/templates/partials/languages.html +++ b/templates/partials/languages.html @@ -14,14 +14,20 @@ {% endif %}
{% if language.fluency %} -
- {% if language.fluencyDisplay %} - {{ language.fluencyDisplay }} - {% else %} - {{ language.fluency }} - {% endif %} -
-
+
+ + {% if language.fluency == "native" %} + {% trans %}language level native{% endtrans %} + {% elif language.fluency == "fluent" %} + {% trans %}language level fluent{% endtrans %} + {% elif language.fluency == "elementary" %} + {% trans %}language level elementary{% endtrans %} + {% elif language.fluency == "notions" %} + {% trans %}language level notions{% endtrans %} + {% endif %} + +
+
{% endif %}
diff --git a/templates/resume.html b/templates/resume.html index c79e610..5697c98 100644 --- a/templates/resume.html +++ b/templates/resume.html @@ -25,7 +25,6 @@ "> {% set utils = page.utils %} - {% trans %}Home{% endtrans %} {% include 'partials/basics.html' %} {% include 'partials/skills.html' %} diff --git a/translations/en/LC_MESSAGES/messages.mo b/translations/en/LC_MESSAGES/messages.mo index e02ff4c1b5b5d807d07373d79c7ec5440e2a7d7d..40b7c696a01c16943094a93d842573b6b225dd0b 100644 GIT binary patch literal 1107 zcmZvb%Wl&^6ov<=5VZ=3a+iuU?5JQ`Cn^v*P1U4zAt-69Bvfpt$w@GE#@5WZmn|>A z1{OR8kH7}j>{zg1$CeFZ4ZjnIkbouYn{%0S#&dpuou7Hb@La^ZfcJH3{PoP8Vr&NX zdGIDU4_*cDWvqbLU_S%r!6>s|X7RTf-+@;U{|Mdyzkun!A7HxAInCH5@D}(AzGX1& z`~D1K;0N$5_zAoKeg@Bh-!lJqa2EE@jK4C@qDY!|8Jq(bz_i{XnATeXuY*O9J&yXs zLaBO*>=6&?kU~x&^+{Q&Po^W?FhOA2tE3GM|EZ!P8$`-5O(y9Rmq$`}xD9MbBNug& zHnv7;(j6#E*kmWYf6h2jBG%ChYEPxc$$l98ud=2tDyue4mNo}L7*4v5B7Kl~c84uQ zwIlXO8ywf;yN#VE{zi-M`Hg0EXWMB|9BC`+rWbTXCFvQ_iahSu%hlR?d2_SjH=EAx zPD^ZP8ho(Wl$Jc6ck?U4Er{HG?&dwWaM#VdE)qq94uiDQblwWj6};TTVO~udD_UAA z6G|Itk8eG#)%bR~?(@}&)@x2J8?eVo{V_y~WIy%r)mm*m43;9@TXS~9M9WZYMY?Z1 zuHu1dO8FumE=zY5zg^\n" "Language: en\n" @@ -18,8 +18,68 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.15.0\n" -#: templates/base.html:91 templates/base.html:127 templates/base.html:159 -#: templates/base.html:183 -msgid "Home" -msgstr "coucou" +#: templates/partials/awards.html:5 +msgid "resume award title" +msgstr "Awards" + +#: templates/partials/breadcrumbs.html:12 +#: templates/partials/breadcrumbs.html:48 +#: templates/partials/breadcrumbs.html:80 +#: templates/partials/breadcrumbs.html:104 templates/resume.html:28 +msgid "Home" +msgstr "Home" + +#: templates/partials/education.html:5 +msgid "resume education title" +msgstr "Education" + +#: templates/partials/interests.html:5 +msgid "resume interest title" +msgstr "Interests" + +#: templates/partials/languages.html:5 +msgid "resume language title" +msgstr "Languages" + +#: templates/partials/languages.html:20 +msgid "language level native" +msgstr "Native speaker" + +#: templates/partials/languages.html:22 +msgid "language level fluent" +msgstr "Fluent" + +#: templates/partials/languages.html:24 +msgid "language level elementary" +msgstr "Elementary" + +#: templates/partials/languages.html:26 +msgid "language level notions" +msgstr "Beginner" + +#: templates/partials/projects.html:5 +msgid "resume project title" +msgstr "Projects" + +#: templates/partials/publications.html:5 +msgid "resume publication title" +msgstr "Publications" + +#: templates/partials/references.html:5 +msgid "resume reference title" +msgstr "References" + +#: templates/partials/skills.html:5 +msgid "resume skill title" +msgstr "Skills" + +#: templates/partials/work.html:5 +msgid "resume work title" +msgstr "Professional experience" + +#~ msgid "language elementary" +#~ msgstr "Elementary" + +#~ msgid "language level can speak and understand" +#~ msgstr "Native speaker" diff --git a/translations/fr/LC_MESSAGES/messages.mo b/translations/fr/LC_MESSAGES/messages.mo index 4cfcdbc06cc5dc98884a4ccec7bb81c77f63fdb3..fafc19796c132525ae85c223317b50058323d21b 100644 GIT binary patch literal 1066 zcmZvazi$&U6vwZnfHR27^@o}!R|vYaQ5q`N%f$(%jvd*){`dpf z5ED!=vV@6=87X2wVrK(3{s0(3;(N)_l7gkDkKgnAW&3@en|bbF%|fn1o}|iO>nHXz zkYA8Xkm;#0=fTU+bKo2pWcq{bTxEO=Uc~tea2|XErg0y@H0~>S0sIa=g`A#toU_oM zof`8cn4Z4^&w+2jw4Zn28Sp*mf*-*&?o-Au;CblZGXBUoh2Sf&&!$Q4svdJhB)dt} zWkj$&CP+slOxlxH8CkyfkFQjgD`_0fOwwZ{+K+UbSZ)RTV`A+jMyQgLW-cv5ke#$1 zbuy8nuhk~)IyfSa82->(%n_JE)pFHx}kK>_(b+cs#z&4k@0rrnk1_v ze|^cVRcpcVljL)rTUPiwiKY(wxSeGO_GVv1TrQFLVWbVSD~avU;;~=aJidemGFELa zyFMwlxOML^$uwRFZ+YmG^{9o>E9COGP{Jw2al*K8$_jmA7DrcOqz88`nZR^ahJ#jO z)3dtf2TnQBCNWM`+TlPCUt5!f7#w4Gpx2M*#W;=OpaaKrN(_qh`ojV4lq$gi_L`68 N2caEi(k~j<{0+NZE@A)x delta 86 zcmZ3*ag*8Mo)F7a1|VPpVi_RT0dbIk4Uo+O#I``($H>6o1f\n" "Language: fr\n" @@ -18,8 +18,69 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.15.0\n" -#: templates/base.html:91 templates/base.html:127 templates/base.html:159 -#: templates/base.html:183 +#: templates/partials/awards.html:5 +msgid "resume award title" +msgstr "Prix" + +#: templates/partials/breadcrumbs.html:12 +#: templates/partials/breadcrumbs.html:48 +#: templates/partials/breadcrumbs.html:80 +#: templates/partials/breadcrumbs.html:104 templates/resume.html:28 msgid "Home" msgstr "Accueil" +#: templates/partials/education.html:5 +msgid "resume education title" +msgstr "Cursus" + +#: templates/partials/interests.html:5 +msgid "resume interest title" +msgstr "Intérêts" + +#: templates/partials/languages.html:5 +msgid "resume language title" +msgstr "Langues" + +#: templates/partials/languages.html:20 +msgid "language level native" +msgstr "Langue maternelle" + +#: templates/partials/languages.html:22 +msgid "language level fluent" +msgstr "Courant" + +#: templates/partials/languages.html:24 +#, fuzzy +msgid "language level elementary" +msgstr "Courant" + +#: templates/partials/languages.html:26 +msgid "language level notions" +msgstr "Débutant" + +#: templates/partials/projects.html:5 +msgid "resume project title" +msgstr "Projets" + +#: templates/partials/publications.html:5 +msgid "resume publication title" +msgstr "Publications" + +#: templates/partials/references.html:5 +msgid "resume reference title" +msgstr "Références" + +#: templates/partials/skills.html:5 +msgid "resume skill title" +msgstr "Compétences" + +#: templates/partials/work.html:5 +msgid "resume work title" +msgstr "Expérience Professionnelle" + +#~ msgid "language level elementary" +#~ msgstr "Élémentaire" + +#~ msgid "language level can speak and understand" +#~ msgstr "Langue maternelle" +