Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

LANGUAGE now looks like "en_US:en" on Ubuntu 11.04; adapt

  • Loading branch information...
commit 1ca215b6c386d7db88d2cf80ec1082998b03bbe0 1 parent 27662ef
Sam Ruby authored
2  src/feedvalidator/formatter/application_test.py
View
@@ -9,7 +9,7 @@
from base import BaseFormatter
import feedvalidator
import os
-LANGUAGE = os.environ.get('LANGUAGE', 'en')
+LANGUAGE = os.environ.get('LANGUAGE', 'en').split(':')[1]
lang = __import__('feedvalidator.i18n.%s' % LANGUAGE, globals(), locals(), LANGUAGE)
class Formatter(BaseFormatter):
2  src/feedvalidator/formatter/base.py
View
@@ -8,7 +8,7 @@
from UserList import UserList
import os
-LANGUAGE = os.environ.get('LANGUAGE', 'en')
+LANGUAGE = os.environ.get('LANGUAGE', 'en').split(':')[-1]
lang = __import__('feedvalidator.i18n.%s' % LANGUAGE, globals(), locals(), LANGUAGE)
from feedvalidator.logging import Info, Warning, Error
Please sign in to comment.
Something went wrong with that request. Please try again.