Skip to content

Commit f9e395a

Browse files
committed
1.7.6.0
1 parent 993e39b commit f9e395a

File tree

3 files changed

+139
-87
lines changed

3 files changed

+139
-87
lines changed

boot_config.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
import gzip, json
88
from os.path import dirname, join, isdir, expanduser
99

10+
11+
def _(text): # for future gettext support
12+
return text
13+
1014
APP_NAME = "KOHighlights"
1115
APP_DIR = dirname(os.path.abspath(sys.argv[0]))
1216
os.chdir(APP_DIR) # Set the current working directory to the app's directory
1317

1418
PORTABLE = False
1519
PYTHON2 = sys.version_info < (3, 0)
1620

17-
USE_QT6 = True # select between PySide2/Qt5 and Pyside6/Qt6 if both are installed
21+
USE_QT6 = False # select between PySide2/Qt5 and Pyside6/Qt6 if both are installed
1822

1923
if PYTHON2:
2024
from io import open
@@ -34,9 +38,8 @@
3438
QT4 = qt_version == "4"
3539
QT5 = qt_version == "5"
3640
QT6 = qt_version == "6"
37-
if QT6 and QT5:
38-
if USE_QT6:
39-
QT5 = False
41+
if QT6 and QT5 and USE_QT6:
42+
QT5 = False
4043

4144
if sys.platform == "win32": # Windows
4245
import win32api
@@ -124,6 +127,10 @@ def except_hook(class_type, value, trace_back):
124127
DB_MD5, DB_DATE, DB_PATH, DB_DATA = range(4) # db data (columns)
125128
FILTER_ALL, FILTER_HIGH, FILTER_COMM, FILTER_TITLES = range(4) # db data (columns)
126129

130+
NO_TITLE = _("NO TITLE FOUND")
131+
NO_AUTHOR = _("NO AUTHOR FOUND")
132+
OLD_TYPE = _("OLD TYPE FILE")
133+
DO_NOT_SHOW = _("Don't show this again")
127134
DB_VERSION = 0
128135
DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
129136
CSV_HEAD = "Title\tAuthors\tPage\tDate\tChapter\tHighlight\tComment\n"

0 commit comments

Comments
 (0)