-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Bump PORTREVISION for package change PR: 254504 Submitted by: kai Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch Reference: ejwa/gitinspector#213 (comment) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569587 35697150-7ecd-e111-bb59-0022644237b5
- Loading branch information
sunpoet
committed
Mar 30, 2021
1 parent
42f09a3
commit a5e6587
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
devel/gitinspector/files/patch-gitinspector-localization.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch | ||
Reference: https://github.com/ejwa/gitinspector/issues/213#issuecomment-722732702 | ||
|
||
--- gitinspector/localization.py.orig 2016-02-03 13:25:05 UTC | ||
+++ gitinspector/localization.py | ||
@@ -73,7 +73,7 @@ def init(): | ||
__enabled__ = True | ||
__installed__ = True | ||
- __translation__.install(True) | ||
+ __translation__.install() | ||
|
||
def check_compatibility(version): | ||
if isinstance(__translation__, gettext.GNUTranslations): | ||
@@ -98,7 +98,7 @@ def get_date(): | ||
|
||
def enable(): | ||
if isinstance(__translation__, gettext.GNUTranslations): | ||
- __translation__.install(True) | ||
+ __translation__.install() | ||
|
||
global __enabled__ | ||
__enabled__ = True | ||
@@ -108,4 +108,4 @@ def disable(): | ||
__enabled__ = False | ||
|
||
if __installed__: | ||
- gettext.NullTranslations().install(True) | ||
+ gettext.NullTranslations().install() |