Skip to content

Commit

Permalink
Starting translation support (#2398)
Browse files Browse the repository at this point in the history
* Starting translation support

* Starting translation support
  • Loading branch information
vigneshhari authored Aug 25, 2024
1 parent 746088a commit af89f00
Show file tree
Hide file tree
Showing 13 changed files with 784 additions and 3 deletions.
4 changes: 2 additions & 2 deletions care/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


<section class="mt-4 max-w-lg ">
<h1 class="text-3xl font-bold text-center"> Corona Safe Network </h1>
<p class="text-lg mt-1 text-gray-700 text-justify"> Our Goal is to defend the Healthcare system of Kerala from overloading beyond capacity.
<h1 class="text-3xl font-bold text-center"> {% translate "Open Healthcare Network" %} </h1>
<p class="text-lg mt-1 text-gray-700 text-justify"> {% blocktranslate %}Our Goal is to defend the Healthcare system of Kerala from overloading beyond capacity.{% endblocktranslate %}
</p>
</section>

Expand Down
8 changes: 8 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
from datetime import datetime, timedelta
from pathlib import Path
from django.utils.translation import gettext_lazy as _

import environ
from authlib.jose import JsonWebKey
Expand Down Expand Up @@ -54,6 +55,13 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
LOCALE_PATHS = [str(BASE_DIR / "locale")]


LANGUAGES = [
("en-us", _("English")),
("ml", _("Malayalam")),
("hi", _("Hindi")),
("ta", _("Tamil")),
]
# DATABASES
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
Expand Down
255 changes: 255 additions & 0 deletions locale/hi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-25 17:02+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: care/abdm/apps.py:7
msgid "ABDM Integration"
msgstr ""

#: care/audit_log/apps.py:7
msgid "Audit Log Management"
msgstr ""

#: care/facility/apps.py:7
msgid "Facility Management"
msgstr ""

#: care/facility/models/encounter_symptom.py:16
msgid "In Progress"
msgstr ""

#: care/facility/models/encounter_symptom.py:17
msgid "Completed"
msgstr ""

#: care/facility/models/encounter_symptom.py:18
#: care/facility/models/icd11_diagnosis.py:53
msgid "Entered in Error"
msgstr ""

#: care/facility/models/icd11_diagnosis.py:48
msgid "Unconfirmed"
msgstr ""

#: care/facility/models/icd11_diagnosis.py:49
msgid "Provisional"
msgstr ""

#: care/facility/models/icd11_diagnosis.py:50
msgid "Differential"
msgstr ""

#: care/facility/models/icd11_diagnosis.py:51
msgid "Confirmed"
msgstr ""

#: care/facility/models/icd11_diagnosis.py:52
msgid "Refuted"
msgstr ""

#: care/facility/models/patient.py:50
msgid "Non-card holder"
msgstr ""

#: care/facility/models/patient.py:51
msgid "BPL"
msgstr ""

#: care/facility/models/patient.py:52
msgid "APL"
msgstr ""

#: care/facility/models/patient_base.py:88
msgid "Unknown"
msgstr ""

#: care/facility/models/patient_base.py:89
msgid "Recovered"
msgstr ""

#: care/facility/models/patient_base.py:90
msgid "Referred"
msgstr ""

#: care/facility/models/patient_base.py:91
msgid "Expired"
msgstr ""

#: care/facility/models/patient_base.py:92
msgid "LAMA"
msgstr ""

#: care/facility/models/patient_base.py:127
msgid "Outpatient/Emergency Room"
msgstr ""

#: care/facility/models/patient_base.py:128
msgid "Referred from another facility"
msgstr ""

#: care/facility/models/patient_base.py:129
msgid "Internal Transfer within the facility"
msgstr ""

#: care/facility/models/patient_base.py:130
msgid "(Unknown)"
msgstr ""

#: care/hcx/apps.py:7
msgid "HCX Integration"
msgstr ""

#: care/templates/pages/home.html:8
msgid "Open Healthcare Network"
msgstr ""

#: care/templates/pages/home.html:9
msgid ""
"Our Goal is to defend the Healthcare system of Kerala from overloading "
"beyond capacity."
msgstr ""

#: care/users/apps.py:7
msgid "Users"
msgstr ""

#: care/users/forms.py:15
msgid "This username has already been taken."
msgstr ""

#: care/users/models.py:179
msgid "username"
msgstr ""

#: care/users/models.py:184
msgid "A user with that username already exists."
msgstr ""

#: care/users/reset_password_views.py:245
msgid ""
"There is no active user associated with this username or the password can "
"not be changed"
msgstr ""

#: care/utils/models/validators.py:54
msgid ""
"Username must be 4 to 16 characters long. It may only contain lowercase "
"alphabets, numbers, underscores, hyphens and dots. It shouldn't start or end "
"with underscores, hyphens or dots. It shouldn't contain consecutive "
"underscores, hyphens or dots."
msgstr ""

#: care/utils/ulid/serializers.py:9
#, python-brace-format
msgid "\"{value}\" is not a valid ULID."
msgstr ""

#: config/auth_views.py:19
msgid "Too Many Requests Provide Captcha"
msgstr ""

#: config/auth_views.py:27
msgid "No active account found with the given credentials"
msgstr ""

#: config/authentication.py:141
msgid "Authorization header must contain two space-delimited values"
msgstr ""

#: config/authentication.py:270
msgid ""
"Used for authenticating requests from the middleware. The scheme requires a "
"valid JWT token in the Authorization header along with the facility id in "
"the X-Facility-Id header. --The value field is just for preview, filling it "
"will show allowed endpoints.--"
msgstr ""

#: config/authentication.py:289
msgid ""
"Used for authenticating requests from the middleware on behalf of assets. "
"The scheme requires a valid JWT token in the Authorization header along with "
"the facility id in the X-Facility-Id header. --The value field is just for "
"preview, filling it will show allowed endpoints.--"
msgstr ""

#: config/authentication.py:306 config/authentication.py:320
msgid "Do not use this scheme for production."
msgstr ""

#: config/patient_otp_authentication.py:56
msgid "Given token not valid for any token type"
msgstr ""

#: config/settings/base.py:60
msgid "English"
msgstr ""

#: config/settings/base.py:61
msgid "Malayalam"
msgstr ""

#: config/settings/base.py:62
msgid "Hindi"
msgstr ""

#: config/settings/base.py:63
msgid "Tamil"
msgstr ""

#: config/validators.py:12
msgid "The password must contain at least 1 digit, 0-9."
msgstr ""

#: config/validators.py:17
msgid "Your password must contain at least 1 digit, 0-9."
msgstr ""

#: config/validators.py:24
msgid "The password must contain at least 1 uppercase letter, A-Z."
msgstr ""

#: config/validators.py:29
msgid "Your password must contain at least 1 uppercase letter, A-Z."
msgstr ""

#: config/validators.py:36
msgid "The password must contain at least 1 lowercase letter, a-z."
msgstr ""

#: config/validators.py:41
msgid "Your password must contain at least 1 lowercase letter, a-z."
msgstr ""

#: config/validators.py:49
msgid ""
"The password must contain at least 1 symbol: ()[]{}|\\`~!@#$%^&*_-+=;:'\\\","
"<>./?"
msgstr ""

#: config/validators.py:57
msgid ""
"Your password must contain at least 1 symbol: ()[]{}|\\`~!@#$%^&*_-+=;:'\\\","
"<>./?"
msgstr ""

#: config/validators.py:66
msgid ""
"The domain name is invalid. It should not start with scheme and should not "
"end with a trailing slash."
msgstr ""
Loading

0 comments on commit af89f00

Please sign in to comment.