fix: correct gettext usage for application publish error message
--bug=1058890 --user=王孝刚 【应用】应用未发布状态下对话,提示语国际化不对 https://www.tapd.cn/62980211/s/1744119
This commit is contained in:
parent
392aaf9d87
commit
a62ed23315
@ -419,8 +419,7 @@ class OpenChatSerializers(serializers.Serializer):
|
|||||||
'-create_time')[0:1].first()
|
'-create_time')[0:1].first()
|
||||||
if application_version is None:
|
if application_version is None:
|
||||||
raise AppApiException(500,
|
raise AppApiException(500,
|
||||||
gettext(
|
_("The application has not been published. Please use it after publishing."))
|
||||||
"The application has not been published. Please use it after publishing."))
|
|
||||||
if application.type == ApplicationTypeChoices.SIMPLE:
|
if application.type == ApplicationTypeChoices.SIMPLE:
|
||||||
return self.open_simple(application)
|
return self.open_simple(application)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user