File: fix-default-language

package info (click to toggle)
python-setuptools-gettext 0.1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 343; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/setuptools_gettext/__init__.py b/setuptools_gettext/__init__.py
index 44e06ce..453d89b 100644
--- a/setuptools_gettext/__init__.py
+++ b/setuptools_gettext/__init__.py
@@ -110,7 +110,7 @@ class build_mo(Command):
             logging.warn("Skip compiling po files.")
             return
 
-        default_lang = self.gettext_default_language
+        default_lang = self.distribution.gettext_default_language
 
         if default_lang in self.lang:
             if find_executable("msginit") is None: