Skip site navigation (1) Skip section navigation (2)

Re: Todo for 'portal', programmers perspective

From: Alexey Borzov <borz_off(at)cs(dot)msu(dot)su>
To: webmaster(at)letzplay(dot)de
Cc: pgsql-www(at)postgresql(dot)org
Subject: Re: Todo for 'portal', programmers perspective
Date: 2004-01-15 16:56:47
Message-ID: 4006C64F.9060703@cs.msu.su (view raw or flat)
Thread:
Lists: pgsql-www
Hi!

Andreas Grabm├╝ller wrote:
> However. I personally like template systems. But how do you want to handle the translations with it? I don't think having different templates for different languages is a good idea as this would destroy all benefits of templates (we would have to manage the same layout multiple times).

The one I originally proposed allows callback functions to be defined.

I.e. instead of

<a href="..."><?php translate('Download'); ?></a>

you write

<a href="...">func_translate(Download)</a>

within a template, this is quite viewable and editable and the string 
translations can still be kept in a central place.


In response to

pgsql-www by date

Next:From: Alexey BorzovDate: 2004-01-15 16:58:39
Subject: Re: Todo for 'portal', programmers perspective
Previous:From: Dave PageDate: 2004-01-15 16:38:40
Subject: Re: Todo for 'portal', programmers perspective

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group