Skip to content

Commit 3475e20

Browse files
committed
Fix tr
1 parent 288f6bb commit 3475e20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/fallback/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
QtCore.Signal = QtCore.pyqtSignal
1717
context = {
18-
'API': 'fallback', # for tr
18+
'API': 'pyqt5', # for tr
1919
'PYQT_VERSION': QtCore.PYQT_VERSION_STR,
2020
'QT_VERSION': QtCore.QT_VERSION_STR,
2121
'QtCore': QtCore,

src/tr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def _tr_dummy(context, text, disambiguation=None, n=None):
1212

1313
if state.enableGUI and not state.curses:
1414
try:
15+
from fallback import qtpy
1516
from qtpy import QtWidgets, QtCore, API
1617
except ImportError:
1718
_translate = _tr_dummy

0 commit comments

Comments
 (0)