From b88f5d6266525baae86618f2f3302c1d072c5014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9COMosimege=E2=80=9D?= <“onalerona.mosimege@gmail.com”> Date: Thu, 6 Jun 2024 09:26:19 +0200 Subject: [PATCH] add translations wrapping to templates --- app/templates/400.html | 7 +++--- app/templates/403.html | 7 +++--- app/templates/404.html | 7 +++--- app/templates/500.html | 7 +++--- app/templates/app/home.html | 35 +++++++++++++++-------------- app/templates/app/institutions.html | 17 +++++++++----- app/templates/app/search.html | 31 ++++++++++++------------- app/templates/base.html | 14 ++++++------ app/templates/base_error.html | 3 ++- 9 files changed, 70 insertions(+), 58 deletions(-) diff --git a/app/templates/400.html b/app/templates/400.html index d861cf6c..f0becc31 100644 --- a/app/templates/400.html +++ b/app/templates/400.html @@ -1,11 +1,12 @@ {% extends "base_error.html" %} +{% load i18n %} {% block error_content %}
The server cannot process the request due to client error.
- Go to home +{% trans "The server cannot process the request due to client error." %}"
+ {% trans "Go to home" %}You do not have permission to access on this server.
- Go to home +{% trans "You do not have permission to access on this server." %}
+ {% trans "Go to home" %}The requested resource was not found on this server.
- Go to home +{% trans "The requested resource was not found on this server." %}
+ {% trans "Go to home" %}The server encountered an unexpected condition that prevented it from fulfilling the request.
- Go to home +{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %}
+ {% trans "Go to home" %}- The South African Centre for Digital Language Resources (SADiLaR) is a national research + {% blocktrans %}The South African Centre for Digital Language Resources (SADiLaR) is a national research infrastructure that aims to ensure a digital future for our official languages. It supports researchers in the fields of digital humanities and social sciences and also assists - institutions in their language implementation plans. - Read more about SADiLaR. + institutions in their language implementation plans.{% endblocktrans %} + {% blocktrans %}Read more about SADiLaR.{% endblocktrans %}
- SADiLaR conducted an audit at South African public higher education institutions that highlighted - areas that require attention. - Read the report. + {% blocktrans %}SADiLaR conducted an audit at South African public higher education institutions that highlighted + areas that require attention.{% endblocktrans %} + {% blocktrans %}Read the report.{% endblocktrans %}
- This platform highlights previous and current work at institutions to encourage collaboration and - disseminate resources. + {% blocktrans %}This platform highlights previous and current work at institutions to encourage collaboration and + disseminate resources.{% endblocktrans %}
- This platforms hosts terminology and other useful language resources. + {% blocktrans %}This platforms hosts terminology and other useful language resources.{% endblocktrans %}
- Search for a term or topic you are interested in. - (Functionality coming soon.) + {% blocktrans %}Search for a term or topic you are interested in. + (Functionality coming soon.){% endblocktrans %}
{# TODO: create the search box right here so that no additional click is required. #} - Search a term + {% trans "Search a term" %}- Browse information by institution. + {% trans "Browse information by institution." %}
- View + {% trans "View" %}- {% if institution.project_count == 0 %} - no applicable project - {% else %} - {{institution.project_count}} applicable projects - {% endif %} + {% if institution.project_count == 0 %} + {% blocktrans %}no applicable project{% endblocktrans %} + {% else %} + {% blocktrans count project_count=institution.project_count %} + {{ project_count }} applicable project + {% plural %} + {{ project_count }} applicable projects + {% endblocktrans %} + {% endif %}
Profile completion:
+{% trans "Profile completion:" %}