Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Feb 14, 2023
1 parent 547860a commit 30ddfa0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hiddifypanel/panel/admin/DomainAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def on_model_change(self, form, model, is_created):
for c in configs:
if "domain" in c and ConfigEnum.decoy_domain!=c:
if model.domain==configs[c]:
raise ValidationError(f"another {model.mode} is exist")
raise ValidationError(_("You have used this domain in: ")+_(f"config.{c}.label"))

dip=hiddify.get_domain_ip(model.domain)
if dip==None:
Expand Down
Binary file modified hiddifypanel/translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
9 changes: 7 additions & 2 deletions hiddifypanel/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgid ""
msgstr ""
"Project-Id-Version: HiddifyPanel\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-14 18:20+0100\n"
"PO-Revision-Date: 2023-02-14 11:20-0600\n"
"POT-Creation-Date: 2023-02-14 18:34+0100\n"
"PO-Revision-Date: 2023-02-14 11:34-0600\n"
"Last-Translator: hidden u\n"
"Language-Team: English (USA)\n"
"Language: en_US\n"
Expand Down Expand Up @@ -193,6 +193,11 @@ msgstr "IP"
msgid "admin link"
msgstr "Admin"

#: hiddifypanel/panel/admin/DomainAdmin.py:71
#, fuzzy
msgid "You have used this domain in: "
msgstr "You have used this domain in: "

# | msgid ""
# | "Domain can not be resolved! There is a problem in your domain. Please "
# | "check your Domain configurations."
Expand Down
Binary file modified hiddifypanel/translations/fa/LC_MESSAGES/messages.mo
Binary file not shown.
8 changes: 6 additions & 2 deletions hiddifypanel/translations/fa/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgid ""
msgstr ""
"Project-Id-Version: HiddifyPanel\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-14 18:20+0100\n"
"PO-Revision-Date: 2023-02-14 11:20-0600\n"
"POT-Creation-Date: 2023-02-14 18:34+0100\n"
"PO-Revision-Date: 2023-02-14 11:34-0600\n"
"Last-Translator: hidden u\n"
"Language: fa\n"
"Language-Team: Persian\n"
Expand Down Expand Up @@ -209,6 +209,10 @@ msgstr "آی‌پی"
msgid "admin link"
msgstr "مدیریت"

#: hiddifypanel/panel/admin/DomainAdmin.py:71
msgid "You have used this domain in: "
msgstr "شما از این دامنه در بخش زیر استفاده کرده اید: "

# | msgid ""
# | "Domain can not be resolved! There is a problem in your domain. Please
# check "
Expand Down
Binary file modified hiddifypanel/translations/zh/LC_MESSAGES/messages.mo
Binary file not shown.
8 changes: 6 additions & 2 deletions hiddifypanel/translations/zh/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ msgid ""
msgstr ""
"Project-Id-Version: HiddifyPanel\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-14 18:20+0100\n"
"PO-Revision-Date: 2023-02-14 11:20-0600\n"
"POT-Creation-Date: 2023-02-14 18:34+0100\n"
"PO-Revision-Date: 2023-02-14 11:34-0600\n"
"Last-Translator: hidden u\n"
"Language: zh\n"
"Language-Team: Chinese\n"
Expand Down Expand Up @@ -182,6 +182,10 @@ msgstr "知识产权"
msgid "admin link"
msgstr "行政"

#: hiddifypanel/panel/admin/DomainAdmin.py:71
msgid "You have used this domain in: "
msgstr ""

# | msgid ""
# | "Domain can not be resolved! There is a problem in your domain. Please
# check "
Expand Down

0 comments on commit 30ddfa0

Please sign in to comment.