X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AE68DD1B4C5 for ; Thu, 15 Jan 2004 16:57:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 17070-10 for ; Thu, 15 Jan 2004 12:57:12 -0400 (AST) Received: from rama.cmc.msu.ru (cs.radio-msu.net [158.250.0.26]) by svr1.postgresql.org (Postfix) with ESMTP id 8C9FCD1B44A for ; Thu, 15 Jan 2004 12:57:11 -0400 (AST) Received: from cs.msu.su (pc724-lin.intranet.cmc.msu.ru [10.3.34.136]) by rama.cmc.msu.ru (Postfix) with ESMTP id EA42834DBA; Thu, 15 Jan 2004 19:57:10 +0300 (MSK) Message-ID: <4006C64F.9060703@cs.msu.su> Date: Thu, 15 Jan 2004 19:56:47 +0300 From: Alexey Borzov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: ru, en, en-us MIME-Version: 1.0 To: webmaster@letzplay.de Cc: pgsql-www@postgresql.org Subject: Re: Todo for 'portal', programmers perspective References: <4006B1BC.5000306@cs.msu.su> <20040115162425.8670.qmail@osiris.gamecrashnet.de> In-Reply-To: <20040115162425.8670.qmail@osiris.gamecrashnet.de> X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/103 X-Sequence-Number: 3342 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 you write func_translate(Download) within a template, this is quite viewable and editable and the string translations can still be kept in a central place.