<?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 multilingual sites: add a default language and limit list of languages in translation tab</title>
			<link>http://www.silverstripe.org/archive/show/231918?start=0#post231945</link>
			<description>&lt;p&gt;As a temporary solution I simply went to &lt;strong&gt;/sapphire/core/i18n.php&lt;/strong&gt; and added the language/s I wanted and then commented all of the languages I did not need:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;/**&lt;br /&gt;*  A list of commonly used languages, in the form&lt;br /&gt;*  langcode =&amp;gt; array( EnglishName, NativeName)&lt;br /&gt;*/&lt;br /&gt;public static $common_languages = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'en' =&amp;gt; array('English', 'English'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'mi' =&amp;gt; array('Maori', 'M&amp;amp;#257;ori')&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* deactivated languages for future reference&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'af' =&amp;gt; array('Afrikaans', 'Afrikaans'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;... etc ...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'zu' =&amp;gt; array('Zulu', 'isiZulu')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/p&gt;&lt;p&gt;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This just leaves English and MÄori to toggle below the site tree and the translation tab only offers MÄori.&lt;/p&gt;&lt;p&gt;It seems to work well. However, this method means changing the core code. I was hoping to find a nicer way so I don't need to do this. Something like a setting for the _conf.php file, e.g. the imaginary methods:&lt;/p&gt;&lt;p&gt;i18n::setCommonLanguages = array('en' =&amp;gt; array('English', 'English'));&lt;br /&gt;or addCommonLanguages(), removeCommonLanguages() or removeAllCommonLanguages()&lt;/p&gt;&lt;p&gt;Maybe I just did not find it, but there was nothing obvious in the &lt;a href=&quot;http://api.silverstripe.com/&quot;&gt;API&lt;/a&gt;. Or maybe it's just too late in the day  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;If you know of any better way please let me know.&lt;/p&gt;&lt;p&gt;Cheers!&lt;br /&gt;Anatol&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: i18n multilingual sites: add a default language and limit list of languages in translation tab &lt;a href=&quot;http://www.silverstripe.org/archive/show/231918?start=0#post231945&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/231918?start=0#post231945&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 19 Nov 2008 17:05:57 +1300</pubDate>
			<dc:creator>Anatol</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/231918?start=0#post231945</guid>
		</item>
		
		<item>
			<title>i18n multilingual sites: add a default language and limit list of languages in translation tab</title>
			<link>http://www.silverstripe.org/archive/show/231918#post231918</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am trying to build my first Silverstripe multilingual site. How can I add MÄori to the list in the translation tab and remove all other languages (without touching the core code)? The site should only be in English (en_NZ) as a default language and MÄori (mi_NZ).&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&lt;p&gt;Cheers!&lt;br /&gt;Anatol&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: i18n multilingual sites: add a default language and limit list of languages in translation tab &lt;a href=&quot;http://www.silverstripe.org/archive/show/231918#post231918&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/231918#post231918&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 19 Nov 2008 14:49:02 +1300</pubDate>
			<dc:creator>Anatol</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/231918#post231918</guid>
		</item>
		

	</channel>
</rss>