<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My brain is here &#187; Internalization</title>
	<atom:link href="http://casa.apertus.es/blog/tag/internalization/feed/" rel="self" type="application/rss+xml" />
	<link>http://casa.apertus.es/blog</link>
	<description>I hope you like it.</description>
	<lastBuildDate>Mon, 06 Sep 2010 11:35:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Internalization a site using forrest 0.7-dev</title>
		<link>http://casa.apertus.es/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/</link>
		<comments>http://casa.apertus.es/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/#comments</comments>
		<pubDate>Tue, 10 May 2005 17:39:03 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[Forrest]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Internalization]]></category>

		<guid isPermaLink="false">http://casa.che-che.com/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/</guid>
		<description><![CDATA[<p>I think that many people are asking for a way to display  the same look and feel and different language using forrest.</p>
<p>I gather some information about how to do it here. I used this example for español and English example.</p>


 First you need to download a dev version as for today (10 May 2005)
forrest seed
set [...]]]></description>
			<content:encoded><![CDATA[<p>I think that many people are asking for a way to display  the same look and feel and different language using forrest.</p>
<p>I gather some information about how to do it here. I used this example for español and English example.</p>
<ul>
<li>
<ol> First you need to download a dev version as for today (10 May 2005)</ol>
<ol><code>forrest seed</code></ol>
<ol>set project.i18n=true on forrest.properties</ol>
<ol>copy index.xml to index.es.xml</ol>
<ol>modify index.es.xml to display some Spanish text</ol>
</li>
</ul>
<p>This should be enough for test if  your setup is right.<br />
load on your browser http://localhost:8888/ and <a href="http://www.mozilla.org/support/firefox/tips#oth_language">change language</a>. If everything goes right. you should be able to see the menus, tabs and content in Spanish (or whatever).</p>
<p>Now that we know that is it working on a live server, we are going to put it on a static view. We are going to start with a default language en (English)</p>
<ul>
<li>
<ol><code> cp $FORREST_HOME/main/webapp/WEB-INF/cli.xconf /var/tmp/fs</code></ol>
<ol> add <code>project.configfile=/var/tmp/fs/cli.xconf</code> to <code>forrest.properties</code></ol>
<ol> modify <code>cli.xconf</code> and add this line:<br />
&lt;uri type=&#8221;insert&#8221; src-prefix=&#8221;" src=&#8221;index.html&#8221; follow-links=&#8221;false&#8221; dest=&#8221;/var/tmp/fs/build/i18n/*.en&#8221; /&gt;</ol>
<ol>run <code>forrest site</code></ol>
</li>
</ul>
<p>You should be able to see the fresh-site with all the files ending on html.en . Next is the turn of the alternative language.. Spanish.. <img src='http://casa.apertus.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ul>
<li>
<ol>export LANG=es</ol>
<ol> modify cli.xconf and change the dest attribute on the uri element from *.en to *.es</ol>
<ol>execute <code>forrest site</code></ol>
</li>
</ul>
<p>That should be enough in order to test it. you need to copy the destination folder (/var/tmp/fs/build/i18n) to a web directory in an Apache server. Well, I do a (cd /var/www; ln -s /var/tmp/fs/build/i18n i18n) but that is because I run a web server on my laptop. so http://localhost/i18n is enough for me to test.</p>
<p>Cheers,<br />
Cheche</p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2005/05/10/internalization-a-site-using-forrest-07-dev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
