Skip to content

Commit 6b49251

Browse files
committed
更新權限up更新繁體
1 parent 0566391 commit 6b49251

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

facebook/authorization.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AuthorizationDialog(QDialog):
3131
def __init__(self, machine_code, parent=None):
3232
super().__init__(parent)
3333
self.machine_code = machine_code
34-
self.setWindowTitle("授权验证")
34+
self.setWindowTitle("授權驗證")
3535
self.setFixedSize(400, 300)
3636
self.setWindowFlags(Qt.Dialog | Qt.FramelessWindowHint)
3737
self.initUI()
@@ -43,20 +43,20 @@ def initUI(self):
4343
layout.setSpacing(15)
4444

4545
# 标题
46-
title_label = QLabel("授权验证")
46+
title_label = QLabel("授權驗證")
4747
title_label.setFont(QFont("微軟雅黑", 14, QFont.Bold))
4848
title_label.setAlignment(Qt.AlignCenter)
4949
title_label.setStyleSheet("color: #ff6b6b;")
5050
layout.addWidget(title_label)
5151

5252
# 提示信息
53-
info_label = QLabel("当前软件未授权或授权已过期")
53+
info_label = QLabel("當前軟件未授權或授權已經過期")
5454
info_label.setFont(QFont("微軟雅黑", 10))
5555
info_label.setAlignment(Qt.AlignCenter)
5656
layout.addWidget(info_label)
5757

5858
# 机器码显示
59-
machine_label = QLabel("请复制以下机器码联系管理员授权:")
59+
machine_label = QLabel("請複製以下機器碼聯繫管理員授權:")
6060
machine_label.setFont(QFont("微軟雅黑", 9))
6161
layout.addWidget(machine_label)
6262

@@ -76,7 +76,7 @@ def initUI(self):
7676
layout.addWidget(self.code_text)
7777

7878
# 复制按钮
79-
copy_btn = QPushButton("复制机器码")
79+
copy_btn = QPushButton("複製機器碼")
8080
copy_btn.setFixedHeight(35)
8181
copy_btn.clicked.connect(self.copy_code)
8282
copy_btn.setStyleSheet("""
@@ -124,7 +124,7 @@ def copy_code(self):
124124
# clipboard = QApplication.clipboard()
125125
# clipboard.setText(self.machine_code)
126126
pyperclip.copy(self.machine_code)
127-
QMessageBox.information(self, "提示", "机器码已复制到剪贴板")
127+
QMessageBox.information(self, "提示", "機器碼已複製到剪切板")
128128

129129
def close_application(self):
130130
QApplication.quit()
@@ -185,17 +185,17 @@ def check_authorization():
185185
if installDate <= current_date <= ExpiryDate:
186186
days_remaining = (ExpiryDate - current_date).days
187187
print(f"当前日期在有效期内。剩余天数: {days_remaining}")
188-
return True, f"授权有效,剩余{days_remaining}天", machine_code
188+
return True, f"授權有效,剩餘{days_remaining}天", machine_code
189189
else:
190190
print("当前日期不在有效期内。")
191-
return False, "授权已过期", machine_code
191+
return False, "授權已經過期", machine_code
192192
else:
193193
print("没有找到授权信息!")
194-
return False, "未找到授权信息", machine_code
194+
return False, "未找到授權信息", machine_code
195195

196196
except Exception as e:
197197
print(f"授权检查失败: {e}")
198-
return False, f"授权检查失败: {str(e)}", "获取失败"
198+
return False, f"授權檢測失敗: {str(e)}", "獲取失敗"
199199

200200

201201
def show_authorization_dialog(machine_code):

0 commit comments

Comments
 (0)