File: 0002-Fix-loading-of-translations.patch

package info (click to toggle)
songwrite 3-0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,532 kB
  • sloc: python: 9,169; xml: 1,369; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Sebastian Ramacher <sramacher@debian.org>
Date: Sun, 22 Mar 2020 11:29:02 +0100
Subject: Fix loading of translations

---
 globdef.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/globdef.py b/globdef.py
index fba6600..6a48c07 100644
--- a/globdef.py
+++ b/globdef.py
@@ -37,7 +37,7 @@ try:
   translator = gettext.translation("songwrite3", LOCALEDIR)
 except IOError: # Non-supported language, defaults to english
   translator = gettext.translation("songwrite3", LOCALEDIR, ("en",))
-translator.install(1)
+translator.install()
 
 CONFIGFILE = os.path.expanduser(os.path.join("~", ".songwrite3"))
 NO_CONFIG  = 0