Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization #74

Merged
merged 10 commits into from
Jan 28, 2021
Merged
Binary file not shown.
86 changes: 86 additions & 0 deletions zubhub_backend/zubhub/locale/hi/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Translation of custom error messages to hindi.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST Ndibe Raymond <ndiberaymond1@gmail.com>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-10 06:00+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FIRST Ndibe Raymond <ndiberaymond1@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: hindi\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"

#: zubhub/creators/serializers.py:46
msgid "Date of Birth must be less than today's date"
msgstr "जन्म तिथि आज की तारीख से कम होनी चाहिए"

#: zubhub/creators/serializers.py:51
msgid "Location is required"
msgstr "स्थान की आवश्यकता है"

#: zubhub/projects/serializers.py:68 zubhub/projects/serializers.py:74
msgid "you must provide either image(s) or video url"
msgstr "आपको छवि या वीडियो url प्रदान करना चाहिए"

#: zubhub/templates/account/email/email_confirmation_message.txt:6
msgid "Hello from "
msgstr "से नमस्कार "

#: zubhub/templates/account/email/email_confirmation_message.txt:7
#, python-format
msgid ""
"\n"
"You're receiving this e-mail because user %(user_display)s has given yours "
"as an e-mail address to connect their account.\n"
msgstr ""
"\n"
"आप यह ई-मेल प्राप्त कर रहे हैं क्योंकि उपयोगकर्ता %(user_display)s ने आपका दिया है"
"उनके खाते को जोड़ने के लिए एक ई-मेल पते के रूप में। \n"

#: zubhub/templates/account/email/email_confirmation_message.txt:10
msgid "To confirm this is correct, go to "
msgstr "यह सही है, इसकी पुष्टि करने के लिए "

#: zubhub/templates/account/email/email_confirmation_message.txt:12
msgid "Thank you from"
msgstr "से साभार"

#: zubhub/templates/account/email/email_confirmation_subject.txt:3
msgid "Please Confirm Your E-mail Address"
msgstr "कृपया अपने ईमेल पते की पुष्टि करें"

#: zubhub/templates/registration/password_reset_email.html:4
msgid ""
"You're receiving this email because you requested a password reset for your "
"user account at "
msgstr ""
"आप यह ईमेल प्राप्त कर रहे हैं क्योंकि आपने अपने लिए पासवर्ड रीसेट का अनुरोध किया है "
"उपयोगकर्ता खाता "

#: zubhub/templates/registration/password_reset_email.html:5
msgid "Please go to the following page and choose a new password:"
msgstr "कृपया निम्न पृष्ठ पर जाएं और एक नया पासवर्ड चुनें:"

#: zubhub/templates/registration/password_reset_email.html:10
msgid "Your username, in case you've forgotten:"
msgstr "आपका उपयोगकर्ता नाम, यदि आप भूल गए हैं:"

#: zubhub/templates/registration/password_reset_email.html:11
msgid "Thanks for using our site!"
msgstr "हमारी साइट का उपयोग करने के लिए धन्यवाद!"

#: zubhub/templates/registration/password_reset_email.html:12
msgid "The "
msgstr "यह "

#: zubhub/templates/registration/password_reset_email.html:12
msgid " Team"
msgstr "टीम"
3 changes: 3 additions & 0 deletions zubhub_backend/zubhub/zubhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -229,6 +230,8 @@

USE_TZ = True

LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale')]


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
Expand Down
51 changes: 51 additions & 0 deletions zubhub_frontend/zubhub/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions zubhub_frontend/zubhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
"compressorjs": "^1.0.7",
"date-fns": "^2.16.1",
"formik": "^2.2.5",
"i18next": "^19.8.4",
"i18next-browser-languagedetector": "^6.0.1",
"i18next-http-backend": "^1.0.23",
"nanoid": "^3.1.20",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-i18next": "^11.8.5",
"react-redux": "^7.2.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
Expand Down
Loading