Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 12938 invoked from network); 1 Apr 2007 00:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2007 00:55:59 -0000 Received: (qmail 78458 invoked by uid 500); 1 Apr 2007 00:56:06 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 78429 invoked by uid 500); 1 Apr 2007 00:56:06 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 78420 invoked by uid 99); 1 Apr 2007 00:56:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2007 17:56:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [206.188.74.179] (HELO junior.heathertelford.com) (206.188.74.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Mar 2007 17:55:56 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by junior.heathertelford.com (Postfix) with ESMTP id B49E758FA8D for ; Sat, 31 Mar 2007 20:55:34 -0400 (EDT) Message-ID: <460F0306.9010903@yahoo.ca> Date: Sat, 31 Mar 2007 20:55:34 -0400 From: Telford User-Agent: Thunderbird 1.5.0.10 (X11/20070322) MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: Can't create a multi-language static site References: <20553.80815.qm@web51308.mail.re2.yahoo.com> <46015BEA.4050207@apache.org> In-Reply-To: <46015BEA.4050207@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ross Gardler wrote: > Andrew Telford wrote: >> I am using the current svn HEAD (r520669). I added >> project.i18n=true > > ... > >> The comment that comes with the "project.i18n" property says that "if >> you want to use it for static site then modify the JVM >> system.language and run once per language". This part escapes me. I >> have tried various things, like adding >> "forrest.jvmargs=-Dsystem.language=fr" or >> "forrest.jvmargs="-Dsystem.language=fr"" to forrest.properties, doing >> an "export LANG=fr" in the shell before running forrest, etc., but >> nothing seems to result in forrest generating content in build/site/fr. > >> Can anyone give some specific instructions to help me "run once per >> language" to generate a multilanguage static site? I am on gentoo linux. > > Does http://article.gmane.org/gmane.text.xml.forrest.user/3620 help? > I tried with a freshly generated seed site and using the current forrest HEAD (524481) to follow the instructions in http://casa.che-che.com/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/ . It does generate files with the .en and .es endings, which would be great for apache content negotiation, but the the created index.html.es is generated from the source file file index.xml, not index.es.xml. It seems that the exported LANG environment variable is having no effect. (It does pick up the content from index.es.xml if I browse to a dynamic site ("forrest run") and set the browser language preferences.) Either these instructions are out of date for 0.8-dev or I have made a mistake. Can someone confirm either way? Are there any other mechanisms, such as property settings, for setting the language when doing a "forrest site"? I would be happy contribute some documentation if I could get it to work, Andrew > It would be really useful if you could write an outline doc describing > how you get i18n working. This comes up fairly frequently and we > disparately need a doc (as you have discovered). It doesn't matter if > it is not complete, just something more than we currently have. > > Ross