<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837?start=0#post237179</link>
			<description>&lt;p&gt;Hi, I tried it, followed it exactly, but not sure what went wrong? this is my test site: &lt;a href=&quot;http://kuholdings.com/demo/&quot;&gt;http://kuholdings.com/demo/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Please help!! thank you so much!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837?start=0#post237179&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/169837?start=0#post237179&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 27 Nov 2008 01:15:57 +1300</pubDate>
			<dc:creator>kudesign</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837?start=0#post237179</guid>
		</item>
		
		<item>
			<title>Re: Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837?start=0#post209247</link>
			<description>&lt;p&gt;I have solved my problems and wrote a recipe &lt;a href=&quot;http://doc.silverstripe.com/doku.php?id=recipes:pretty_i18n_urls&quot;&gt;http://doc.silverstripe.com/doku.php?id=recipes:pretty_i18n_urls&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Maybe it helps you get started.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837?start=0#post209247&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/169837?start=0#post209247&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 20 Oct 2008 06:13:05 +1300</pubDate>
			<dc:creator>Skipper</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837?start=0#post209247</guid>
		</item>
		
		<item>
			<title>Re: Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837?start=0#post202133</link>
			<description>&lt;p&gt;Hello!&lt;/p&gt;&lt;p&gt;Any results? A recipe to follow maybe? Any solution to solve the broken CSS and images path?&lt;/p&gt;&lt;p&gt;thanks a lot for your help.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837?start=0#post202133&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/169837?start=0#post202133&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 15 Oct 2008 19:55:41 +1300</pubDate>
			<dc:creator>François</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837?start=0#post202133</guid>
		</item>
		
		<item>
			<title>Re: Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837?start=0#post171205</link>
			<description>&lt;p&gt;Thanks, Hamish !&lt;/p&gt;&lt;p&gt;It is the part in your reply &quot;And then ... maybe&quot; where I am exactly. All else is fine already. I need to hack Director now, and maybe some other places to get my URLs right.&lt;/p&gt;&lt;p&gt;I'll go with trial and error now; I love it!&lt;/p&gt;&lt;p&gt;Thanks again!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837?start=0#post171205&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/169837?start=0#post171205&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Sep 2008 16:59:20 +1200</pubDate>
			<dc:creator>Skipper</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837?start=0#post171205</guid>
		</item>
		
		<item>
			<title>Re: Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837?start=0#post170942</link>
			<description>&lt;p&gt;This line in your _config.php should get you started:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Director::addRules(2, array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'$Lang/$URLSegment/$Action/$ID/$OtherID' =&amp;gt; 'ModelAsController'&lt;br /&gt;));&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Then you'll need to modify your .htaccess file so that the the $Lang bit gets changing into the lang query parameter before it gets sent to sapphire. Something like:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;RewriteRule ^(\D+\/)(.*)$ sapphire/main.php?lang=$1&amp;amp;url=$2&amp;amp;%{QUERY_STRING} [L]&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And then... maybe Director::setBaseURL($lang), but I'm not sure how to get the current language from the _config.php file. Maybe you'll need to create a custom controller to send requests to the right place. Also, it breaks the CSS and images..&lt;/p&gt;&lt;p&gt;Not sure where too from there, but maybe I gave you some ideas.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837?start=0#post170942&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/169837?start=0#post170942&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 15 Sep 2008 13:09:42 +1200</pubDate>
			<dc:creator>Hamish</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837?start=0#post170942</guid>
		</item>
		
		<item>
			<title>Adding language code in front of URL segment - where ?</title>
			<link>http://www.silverstripe.org/archive/show/169837#post169837</link>
			<description>&lt;p&gt;Good evening.&lt;/p&gt;&lt;p&gt;Can someone give me a hint at what part of the core the URL is constructed? What I want is to add currentLang() in front of the &quot;ordinary&quot; URI so that mysite.com/about-us/ becomes mysite.com/en/about-us/&lt;/p&gt;&lt;p&gt;I am staring at the Director and am tempted to add some Translatable::currentLang() here and there, but that baby is quite pasta-like to me. Is there a better, safer, place to find my happiness?&lt;/p&gt;&lt;p&gt;This is the last issue before I have my i18n with nice URLs and pretty links - help please !&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding language code in front of URL segment - where ? &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837#post169837&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/169837#post169837&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Sep 2008 07:36:14 +1200</pubDate>
			<dc:creator>Skipper</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/169837#post169837</guid>
		</item>
		

	</channel>
</rss>