This commit is contained in:
Sayyid Hamid Mahdavi 2026-02-03 13:47:36 +03:30
parent 3f5368cd82
commit b763d5ad4e
6 changed files with 42 additions and 6 deletions

View file

@ -73,12 +73,12 @@ class RequestOTPSerializer(serializers.ModelSerializer):
try:
user.set_otp()
except Exception as e:
raise UnprocessableEntity('otp expire time not reached')
raise UnprocessableEntity(_('otp expire time not reached'))
user.send_otp()
else:
raise UnprocessableEntity('otp expire time not reached yet')
raise UnprocessableEntity(_('otp expire time not reached yet'))
self.instance = user
return user

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"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"
#: accounts/settings.py:222
msgid "English"
msgstr ""
@ -211,6 +212,14 @@ msgstr ""
msgid "Phone number must be entered in the format: '+989999999999'."
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
msgid "Are you sure to delete the application"
msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: accounts/settings.py:222
msgid "English"
msgstr ""
@ -210,6 +211,14 @@ msgstr ""
msgid "Phone number must be entered in the format: '+989999999999'."
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
msgid "Are you sure to delete the application"
msgstr ""

Binary file not shown.

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: accounts/settings.py:222
msgid "English"
msgstr ""
@ -210,6 +211,14 @@ msgstr ""
msgid "Phone number must be entered in the format: '+989999999999'."
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
msgid "Are you sure to delete the application"
msgstr ""

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: accounts/settings.py:222
msgid "English"
msgstr ""
@ -210,6 +211,14 @@ msgstr ""
msgid "Phone number must be entered in the format: '+989999999999'."
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
msgid "Are you sure to delete the application"
msgstr ""