i18n init

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1740 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-09-05 20:57:50 +00:00
parent 1e5d9795df
commit e399999acb

View file

@ -25,6 +25,7 @@ import types
import linkcheck.configuration
import linkcheck.url
import linkcheck.i18n
import linkcheck.strformat
_logfile = None
@ -108,7 +109,7 @@ def checkform (form):
lang = form['language'].value
if lang in _supported_langs:
os.environ['LC_MESSAGES'] = lang
#XXXinit_gettext()
linkcheck.i18n.init()
else:
raise FormError(_("unsupported language"))
# check url syntax