File: disable-i18n.patch

package info (click to toggle)
python-feedvalidator 0~svn1022-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 652 kB
  • ctags: 2,452
  • sloc: python: 9,481; makefile: 27; sh: 8
file content (18 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Upstream support for multiple languages is broken. Always use "en"
  as language.
Bug: http://code.google.com/p/feedvalidator/issues/detail?id=10
Bug-Debian: http://bugs.debian.org/588983
Forwarded: not-needed

--- a/feedvalidator/formatter/base.py
+++ b/feedvalidator/formatter/base.py
@@ -8,7 +8,8 @@
 
 from UserList import UserList
 import os
-LANGUAGE = os.environ.get('LANGUAGE', 'en')
+# FIXME: upstream support for i18n is broken; hardcode "en"
+LANGUAGE = 'en'
 lang = __import__('feedvalidator.i18n.%s' % LANGUAGE, globals(), locals(), LANGUAGE)
 
 from feedvalidator.logging import Info, Warning, Error