Skip to content
Snippets Groups Projects
Commit 184c372d authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

better translation support

parent d6895aa8
Branches
No related tags found
No related merge requests found
......@@ -15,13 +15,22 @@ class Trans:
'UPLOAD': 'Upload the DCC XML file',
'FILE': 'File',
'XSD_VERSION': 'XSD version',
'INTERNAL': 'internal XML',
'INTERNAL': 'inside XML',
'LATEST': 'latest'
},
'ru':{
'TITEL': ' Служба валидации',
'UPLOAD': 'Загрузить файл DCC XML',
'FILE': 'файл',
'XSD_VERSION': 'XSD версия',
'INTERNAL': 'внутри XML',
'LATEST': 'последний'
}
}
def show_html(self, version, language, xsd_versions):
print('xsd_versions:' + xsd_versions)
d = self.mapping[language]
if not d:
d = self.mapping['en']
template = 'html/validation.html'
return render_template(template, VERSION=version,
XSD_VERSIONS=xsd_versions, **d)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment