<?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: Bagaimana Mengambil Kode Bahasa yang Aktif Menggunakan Plugin WPML di WordPress</title>
	<atom:link href="http://www.openscriptsolution.com/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:54:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ajl</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-6132</link>
		<dc:creator>ajl</dc:creator>
		<pubDate>Sun, 18 Dec 2011 10:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-6132</guid>
		<description>Thank u, just saved me :)</description>
		<content:encoded><![CDATA[<p>Thank u, just saved me <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pikavippi</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-4820</link>
		<dc:creator>Pikavippi</dc:creator>
		<pubDate>Sun, 28 Aug 2011 15:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-4820</guid>
		<description>Thanks for this tutorial. it is amazing how you can find an answer to all your questions here from the Internet. great and thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial. it is amazing how you can find an answer to all your questions here from the Internet. great and thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonardo Picado</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-3497</link>
		<dc:creator>Leonardo Picado</dc:creator>
		<pubDate>Wed, 11 May 2011 07:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-3497</guid>
		<description>Hey thanks a lot, for some reason I was putting $ in front of the constants, not very used to PHP I guess.

Any idea of how I could incorporate this into &#039;the loop&#039; ? I got something like this:

    $args = array(
        &#039;meta_key&#039; =&gt; &#039;sgt_slide&#039;,
        &#039;meta_value&#039; =&gt; &#039;on&#039;,
        &#039;numberposts&#039; =&gt; -1,
        );
    $slides = get_posts($args);

&quot;sgt_slide&quot; is a custom attribute used on the theme, the problem right now is that is fetching all of the posts that have it, not just the ones in THAT specific language, there is nothing related to the language in the wp_meta key, so I&#039;m not sure &#039;the loop&#039; by itself could help me? I&#039;d really like to get this working before spending $30 on the plugin, any help you could give me will be greatly appreciated.


Cheers,
Leo</description>
		<content:encoded><![CDATA[<p>Hey thanks a lot, for some reason I was putting $ in front of the constants, not very used to PHP I guess.</p>
<p>Any idea of how I could incorporate this into &#8216;the loop&#8217; ? I got something like this:</p>
<p>    $args = array(<br />
        &#8216;meta_key&#8217; =&gt; &#8216;sgt_slide&#8217;,<br />
        &#8216;meta_value&#8217; =&gt; &#8216;on&#8217;,<br />
        &#8216;numberposts&#8217; =&gt; -1,<br />
        );<br />
    $slides = get_posts($args);</p>
<p>&#8220;sgt_slide&#8221; is a custom attribute used on the theme, the problem right now is that is fetching all of the posts that have it, not just the ones in THAT specific language, there is nothing related to the language in the wp_meta key, so I&#8217;m not sure &#8216;the loop&#8217; by itself could help me? I&#8217;d really like to get this working before spending $30 on the plugin, any help you could give me will be greatly appreciated.</p>
<p>Cheers,<br />
Leo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Nilsson</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-3392</link>
		<dc:creator>Sebastian Nilsson</dc:creator>
		<pubDate>Thu, 21 Apr 2011 07:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-3392</guid>
		<description>Thank you SO much! This saved my life! :)</description>
		<content:encoded><![CDATA[<p>Thank you SO much! This saved my life! <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bren west</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-3069</link>
		<dc:creator>Bren west</dc:creator>
		<pubDate>Wed, 09 Mar 2011 11:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-3069</guid>
		<description>Thanks for the hint. I need this tutorial a long time ago. I’m trying to do something like this. Keep it up.</description>
		<content:encoded><![CDATA[<p>Thanks for the hint. I need this tutorial a long time ago. I’m trying to do something like this. Keep it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Depp</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-2908</link>
		<dc:creator>Peter Depp</dc:creator>
		<pubDate>Wed, 16 Feb 2011 19:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-2908</guid>
		<description>Excellent tip - much appreciated. Pity one couldn&#039;t find this sort of stuff in the WPML help files. Anyhow, very grateful to find it here. Many thanks. :)</description>
		<content:encoded><![CDATA[<p>Excellent tip &#8211; much appreciated. Pity one couldn&#8217;t find this sort of stuff in the WPML help files. Anyhow, very grateful to find it here. Many thanks. <img src='http://www.openscriptsolution.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anas</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-2786</link>
		<dc:creator>Anas</dc:creator>
		<pubDate>Sat, 29 Jan 2011 15:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-2786</guid>
		<description>Thanks for the useful information.

Regarding WPML, How can i get the Recent Posts in Specific Language?

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the useful information.</p>
<p>Regarding WPML, How can i get the Recent Posts in Specific Language?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert pasztor</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-2720</link>
		<dc:creator>robert pasztor</dc:creator>
		<pubDate>Sat, 22 Jan 2011 21:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-2720</guid>
		<description>Thanks for the hint.
I had to use it to set the language of the page because WPML wordpress plugin does not set this:
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;&quot;&gt;

I&#039;ve also struggled with wpml_get_current_language function, but ICL_LANGUAGE_CODE simply works.</description>
		<content:encoded><![CDATA[<p>Thanks for the hint.<br />
I had to use it to set the language of the page because WPML wordpress plugin does not set this:<br />
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&#038;quot" rel="nofollow">http://www.w3.org/1999/xhtml&#038;quot</a>; lang=&quot;&#8221;&gt;</p>
<p>I&#8217;ve also struggled with wpml_get_current_language function, but ICL_LANGUAGE_CODE simply works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-2623</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Thu, 06 Jan 2011 10:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-2623</guid>
		<description>I am using the K2 theme with the WPML plug-in. I have renamed the blog tab to &quot;Home&quot; but when I view the site in French, I want the blog tab to say &quot;Accueil&quot;. I tried editing wp-compat.php to add the conditional logic below (two different versions), but neither version worked. Is it possible to conditionally display the K2 Blog tab in different languages? Why isn&#039;t WPML picking this up as a translatable string?

				


  if (ICL_LANGUAGE_CODE == &#039;en&#039;) {
	echo &#039;&lt;a href=&quot;http://openveins.ca/&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;&#039;;
  } elseif (ICL_LANGUAGE_CODE == &#039;fr&#039;) { 
    echo &#039;&lt;a href=&quot;http://openveins.ca/fr/&quot; rel=&quot;nofollow&quot;&gt;Accueil&lt;/a&gt;&#039;;
  }</description>
		<content:encoded><![CDATA[<p>I am using the K2 theme with the WPML plug-in. I have renamed the blog tab to &#8220;Home&#8221; but when I view the site in French, I want the blog tab to say &#8220;Accueil&#8221;. I tried editing wp-compat.php to add the conditional logic below (two different versions), but neither version worked. Is it possible to conditionally display the K2 Blog tab in different languages? Why isn&#8217;t WPML picking this up as a translatable string?</p>
<p>  if (ICL_LANGUAGE_CODE == &#8216;en&#8217;) {<br />
	echo &#8216;<a href="http://openveins.ca/" rel="nofollow">Home</a>&#8216;;<br />
  } elseif (ICL_LANGUAGE_CODE == &#8216;fr&#8217;) {<br />
    echo &#8216;<a href="http://openveins.ca/fr/" rel="nofollow">Accueil</a>&#8216;;<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mw</title>
		<link>http://www.openscriptsolution.com/id/2010/01/11/how-to-get-current-language-code-by-using-wpml-plugin-of-wordpress/comment-page-1/#comment-2581</link>
		<dc:creator>Mw</dc:creator>
		<pubDate>Sun, 02 Jan 2011 12:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1088#comment-2581</guid>
		<description>Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
