i18n
This commit is contained in:
parent
3f5368cd82
commit
b763d5ad4e
6 changed files with 42 additions and 6 deletions
|
|
@ -73,12 +73,12 @@ class RequestOTPSerializer(serializers.ModelSerializer):
|
||||||
try:
|
try:
|
||||||
user.set_otp()
|
user.set_otp()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise UnprocessableEntity('otp expire time not reached')
|
raise UnprocessableEntity(_('otp expire time not reached'))
|
||||||
|
|
||||||
user.send_otp()
|
user.send_otp()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise UnprocessableEntity('otp expire time not reached yet')
|
raise UnprocessableEntity(_('otp expire time not reached yet'))
|
||||||
|
|
||||||
self.instance = user
|
self.instance = user
|
||||||
return user
|
return user
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-02-03 10:04+0000\n"
|
"POT-Creation-Date: 2026-02-03 10:16+0000\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"
|
||||||
|
|
@ -18,6 +18,7 @@ msgstr ""
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
|
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
|
||||||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
||||||
|
|
||||||
#: accounts/settings.py:222
|
#: accounts/settings.py:222
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -211,6 +212,14 @@ msgstr ""
|
||||||
msgid "Phone number must be entered in the format: '+989999999999'."
|
msgid "Phone number must be entered in the format: '+989999999999'."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:76
|
||||||
|
msgid "otp expire time not reached"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:81
|
||||||
|
msgid "otp expire time not reached yet"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/oauth2_provider/application_confirm_delete.html:6
|
#: templates/oauth2_provider/application_confirm_delete.html:6
|
||||||
msgid "Are you sure to delete the application"
|
msgid "Are you sure to delete the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-02-03 10:03+0000\n"
|
"POT-Creation-Date: 2026-02-03 10:16+0000\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"
|
||||||
|
|
@ -17,6 +17,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: accounts/settings.py:222
|
#: accounts/settings.py:222
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -210,6 +211,14 @@ msgstr ""
|
||||||
msgid "Phone number must be entered in the format: '+989999999999'."
|
msgid "Phone number must be entered in the format: '+989999999999'."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:76
|
||||||
|
msgid "otp expire time not reached"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:81
|
||||||
|
msgid "otp expire time not reached yet"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/oauth2_provider/application_confirm_delete.html:6
|
#: templates/oauth2_provider/application_confirm_delete.html:6
|
||||||
msgid "Are you sure to delete the application"
|
msgid "Are you sure to delete the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-02-03 10:03+0000\n"
|
"POT-Creation-Date: 2026-02-03 10:16+0000\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"
|
||||||
|
|
@ -17,6 +17,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
|
||||||
#: accounts/settings.py:222
|
#: accounts/settings.py:222
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -210,6 +211,14 @@ msgstr ""
|
||||||
msgid "Phone number must be entered in the format: '+989999999999'."
|
msgid "Phone number must be entered in the format: '+989999999999'."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:76
|
||||||
|
msgid "otp expire time not reached"
|
||||||
|
msgstr "رمز یکبار مصرف قبلی هنوز معتبر است."
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:81
|
||||||
|
msgid "otp expire time not reached yet"
|
||||||
|
msgstr "رمز یکبار مصرف قبلی هنوز معتبر است."
|
||||||
|
|
||||||
#: templates/oauth2_provider/application_confirm_delete.html:6
|
#: templates/oauth2_provider/application_confirm_delete.html:6
|
||||||
msgid "Are you sure to delete the application"
|
msgid "Are you sure to delete the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-02-03 10:04+0000\n"
|
"POT-Creation-Date: 2026-02-03 10:16+0000\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"
|
||||||
|
|
@ -17,6 +17,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
|
||||||
#: accounts/settings.py:222
|
#: accounts/settings.py:222
|
||||||
msgid "English"
|
msgid "English"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
@ -210,6 +211,14 @@ msgstr ""
|
||||||
msgid "Phone number must be entered in the format: '+989999999999'."
|
msgid "Phone number must be entered in the format: '+989999999999'."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:76
|
||||||
|
msgid "otp expire time not reached"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/users/serializers.py:81
|
||||||
|
msgid "otp expire time not reached yet"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/oauth2_provider/application_confirm_delete.html:6
|
#: templates/oauth2_provider/application_confirm_delete.html:6
|
||||||
msgid "Are you sure to delete the application"
|
msgid "Are you sure to delete the application"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue