Skip to content

Commit a62ed23

Browse files
committed
fix: correct gettext usage for application publish error message
--bug=1058890 --user=王孝刚 【应用】应用未发布状态下对话,提示语国际化不对 https://www.tapd.cn/62980211/s/1744119
1 parent 392aaf9 commit a62ed23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/chat/serializers/chat.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ def open(self):
419419
'-create_time')[0:1].first()
420420
if application_version is None:
421421
raise AppApiException(500,
422-
gettext(
423-
"The application has not been published. Please use it after publishing."))
422+
_("The application has not been published. Please use it after publishing."))
424423
if application.type == ApplicationTypeChoices.SIMPLE:
425424
return self.open_simple(application)
426425
else:

0 commit comments

Comments
 (0)