Telford wrote:
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,
I'm afraid I can't help with this as I do not use the i18n features of
Forrest. There are plenty of people who do though, so hand in there
someone will speak up when they have time.
Offering to document the process will certainly provide additional
motivation for devs to help - thanks!
Ross