[i18n] language levels

This commit is contained in:
max/sooulix 2024-08-15 02:13:33 +02:00
parent d280d9e28b
commit 98e0ab7973
8 changed files with 171 additions and 20 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -40,6 +40,22 @@ msgstr ""
msgid "resume language title" msgid "resume language title"
msgstr "" 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 #: templates/partials/projects.html:5
msgid "resume project title" msgid "resume project title"
msgstr "" msgstr ""
@ -56,3 +72,7 @@ msgstr ""
msgid "resume skill title" msgid "resume skill title"
msgstr "" msgstr ""
#: templates/partials/work.html:5
msgid "resume work title"
msgstr ""

View File

@ -232,7 +232,12 @@ section .location {
height: 5px; height: 5px;
} }
.level.beginner .bar::after { .level.notions .bar::after {
background: #eb5f51;
width: 2.5em;
}
.level.elementary .bar::after {
background: #eb5f51; background: #eb5f51;
width: 2.5em; width: 2.5em;
} }
@ -249,7 +254,7 @@ section .location {
} }
.level.master .bar::after, .level.master .bar::after,
.level.native.speaker .bar::after { .level.native .bar::after {
background: #59c596; background: #59c596;
width: 10em; width: 10em;
} }

View File

@ -14,14 +14,20 @@
{% endif %} {% endif %}
<div class="item"> <div class="item">
{% if language.fluency %} {% if language.fluency %}
<div class="level fluency {{ language.fluency | lower }}"> <div class="level fluency {{ language.fluency | lower }}">
{% if language.fluencyDisplay %} <em>
<em>{{ language.fluencyDisplay }}</em> {% if language.fluency == "native" %}
{% else %} {% trans %}language level native{% endtrans %}
<em>{{ language.fluency }}</em> {% elif language.fluency == "fluent" %}
{% endif %} {% trans %}language level fluent{% endtrans %}
<div class="bar"></div> {% elif language.fluency == "elementary" %}
</div> {% trans %}language level elementary{% endtrans %}
{% elif language.fluency == "notions" %}
{% trans %}language level notions{% endtrans %}
{% endif %}
</em>
<div class="bar"></div>
</div>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -25,7 +25,6 @@
"> ">
<!-- <div class="aspect-w-16 aspect-h-9 mx-auto"></div> CSS placeholder --> <!-- <div class="aspect-w-16 aspect-h-9 mx-auto"></div> CSS placeholder -->
{% set utils = page.utils %} {% set utils = page.utils %}
{% trans %}Home{% endtrans %}
{% include 'partials/basics.html' %} {% include 'partials/basics.html' %}
{% include 'partials/skills.html' %} {% include 'partials/skills.html' %}

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-08-14 18:16+0200\n" "POT-Creation-Date: 2024-08-15 02:08+0200\n"
"PO-Revision-Date: 2024-08-14 18:17+0200\n" "PO-Revision-Date: 2024-08-14 18:17+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n" "Language: en\n"
@ -18,8 +18,68 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.15.0\n" "Generated-By: Babel 2.15.0\n"
#: templates/base.html:91 templates/base.html:127 templates/base.html:159 #: templates/partials/awards.html:5
#: templates/base.html:183 msgid "resume award title"
msgid "Home" msgstr "Awards"
msgstr "coucou"
#: 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"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-08-14 18:16+0200\n" "POT-Creation-Date: 2024-08-15 02:08+0200\n"
"PO-Revision-Date: 2024-08-14 18:17+0200\n" "PO-Revision-Date: 2024-08-14 18:17+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n" "Language: fr\n"
@ -18,8 +18,69 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.15.0\n" "Generated-By: Babel 2.15.0\n"
#: templates/base.html:91 templates/base.html:127 templates/base.html:159 #: templates/partials/awards.html:5
#: templates/base.html:183 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" msgid "Home"
msgstr "Accueil" 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"