Skip to content

Commit 4c7e8c7

Browse files
authored
Merge pull request #170 from jitseniesen/get_translation
PR: Fix translations
2 parents 3b29d3b + 5dba990 commit 4c7e8c7

File tree

9 files changed

+9
-8
lines changed

9 files changed

+9
-8
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ include CHANGELOG.md
22
include LICENSE.txt
33
include README.md
44
recursive-include spyder_unittest *.py
5+
recursive-include spyder_unittest/locale *.mo

requirements/conda.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
lxml
2-
spyder>=5.2
2+
spyder>=5.2,<6

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_package_data(name, extlist):
3737

3838

3939
# Requirements
40-
REQUIREMENTS = ['lxml', 'spyder>=5.2', 'pyzmq']
40+
REQUIREMENTS = ['lxml', 'spyder>=5.2,<6', 'pyzmq']
4141
EXTLIST = ['.jpg', '.png', '.json', '.mo', '.ini']
4242
LIBNAME = 'spyder_unittest'
4343

spyder_unittest/backend/noserunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from spyder_unittest.backend.runnerbase import Category, RunnerBase, TestResult
1414

1515
try:
16-
_ = get_translation("unittest", dirname="spyder_unittest")
16+
_ = get_translation('spyder_unittest')
1717
except KeyError:
1818
import gettext
1919
_ = gettext.gettext

spyder_unittest/backend/pytestworker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from spyder_unittest.backend.zmqstream import ZmqStreamWriter
2323

2424
try:
25-
_ = get_translation("unittest", dirname="spyder_unittest")
25+
_ = get_translation('spyder_unittest')
2626
except KeyError: # pragma: no cover
2727
import gettext
2828
_ = gettext.gettext

spyder_unittest/unittestplugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from spyder_unittest.widgets.configdialog import Config
2121
from spyder_unittest.widgets.unittestgui import UnitTestWidget
2222

23-
_ = get_translation("unittest", dirname="spyder_unittest")
23+
_ = get_translation('spyder_unittest')
2424

2525

2626
class UnitTestPluginActions:

spyder_unittest/widgets/configdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from spyder.utils import icon_manager as ima
2525

2626
try:
27-
_ = get_translation("unittest", dirname="spyder_unittest")
27+
_ = get_translation('spyder_unittest')
2828
except KeyError:
2929
import gettext
3030
_ = gettext.gettext

spyder_unittest/widgets/datatree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from spyder_unittest.backend.runnerbase import Category
2323

2424
try:
25-
_ = get_translation("unittest", dirname="spyder_unittest")
25+
_ = get_translation('spyder_unittest')
2626
except KeyError:
2727
import gettext
2828
_ = gettext.gettext

spyder_unittest/widgets/unittestgui.py

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

3838
# This is needed for testing this module as a stand alone script
3939
try:
40-
_ = get_translation("unittest", dirname="spyder_unittest")
40+
_ = get_translation('spyder_unittest')
4141
except KeyError:
4242
import gettext
4343
_ = gettext.gettext

0 commit comments

Comments
 (0)