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

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Thu Feb 24 00:49:34 CET 2011


On Thu, 24 Feb 2011 00:40:03 +0100, "Timo B. Hübel" <t.h at gmx.info> wrote:
> 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.
> 

Agreed. I have exactly this situation.

Regards,
  Dmitry

> Just my 2 cents,
> Timo
> 
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel



More information about the web-devel mailing list