<?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: i18n problem... :/</title>
			<link>http://www.silverstripe.org/archive/show/73688?start=0#post73716</link>
			<description>&lt;p&gt;So i found were the problem was. I was creating template in themes dir, then i moved all my templates to site dir all started to work, but were is a one bug - ?lang=other_lang not setting the locale(i18n::set_locale() not executing), thats why nothing happened, so i placed some if statments in page controler constructor and now all working fine.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: i18n problem... :/ &lt;a href=&quot;http://www.silverstripe.org/archive/show/73688?start=0#post73716&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/73688?start=0#post73716&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 16 May 2008 02:03:21 +1200</pubDate>
			<dc:creator>pIscIs</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/73688?start=0#post73716</guid>
		</item>
		
		<item>
			<title>i18n problem... :/</title>
			<link>http://www.silverstripe.org/archive/show/73688#post73688</link>
			<description>&lt;p&gt;hi again, &lt;br /&gt;so i have another problem, this time with i18 translations. My default locale is lt_LT(setted in _config.php).&lt;br /&gt;so then i add &amp;lt;% _t('veks_login', 'Prisijungti') %&amp;gt; to template it returns an error - &lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;FATAL ERROR: - Locale file /lang/en_US.php should exist&lt;br /&gt;At line 1252 in /home/veks/domains/veks....lt/public_html/sapphire/core/i18n.php&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;i added a line(1245) to i i18n.php : &lt;br /&gt;if(empty($module)) $module = Director::baseFolder(); now it finds the locale file, then i added another file with Lithuanian locale - lt_LT.php with source:&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&amp;lt;?php&lt;br /&gt;i18n::include_locale_file('veks', 'lt_LT'); //my site code dir is veks&lt;/p&gt;&lt;p&gt;global $lang;&lt;/p&gt;&lt;p&gt;$lang['lt_LT'] = $lang['lt_LT'];&lt;br /&gt;$lang['lt_LT']['veks_login'] = 'Prisijungti';&lt;br /&gt;?&amp;gt;&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;and putted it into site root in folder lang. same to en_EN.php, but nothing happens then switching languages. &lt;/p&gt;&lt;p&gt;Please help.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: i18n problem... :/ &lt;a href=&quot;http://www.silverstripe.org/archive/show/73688#post73688&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/73688#post73688&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 16 May 2008 00:09:01 +1200</pubDate>
			<dc:creator>pIscIs</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/73688#post73688</guid>
		</item>
		

	</channel>
</rss>