修改一处错误

This commit is contained in:
Ate329 2023-12-10 22:34:11 +02:00
parent 2056f3b89e
commit e04298519f

View File

@ -62,8 +62,8 @@ class StopwordsWindow(tk.Tk):
# Check if each word already exists in the original file before appending # Check if each word already exists in the original file before appending
duplicates = [word for word in word_list if word in self.original_stopwords] duplicates = [word for word in word_list if word in self.original_stopwords]
if duplicates: if duplicates:
message = f"Words {', '.join(duplicates)} already exist in the original file." message = f"以下屏蔽词已存在于原始文件中: {', '.join(duplicates)}"
messagebox.showinfo("Duplicate Words", message) messagebox.showinfo("重复词汇", message)
else: else:
# Update the original stopwords set with new words # Update the original stopwords set with new words
self.original_stopwords.update(word_list) self.original_stopwords.update(word_list)