개정판 6c0e9c46
issue #774: upload project and ts file
DTI_PID/DTI_PID/ID2.pro | ||
---|---|---|
1 |
SOURCES += MainWindow.py License_UI.py License.py |
|
2 |
TRANSLATIONS = translate/ko_kr.ts |
DTI_PID/DTI_PID/License.py | ||
---|---|---|
10 | 10 |
from PyQt5.QtGui import * |
11 | 11 |
from PyQt5.QtWidgets import * |
12 | 12 |
from PyQt5.QtSvg import * |
13 |
|
|
13 |
from PyQt5.QtCore import QTranslator |
|
14 |
from PyQt5.QtCore import QLocale |
|
14 | 15 |
import base64 |
15 | 16 |
|
16 | 17 |
import License_UI |
... | ... | |
24 | 25 |
|
25 | 26 |
def __init__(self, parent): |
26 | 27 |
QDialog.__init__(self, parent) |
27 |
|
|
28 |
|
|
29 |
self.translator = QTranslator() # I18N 관련 |
|
30 |
|
|
28 | 31 |
self.ui = License_UI.Ui_DialogLicense() |
29 | 32 |
self.ui.setupUi(self) |
30 | 33 |
self.setWindowFlags(self.windowFlags() & ~Qt.WindowCloseButtonHint & ~Qt.WindowContextHelpButtonHint) |
... | ... | |
128 | 131 |
msg = QMessageBox() |
129 | 132 |
msg.setIcon(QMessageBox.Critical) |
130 | 133 |
msg.setText('무효한 라이센스 키입니다.\n(Expected Computer Name({}) is not match to your computer name({}))'.format(decoded, os.environ['COMPUTERNAME'])) |
131 |
msg.setWindowTitle("라이센스")
|
|
134 |
msg.setWindowTitle(self.tr("License"))
|
|
132 | 135 |
msg.setStandardButtons(QMessageBox.Ok) |
133 | 136 |
msg.exec_() |
134 | 137 |
except Exception as ex: |
DTI_PID/DTI_PID/translate/ko_kr.ts | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<!DOCTYPE TS><TS version="2.0" language="ko_KR" sourcelanguage=""> |
|
3 |
<context encoding="UTF-8"> |
|
4 |
<name>DialogLicense</name> |
|
5 |
<message encoding="UTF-8"> |
|
6 |
<location filename="../License_UI.py" line="48"/> |
|
7 |
<source>라이센스</source> |
|
8 |
<translation type="unfinished"></translation> |
|
9 |
</message> |
|
10 |
<message encoding="UTF-8"> |
|
11 |
<location filename="../License_UI.py" line="49"/> |
|
12 |
<source>라이센스 키 : </source> |
|
13 |
<translation type="unfinished"></translation> |
|
14 |
</message> |
|
15 |
</context> |
|
16 |
<context> |
|
17 |
<name>QLicenseDialog</name> |
|
18 |
<message> |
|
19 |
<location filename="../License.py" line="134"/> |
|
20 |
<source>License</source> |
|
21 |
<translation type="unfinished">라이선스</translation> |
|
22 |
</message> |
|
23 |
</context> |
|
24 |
</TS> |
내보내기 Unified diff