perl - How to display HTML tags in UTF8 Translations in Template tool kit -
i working in web based website, using perl, mysql 5, apache , template toolkit.
planning introduce support multiple language in our website.
have done is
if have line in our template file,
<meta http-equiv="content-type" content="text/html; charset=utf-8">
download "<a href="/help/materials/brouchure_catalog.xls">brouchure catalog sample</a>" reference purpose
we have converted to
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<h1>[% glossary.$language.brouchure_catalog_sample_info %].<\h1>
$language
getting value user selects when logs in.
$language
variable set according user's language preference.
import excel looks this:
all translation google translator. demo purpose only
how appears in mysql db: characters appearing correctly in website, translations have html tags happening:
download "brouchure catalog sample" reference purpose
is appearing correctly in english language, same behaviour not appearing spanish language.
is there filters can used in these type of situation in template tool kit? or wrong html
i use template toolkit dumper plugin
[% use dumper %]
to show 'glossary'
[% dumper.dump(glossary) %]
in template. maybe glossary not filled propperly.
Comments
Post a Comment