Skip to content

Commit

Permalink
fix the issue of not able to run python3.10. Learned from ejwa#226 (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
YatingWang committed Dec 28, 2023
1 parent b837544 commit 89ec65c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitinspector/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def init():

__enabled__ = True
__installed__ = True
__translation__.install(True)
__translation__.install(None)

def check_compatibility(version):
if isinstance(__translation__, gettext.GNUTranslations):
Expand All @@ -93,7 +93,7 @@ def get_date():

def enable():
if isinstance(__translation__, gettext.GNUTranslations):
__translation__.install(True)
__translation__.install(None)

global __enabled__
__enabled__ = True
Expand All @@ -103,4 +103,4 @@ def disable():
__enabled__ = False

if __installed__:
gettext.NullTranslations().install(True)
gettext.NullTranslations().install(None)

0 comments on commit 89ec65c

Please sign in to comment.