From dev-return-16536-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Thu Jun 02 17:10:00 2005 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 63982 invoked from network); 2 Jun 2005 17:09:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2005 17:09:59 -0000 Received: (qmail 62851 invoked by uid 500); 2 Jun 2005 17:09:58 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 62830 invoked by uid 500); 2 Jun 2005 17:09:58 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 62811 invoked by uid 99); 2 Jun 2005 17:09:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ns3.wkwyw.net (HELO ns3.wkwyw.net) (217.199.181.91) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 02 Jun 2005 10:09:56 -0700 Received: (qmail 16029 invoked from network); 2 Jun 2005 17:09:48 -0000 Received: from 82-69-78-226.dsl.in-addr.zen.co.uk (HELO ?192.168.0.4?) (82.69.78.226) by ns3.wkwyw.net with SMTP; 2 Jun 2005 17:09:48 -0000 Message-ID: <429F3D4E.7010607@apache.org> Date: Thu, 02 Jun 2005 18:09:34 +0100 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: How to avoid hard-coding site-visible message strings in skin files References: <1117657810.31990.37.camel@allegro.colcan.biz> <429ED28B.3010901@apache.org> <1117731885.12807.9.camel@localhost.localdomain> In-Reply-To: <1117731885.12807.9.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thorsten Scherler wrote: > On Thu, 2005-06-02 at 10:34 +0100, Ross Gardler wrote: > >>Pedro I. Sanchez wrote: >> >>>Hello, >>> >>>A few days ago I added issue FOR-506 on this topic. This is my original >>>message: >>> >>> "Text strings like "Copyright", "Published", and "Search" are >>> hardcoded into skin files like site2xhtml.xsl. When creating web >>> sites in languages other than English the web developer is forced >>> to create local versions of these skin files with the appropriated >>> translations. >>> >>> Instead, the DTD for the skinconf.xml should be improved to allow >>> these translations to be specified in this file. This would make >>> Forrest much easier to use." >>> ... > Actually I did not do it like you or Pedro suggested but the "cocoon" > way with a simple i18n transformer in the contracts. That means we have > a > src="org.apache.cocoon.transformation.XIncludeTransformer"/> > src="org.apache.cocoon.transformation.I18nTransformer"> > > location="messages"/> > location="messages"/> > > true > > in the output.xmap of the viewHelper.xhmtl and nothing in the > skinconf.xml. > > IMO that would be as well the way to implement it for the "old fashion" > skins but I do not know how this affect the cli. +1 especially if this is the official Cocoon way of doing things, there are some docs at http://cocoon.apache.org/2.1/userdocs/transformers/i18n-transformer.html Pedro, if you need pointers as to where in the sitemap this stuff would go for skins we can help out. Ross