mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 18:44:43 +00:00
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:
parent
1e5d9795df
commit
e399999acb
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue