<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Custom language switcher</title>
	<atom:link href="http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpml.org</link>
	<description>Using WordPress to build full multilingual websites</description>
	<lastBuildDate>Fri, 12 Mar 2010 05:20:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mac</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-5229</link>
		<dc:creator>Mac</dc:creator>
		<pubDate>Fri, 19 Feb 2010 18:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-5229</guid>
		<description>Hi!

i have a FR/EN site and use WP as a CMS and your plugin has been very useful.  

tho, i believe i found a bug with the language switcher function.  it doesn&#039;t translate the main category name if there&#039;s a subcategory in the url.

example from my site:
http://macarrier.mylost.ca/fr/realisations/projets-web/cqrht/

should link to 
http://macarrier.mylost.ca/en/accomplishments/web-sites/cqrht-2/

but links to this instead: 
http://macarrier.mylost.ca/en/realisations/web-sites/cqrht-2/ 

is there a quick way to fix this?

thaks for your time.

Mac</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>i have a FR/EN site and use WP as a CMS and your plugin has been very useful.  </p>
<p>tho, i believe i found a bug with the language switcher function.  it doesn&#8217;t translate the main category name if there&#8217;s a subcategory in the url.</p>
<p>example from my site:<br />
<a href="http://macarrier.mylost.ca/fr/realisations/projets-web/cqrht/" rel="nofollow">http://macarrier.mylost.ca/fr/realisations/projets-web/cqrht/</a></p>
<p>should link to<br />
<a href="http://macarrier.mylost.ca/en/accomplishments/web-sites/cqrht-2/" rel="nofollow">http://macarrier.mylost.ca/en/accomplishments/web-sites/cqrht-2/</a></p>
<p>but links to this instead:<br />
<a href="http://macarrier.mylost.ca/en/realisations/web-sites/cqrht-2/" rel="nofollow">http://macarrier.mylost.ca/en/realisations/web-sites/cqrht-2/</a> </p>
<p>is there a quick way to fix this?</p>
<p>thaks for your time.</p>
<p>Mac</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iva</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-5154</link>
		<dc:creator>Iva</dc:creator>
		<pubDate>Mon, 15 Feb 2010 13:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-5154</guid>
		<description>Hi,
I have the following problem: After each post I write &quot;This post is also available in ...&quot;. I do not use their function - icl_post_languages. It comes automaticly. Can sоmеone tell me how to remove it?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have the following problem: After each post I write &#8220;This post is also available in &#8230;&#8221;. I do not use their function &#8211; icl_post_languages. It comes automaticly. Can sоmеone tell me how to remove it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amir</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-5097</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-5097</guid>
		<description>Yes, open a thread in the forum.</description>
		<content:encoded><![CDATA[<p>Yes, open a thread in the forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-5096</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-5096</guid>
		<description>It doesn&#039;t seem to work for me. I am trying to integrate the plugin within my own template.

I have included the required file in functions.php, but all the examples I am trying end up with the same error:

Catchable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\wordpress\wp-content\plugins\sitepress-multilingual-cms\sitepress.class.php on line 2949

Any idea?</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t seem to work for me. I am trying to integrate the plugin within my own template.</p>
<p>I have included the required file in functions.php, but all the examples I am trying end up with the same error:</p>
<p>Catchable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\wordpress\wp-content\plugins\sitepress-multilingual-cms\sitepress.class.php on line 2949</p>
<p>Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4847</link>
		<dc:creator>K</dc:creator>
		<pubDate>Sun, 31 Jan 2010 19:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4847</guid>
		<description>FYI: If the url of the link doesn&#039;t point to the translated version of the same page (goes to the main page no matter what) make sure you included &lt;code&gt;wp_head();&lt;/code&gt; in your header.</description>
		<content:encoded><![CDATA[<p>FYI: If the url of the link doesn&#8217;t point to the translated version of the same page (goes to the main page no matter what) make sure you included <code>wp_head();</code> in your header.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fransnico</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4790</link>
		<dc:creator>Fransnico</dc:creator>
		<pubDate>Fri, 29 Jan 2010 08:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4790</guid>
		<description>Found the solution by myself:
I found this code in wpml-integration.php
&lt;code&gt;
// Languages links to display in the footer
//
function wpml_languages_list($skip_missing=0, $div_id = &quot;footer_language_list&quot;){
    if(function_exists(&#039;icl_get_languages&#039;)){
        $languages = icl_get_languages(&#039;skip_missing=&#039;.intval($skip_missing));
        if(!empty($languages)){
            echo &#039;&#039;;
            foreach($languages as $l){
                echo &#039;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;a href=&quot;&#039;.$l[&#039;url&#039;].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;;
                echo &#039;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;/a&gt;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;a href=&quot;&#039;.$l[&#039;url&#039;].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;;
                echo $l[&#039;native_name&#039;];
                if(!$l[&#039;active&#039;]) echo &#039; (&#039;.$l[&#039;translated_name&#039;].&#039;)&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;/a&gt;&#039;;
                echo &#039;&#039;;
            }
            echo &#039;&#039;;
        }
    }
}
&lt;/code&gt;

What I&#039;m doing is just copied the code into my function.php for my theme, and edited it into this:
&lt;code&gt;
// Languages links to display in the footer
// change the function wpml_languages_list to a name you desire
// for this case I change it to languages_list_footer
//
function languages_list_footer($skip_missing=0, $div_id = &quot;footer_language_list&quot;){
    if(function_exists(&#039;icl_get_languages&#039;)){
        $languages = icl_get_languages(&#039;skip_missing=&#039;.intval($skip_missing));
        if(!empty($languages)){
            echo &#039;&#039;;
            foreach($languages as $l){
                echo &#039;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;a href=&quot;&#039;.$l[&#039;url&#039;].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;;
                echo &#039;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;/a&gt;&#039;;
                if(!$l[&#039;active&#039;]) echo &#039;&lt;a href=&quot;&#039;.$l[&#039;url&#039;].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;;
                echo $l[&#039;native_name&#039;];
                /*if(!$l[&#039;active&#039;]) echo &#039; (&#039;.$l[&#039;translated_name&#039;].&#039;)&#039;; I erase this line to avoid displaying the translated name*/
                if(!$l[&#039;active&#039;]) echo &#039;&lt;/a&gt;&#039;;
                echo &#039;&#039;;
            }
            echo &#039;&#039;;
        }
    }
}
&lt;/code&gt;

Hope it useful..</description>
		<content:encoded><![CDATA[<p>Found the solution by myself:<br />
I found this code in wpml-integration.php<br />
<code><br />
// Languages links to display in the footer<br />
//<br />
function wpml_languages_list($skip_missing=0, $div_id = "footer_language_list"){<br />
    if(function_exists('icl_get_languages')){<br />
        $languages = icl_get_languages('skip_missing='.intval($skip_missing));<br />
        if(!empty($languages)){<br />
            echo '';<br />
            foreach($languages as $l){<br />
                echo '';<br />
                if(!$l['active']) echo '<a href="'.$l['url'].'" rel="nofollow">';<br />
                echo '';<br />
                if(!$l['active']) echo '</a>';<br />
                if(!$l['active']) echo '<a href="'.$l['url'].'" rel="nofollow">';<br />
                echo $l['native_name'];<br />
                if(!$l['active']) echo ' ('.$l['translated_name'].')';<br />
                if(!$l['active']) echo '</a>';<br />
                echo '';<br />
            }<br />
            echo '';<br />
        }<br />
    }<br />
}<br />
</code></p>
<p>What I&#8217;m doing is just copied the code into my function.php for my theme, and edited it into this:<br />
<code><br />
// Languages links to display in the footer<br />
// change the function wpml_languages_list to a name you desire<br />
// for this case I change it to languages_list_footer<br />
//<br />
function languages_list_footer($skip_missing=0, $div_id = "footer_language_list"){<br />
    if(function_exists('icl_get_languages')){<br />
        $languages = icl_get_languages('skip_missing='.intval($skip_missing));<br />
        if(!empty($languages)){<br />
            echo '';<br />
            foreach($languages as $l){<br />
                echo '';<br />
                if(!$l['active']) echo '<a href="'.$l['url'].'" rel="nofollow">';<br />
                echo '';<br />
                if(!$l['active']) echo '</a>';<br />
                if(!$l['active']) echo '<a href="'.$l['url'].'" rel="nofollow">';<br />
                echo $l['native_name'];<br />
                /*if(!$l['active']) echo ' ('.$l['translated_name'].')'; I erase this line to avoid displaying the translated name*/<br />
                if(!$l['active']) echo '</a>';<br />
                echo '';<br />
            }<br />
            echo '';<br />
        }<br />
    }<br />
}<br />
</code></p>
<p>Hope it useful..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fransnico</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4775</link>
		<dc:creator>Fransnico</dc:creator>
		<pubDate>Thu, 28 Jan 2010 16:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4775</guid>
		<description>I&#039;m using the Language List in the footer, and the code works great.. but there&#039;s one slight issue that bothering me.. I&#039;m trying to remove the native name from the list, so it only displaying the translated name but with no bracket.
&lt;b&gt;for example :&lt;/b&gt;
English &#124; Francais (French) &#124; Italiano (Italian)
&lt;b&gt;I would like to turn it into something like this..&lt;/b&gt;
English &#124; French &#124; Italian

Would you please give me a hint?</description>
		<content:encoded><![CDATA[<p>I&#8217;m using the Language List in the footer, and the code works great.. but there&#8217;s one slight issue that bothering me.. I&#8217;m trying to remove the native name from the list, so it only displaying the translated name but with no bracket.<br />
<b>for example :</b><br />
English | Francais (French) | Italiano (Italian)<br />
<b>I would like to turn it into something like this..</b><br />
English | French | Italian</p>
<p>Would you please give me a hint?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amir</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4714</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Mon, 25 Jan 2010 22:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4714</guid>
		<description>Of course, PHP statements need to be wrapped in that. You need to place it in your theme according to where it should display in the site.</description>
		<content:encoded><![CDATA[<p>Of course, PHP statements need to be wrapped in that. You need to place it in your theme according to where it should display in the site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4713</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Mon, 25 Jan 2010 22:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4713</guid>
		<description>List of language names and flags for the footer.. 

looks incomplete to me.. isn&#039;t this supposed to be surrounded by &lt;?php etc

Where is this code placed?</description>
		<content:encoded><![CDATA[<p>List of language names and flags for the footer.. </p>
<p>looks incomplete to me.. isn&#8217;t this supposed to be surrounded by &lt;?php etc</p>
<p>Where is this code placed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tutorial: Style a &#8220;buttonized&#8221; WPML language switcher</title>
		<link>http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/comment-page-1/#comment-4382</link>
		<dc:creator>Tutorial: Style a &#8220;buttonized&#8221; WPML language switcher</dc:creator>
		<pubDate>Tue, 12 Jan 2010 13:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=989#comment-4382</guid>
		<description>[...] People familiar with wpml styling may recognize the css and php code I&#8217;ve used here. I slightly adjusted some php found here on wpml.org, custom language switcher. [...]</description>
		<content:encoded><![CDATA[<p>[...] People familiar with wpml styling may recognize the css and php code I&#8217;ve used here. I slightly adjusted some php found here on wpml.org, custom language switcher. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
