diff --git a/server.py b/server.py index 3ecb26c1682189e9c2ba3018eaabc4e47038aa6b..455dec6376ec646dd1f1fa3c5b044bad60a9d0d0 100644 --- a/server.py +++ b/server.py @@ -71,10 +71,7 @@ def validate(): def validation(): app.logger.debug('hit validation.html') l = str(request.accept_languages).split(',')[0][0:2] - if l != 'de': - l = 'en' - # x = '["2.4.0","2.3.0","2.2.0","2.1.1","2.1.0"]' - x = '[' + ','.join(versions) + ']'# javascript array definition as string + x = '[' + ','.join(versions) + ']'# javascript array definition return trans.show_html(version=utils.get_version(), language=l, xsd_versions=x) diff --git a/templates/html/validation.html b/templates/html/validation.html index 65a3a20613be1726559573928317b38e6b0a9a3d..265accb47773309132d3dc6534fe690cbe04af2d 100644 --- a/templates/html/validation.html +++ b/templates/html/validation.html @@ -1,9 +1,8 @@ -<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<html lang="{{LANGUAGE}}" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="description" content="DCC Validation Service"> - <meta name="author" content="wactbprot"> <title>DCC Validation Service</title> <!-- Bootstrap core CSS --> diff --git a/trans.py b/trans.py index 1e2f0196f2f91de04dfe9ace21f1eb6142bcc694..b83fe456c8e37d88ddd3c2b39c1491fc455f4c8a 100644 --- a/trans.py +++ b/trans.py @@ -33,4 +33,4 @@ class Trans: d = self.mapping['en'] template = 'html/validation.html' return render_template(template, VERSION=version, - XSD_VERSIONS=xsd_versions, **d) + XSD_VERSIONS=xsd_versions, LANGUAGE=language, **d)