[web-devel] [Yesod] rendering different templates for different languages

"Timo B. Hübel" t.h at gmx.info
Thu Feb 24 00:40:03 CET 2011


Hi,

> [...]
> In general, it's very uncommon that you need a completely separate set
> of templates for each language. Your markup, classes, styles, and
> logic will likely be identical for each language, and creating a
> separate template for each will just result in a lot of pain in the
> long run. Instead, you're likely better off having a single template
> and just translating strings.

well, from my experience in web-programming it's rather common that you
want both. Of course, the above is true for most of the "functional" or
"interactive" parts of the application. But quite often you also have a
whole bunch of pages with mainly static text content, help pages for
example. In these pages one wants the overall template functionality
like including the general page layout and navigation and stuff like
that, but you want to be able write rather large blocks of texts
(together with some basic markup, like <p> and friends) as a whole
I18n-ified template.

Just my 2 cents,
Timo



More information about the web-devel mailing list