Skip to content

Commit b4d3939

Browse files
committed
fix: Resolve the error message
--bug=1052045 --user=王孝刚 【应用】-应用中使用的函数被删除后,演示中提示函数库被删除,提示错误 https://www.tapd.cn/57709429/s/1651371
1 parent d9e18f1 commit b4d3939

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apps/application/flow/step_node/function_lib_node/i_function_lib_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def is_valid(self, *, raise_exception=False):
3232
super().is_valid(raise_exception=True)
3333
f_lib = QuerySet(FunctionLib).filter(id=self.data.get('function_lib_id')).first()
3434
if f_lib is None:
35-
raise Exception(_('The library has been deleted'))
35+
raise Exception(_('The function has been deleted'))
3636

3737

3838
class IFunctionLibNode(INode):

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ msgid "Library ID"
490490
msgstr ""
491491

492492
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
493-
msgid "The library has been deleted"
493+
msgid "The function has been deleted"
494494
msgstr ""
495495

496496
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ msgid "Library ID"
492492
msgstr "函数库id"
493493

494494
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
495-
msgid "The library has been deleted"
496-
msgstr "函数库已被删除"
495+
msgid "The function has been deleted"
496+
msgstr "函数已被删除"
497497

498498
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25
499499
msgid "Is this field required"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ msgid "Library ID"
493493
msgstr "函數庫id"
494494

495495
#: .\apps\application\flow\step_node\function_lib_node\i_function_lib_node.py:35
496-
msgid "The library has been deleted"
497-
msgstr "函數庫已被刪除"
496+
msgid "The function has been deleted"
497+
msgstr "函數已被刪除"
498498

499499
#: .\apps\application\flow\step_node\function_node\i_function_node.py:25
500500
msgid "Is this field required"

0 commit comments

Comments
 (0)