<?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>Webdevelopment at huuah.com &#187; language</title>
	<atom:link href="http://huuah.com/tag/language/feed/" rel="self" type="application/rss+xml" />
	<link>http://huuah.com</link>
	<description>webdevelopment, cms, php, javascript etc</description>
	<lastBuildDate>Sun, 20 Nov 2011 20:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Multi language setup in TYPO3</title>
		<link>http://huuah.com/multi-language-setup-in-typo3/</link>
		<comments>http://huuah.com/multi-language-setup-in-typo3/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:07:44 +0000</pubDate>
		<dc:creator>js - huuah</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[language]]></category>

		<guid isPermaLink="false">http://huuah.com/?p=320</guid>
		<description><![CDATA[<p>If you are building a site, which should support more than one language, there are two ways of doing this. Okay, perhaps there are more than two, but I will only give two examples.</p>
<p>The two I will cover is:<br />
1. Manually adding language page<br />
2. Integrated TYPO3 language support &#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>If you are building a site, which should support more than one language, there are two ways of doing this. Okay, perhaps there are more than two, but I will only give two examples.</p>
<p>The two I will cover is:<br />
1. Manually adding language page<br />
2. Integrated TYPO3 language support </p>
<a name="1.+Manually+adding+language+page"></a><h1>1. Manually adding language page</h1>
<p>This I will only touch briefly, as the solution should be obvious when the layout is presented. It should be very easy. Just create a tree like this and manually do the linking:<br />
<img src="/images/manuallylanguage.png" alt="Manually Language Setup" /><br />
That&#8217;s it. </p>
<a name="2.+Integrated+TYPO3+language+support"></a><h1>2. Integrated TYPO3 language support</h1>
<p>This is quite different compared to the first setup. We will be using the built-in language support in TYPO3, based on a tree structure like this:<br />
<img src="/images/typo3language1.png" alt="Tree structure for a TYPO3 language setup" /></p>
<p><strong>First step</strong> is to create the languages and this is done by selecting <code>list</code>, clicking your <code>site</code> in the tree structure and then adding a <code>website language</code>:<br />
<img src="/images/typo3language2.png" alt="Adding a website language step 1" /><br />
<img src="/images/typo3language3.png" alt="Adding a website language step 2" /></p>
<p>Then create the number of languages needed for the site.<br />
<img src="/images/typo3language4.png" alt="Adding a website language step 3" /></p>
<p><strong>Second step</strong> is the template configuration. Before doing this, we have to check which id numbers the languages has been given. This is done by selecting list on your site (just as when we created the languages) and the hover your mouse above each language:<br />
<img src="/images/typo3language5.png" alt="Adding a website language step 4 - getting the language id" /><br />
When this is done, then go to the template setup field and enter the following:</p>
<pre class="brush: plain; title: ; notranslate">
config.sys_language_overlay = hideNonTranslated
config.linkVars = L

[globalVar = GP:L=en]
  config.sys_language_uid=2
  config.language = en
[global]

[globalVar = GP:L=dk]
  config.sys_language_uid=1
  config.language = dk
[global]
</pre>
<p>What this does is:<br />
<code>config.sys_language_overlay = hideNonTranslated</code> will hide a page or content element, if is does not have content for the specific site. Remove or outcomment this, if you want all elements displayed.<br />
<code>config.linkVars = L</code> is the parameter used in the url for selecting language. Ie http://domain.tld/index.php?id=2?<code>L=dk</code><br />
<code>[globalVar = GP:L=dk]</code> a section like this, configures the language based on the parameter passed by the linkVars. Here it will trigger on <code>L=dk</code><br />
<code>config.sys_language_uid=1</code> this will join the dk-parameter with the language id 1, which we found earlier.<br />
<code>config.language = dk</code> this will set the page language for <code>dk</code></p>
<p><strong>Third and final step</strong> is to configure a page to use the new languages. This is done by selecting <code>list</code>, clicking <code>the page</code> and adding an <code>Alternative Page Language</code><br />
<img src="/images/typo3language6.png" alt="Adding a website language step 5" /><br />
<img src="/images/typo3language7.png" alt="Adding a website language step 6" /><br />
Then select which language you want to create a page for, type in the page title and save it.<br />
<img src="/images/typo3language8.png" alt="Adding a website language step 7" /><br />
We are now ready for translating the page. When editing an element on the newly configured page, there is now a new option in the top of the page. Select the new language and type in the translation.<br />
<img src="/images/typo3language9.png" alt="Adding a website language step 8" /></p>
<p><strong>That&#8217;s it</strong>. TYPO3 will now display the Danish content when visiting the page with the L=dk parameter in the url.</p>
]]></content:encoded>
			<wfw:commentRss>http://huuah.com/multi-language-setup-in-typo3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

