From a62ed23315d5af0a237b97823662a4254743081f Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 29 Jul 2025 15:05:09 +0800 Subject: [PATCH] fix: correct gettext usage for application publish error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1058890 --user=王孝刚 【应用】应用未发布状态下对话,提示语国际化不对 https://www.tapd.cn/62980211/s/1744119 --- apps/chat/serializers/chat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/chat/serializers/chat.py b/apps/chat/serializers/chat.py index 021f0ce0d..c4c2027c6 100644 --- a/apps/chat/serializers/chat.py +++ b/apps/chat/serializers/chat.py @@ -419,8 +419,7 @@ class OpenChatSerializers(serializers.Serializer): '-create_time')[0:1].first() if application_version is None: 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: return self.open_simple(application) else: