1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/eolie/dont-require-py3-gettext-support.patch
2020-11-01 21:09:40 +00:00

20 lines
639 B
Diff

diff --git a/eolie.in b/eolie.in
index 837ba81..2a2d29a 100755
--- a/eolie.in
+++ b/eolie.in
@@ -34,15 +34,6 @@ def install_excepthook():
if __name__ == "__main__":
install_excepthook()
- try:
- locale.bindtextdomain('eolie', localedir)
- locale.textdomain('eolie')
- except AttributeError as e:
- # Python built without gettext support doesn't have bindtextdomain()
- # and textdomain()
- print("Couldn't bind the gettext translation domain. Some translations"
- " won't work.\n{}".format(e))
-
gettext.bindtextdomain('eolie', localedir)
gettext.textdomain('eolie')