<?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: Multilingual WordPress &#8211; Internationalising themes</title>
	<atom:link href="http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/</link>
	<description>Wordpress site design and development, plugins, code ideas, template tags and css resources for bloggers</description>
	<lastBuildDate>Tue, 07 Feb 2012 22:11:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ade</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-32503</link>
		<dc:creator>Ade</dc:creator>
		<pubDate>Thu, 21 Jul 2011 22:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-32503</guid>
		<description>No worries!

Glad you sorted it out. :-)</description>
		<content:encoded><![CDATA[<p>No worries!</p>
<p>Glad you sorted it out. <img src='http://www.studiograsshopper.ch/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sui_iuris</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-32307</link>
		<dc:creator>sui_iuris</dc:creator>
		<pubDate>Sun, 17 Jul 2011 17:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-32307</guid>
		<description>I solved the problem. 

 ?php comments_number(__(&#039;No Responses&#039;, &#039;mytext&#039;), __(&#039;One Response&#039;, &#039;mytext&#039;), __(&#039;% Responses&#039;, &#039;mytext&#039;)) ;?

Here&#039;s how &quot;__(&quot; is use when the phrase is already in brackets.</description>
		<content:encoded><![CDATA[<p>I solved the problem. </p>
<p> ?php comments_number(__(&#8216;No Responses&#8217;, &#8216;mytext&#8217;), __(&#8216;One Response&#8217;, &#8216;mytext&#8217;), __(&#8216;% Responses&#8217;, &#8216;mytext&#8217;)) ;?</p>
<p>Here&#8217;s how &#8220;__(&#8221; is use when the phrase is already in brackets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sui_iuris</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-32306</link>
		<dc:creator>sui_iuris</dc:creator>
		<pubDate>Sun, 17 Jul 2011 17:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-32306</guid>
		<description>I solved the problem. 



Here&#039;s how &quot;__(&quot; is use when the phrase is already in brackets.</description>
		<content:encoded><![CDATA[<p>I solved the problem. </p>
<p>Here&#8217;s how &#8220;__(&#8221; is use when the phrase is already in brackets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sui_iuris</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-32293</link>
		<dc:creator>sui_iuris</dc:creator>
		<pubDate>Sun, 17 Jul 2011 11:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-32293</guid>
		<description>&lt;code&gt;&lt;?php comments_number(&#039;No Responses&#039;, &#039;One Response&#039;, &#039;% Responses&#039;) ;?&gt;&lt;/code&gt; 

Finally, really, reaaaally, sorry for triple posting but this code didn&#039;t show up, twice :).</description>
		<content:encoded><![CDATA[<p><code>< ?php comments_number('No Responses', 'One Response', '% Responses') ;?></code> </p>
<p>Finally, really, reaaaally, sorry for triple posting but this code didn&#8217;t show up, twice <img src='http://www.studiograsshopper.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sui_iuris</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-32291</link>
		<dc:creator>sui_iuris</dc:creator>
		<pubDate>Sun, 17 Jul 2011 11:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-32291</guid>
		<description>Hallo!
Great work, great tutorial! Thank you. I&#039;m almost ready with my multilingual site, but still I wonder how to internationalise  phrases: &quot;No Responses&quot;, &quot;One Response&quot; and &quot;Responses&quot; in the code below:

&lt;code&gt;&lt;/code&gt;

Is it possible at all?

Thank you in advance!</description>
		<content:encoded><![CDATA[<p>Hallo!<br />
Great work, great tutorial! Thank you. I&#8217;m almost ready with my multilingual site, but still I wonder how to internationalise  phrases: &#8220;No Responses&#8221;, &#8220;One Response&#8221; and &#8220;Responses&#8221; in the code below:</p>
<p><code></code></p>
<p>Is it possible at all?</p>
<p>Thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ade</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-10293</link>
		<dc:creator>Ade</dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-10293</guid>
		<description>This line:
&lt;pre lang=&quot;php&quot;&gt;$html .= &#039;&lt;strong&gt;&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.get_string_limit($post_title,50).&#039;&lt;/a&gt;&lt;/strong&gt; &#039;.get_string_limit($post_content,300).&#039;
&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&quot;Read more&quot;&lt;/a&gt;&#039;;&lt;/pre&gt;
becomes this:
&lt;pre lang=&quot;php&quot;&gt;$html .= &#039;&lt;strong&gt;&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.get_string_limit($post_title,50).&#039;&lt;/a&gt;&lt;/strong&gt; &#039;.get_string_limit($post_content,300).&#039;
&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039; . __(&quot;Read more&quot;, &#039;textdomain&#039;) . &#039;&lt;/a&gt;&#039;;&lt;/pre&gt;
Replace textdomain with the actual textdomain name you&#039;re using.</description>
		<content:encoded><![CDATA[<p>This line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$html</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;strong&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$permalink</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; rel=&quot;nofollow&quot;&gt;'</span><span style="color: #339933;">.</span>get_string_limit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_title</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;&lt;/strong&gt; '</span><span style="color: #339933;">.</span>get_string_limit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_content</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'
&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$permalink</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; rel=&quot;nofollow&quot;&gt;&quot;Read more&quot;&lt;/a&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p>becomes this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$html</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;strong&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$permalink</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; rel=&quot;nofollow&quot;&gt;'</span><span style="color: #339933;">.</span>get_string_limit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_title</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;&lt;/strong&gt; '</span><span style="color: #339933;">.</span>get_string_limit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_content</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'
&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$permalink</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; rel=&quot;nofollow&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Read more&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'textdomain'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p>Replace textdomain with the actual textdomain name you&#8217;re using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jepsiba</title>
		<link>http://www.studiograsshopper.ch/web-development/multilingual-wordpress-internationalising-themes/#comment-10279</link>
		<dc:creator>Jepsiba</dc:creator>
		<pubDate>Mon, 08 Mar 2010 16:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiograsshopper.ch/?p=1026#comment-10279</guid>
		<description>Hello,
Thank you very much for this great tutorial. I have followed the steps modifying my theme and everything went great, except for one phrase inside a function where I have no idea how to insert the php code. I tried everything I could think of but I always ended up braking the code.
 I was wondering if you could help me placing it the way it should? This is the code part where the phrase &quot;Read more&quot; is what I would like to translate:
I can&#039;t tell where the part of the code begins and ends so I just copy pasted the whole function here.
I hope you can help me please? I would really appreciate it :) Thank you very much!!

&lt;code&gt;
function carousel_featured_posts($max_posts=5, $offset=0) {
	if(!function_exists(&#039;show_featured_posts&#039;))
		return false;
		
	global $wpdb, $table_prefix;
	$table_name = $table_prefix.&quot;features&quot;;
	
	$sql = &quot;SELECT * FROM $table_name ORDER BY date DESC LIMIT $offset, $max_posts&quot;;
	$posts = $wpdb-&gt;get_results($sql);
	
	$html = &#039;&#039;;
	$coint_i = 0;
	foreach($posts as $post) {
		$coint_i++;
		$id = $post-&gt;id;
		$posts_table = $table_prefix.&#039;posts&#039;; 
		$sql_post = &quot;SELECT * FROM $posts_table where id = $id&quot;;
		$rs_post = $wpdb-&gt;get_results($sql_post);
		$data = $rs_post[0];
		$post_title = stripslashes($data-&gt;post_title);
		$post_title = str_replace(&#039;&quot;&#039;, &#039;&#039;, $post_title);
		$post_content = stripslashes($data-&gt;post_content);
		$post_content = str_replace(&#039;]]&gt;&#039;, &#039;]]&gt;&#039;, $post_content);
		$post_content = strip_tags($post_content);
		$permalink = get_permalink($data-&gt;ID);
		$post_id = $data-&gt;ID;
		$html .= &#039;
			&lt;!-- board_item --&gt;
			&#039;;
			
		$thumbnail = get_post_meta($post_id, &#039;thumbnail&#039;, true);
		
		if( isset($thumbnail) &amp;&amp; !empty($thumbnail) ):
			$html .= &#039;&#039;;
		endif;
		
		$html .= &#039;&lt;strong&gt;&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.get_string_limit($post_title,50).&#039;&lt;/a&gt;&lt;/strong&gt; &#039;.get_string_limit($post_content,300).&#039;
			&lt;a href=&quot;&#039;.$permalink.&#039;&quot; rel=&quot;nofollow&quot;&gt;&quot;Read more&quot;&lt;/a&gt;
			&lt;!-- /board_item --&gt;
		&#039;;
	}
	echo $html;
	return $coint_i;
}

function theme_twitter_show($count=4)
{
	$id = obwp_get_meta(SHORTNAME.&quot;_twitter_id&quot;);
	if(!empty($id))
	{
	?&gt;
	
	&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/statuses/user_timeline/.json?callback=twitterCallback2&amp;count=&quot;&gt;
	&lt;?php
	}
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thank you very much for this great tutorial. I have followed the steps modifying my theme and everything went great, except for one phrase inside a function where I have no idea how to insert the php code. I tried everything I could think of but I always ended up braking the code.<br />
 I was wondering if you could help me placing it the way it should? This is the code part where the phrase &#8220;Read more&#8221; is what I would like to translate:<br />
I can&#8217;t tell where the part of the code begins and ends so I just copy pasted the whole function here.<br />
I hope you can help me please? I would really appreciate it <img src='http://www.studiograsshopper.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thank you very much!!</p>
<p><code><br />
function carousel_featured_posts($max_posts=5, $offset=0) {<br />
	if(!function_exists('show_featured_posts'))<br />
		return false;</p>
<p>	global $wpdb, $table_prefix;<br />
	$table_name = $table_prefix."features";</p>
<p>	$sql = "SELECT * FROM $table_name ORDER BY date DESC LIMIT $offset, $max_posts";<br />
	$posts = $wpdb-&gt;get_results($sql);</p>
<p>	$html = '';<br />
	$coint_i = 0;<br />
	foreach($posts as $post) {<br />
		$coint_i++;<br />
		$id = $post-&gt;id;<br />
		$posts_table = $table_prefix.'posts';<br />
		$sql_post = "SELECT * FROM $posts_table where id = $id";<br />
		$rs_post = $wpdb-&gt;get_results($sql_post);<br />
		$data = $rs_post[0];<br />
		$post_title = stripslashes($data-&gt;post_title);<br />
		$post_title = str_replace('"', '', $post_title);<br />
		$post_content = stripslashes($data-&gt;post_content);<br />
		$post_content = str_replace(']]&gt;', ']]&gt;', $post_content);<br />
		$post_content = strip_tags($post_content);<br />
		$permalink = get_permalink($data-&gt;ID);<br />
		$post_id = $data-&gt;ID;<br />
		$html .= '<br />
			<!-- board_item --><br />
			';</p>
<p>		$thumbnail = get_post_meta($post_id, 'thumbnail', true);</p>
<p>		if( isset($thumbnail) &amp;&amp; !empty($thumbnail) ):<br />
			$html .= '';<br />
		endif;</p>
<p>		$html .= '&lt;strong&gt;&lt;a href="'.$permalink.'" rel="nofollow"&gt;'.get_string_limit($post_title,50).'&lt;/a&gt;&lt;/strong&gt; '.get_string_limit($post_content,300).'<br />
			&lt;a href="'.$permalink.'" rel="nofollow"&gt;"Read more"&lt;/a&gt;<br />
			<!-- /board_item --><br />
		';<br />
	}<br />
	echo $html;<br />
	return $coint_i;<br />
}</p>
<p>function theme_twitter_show($count=4)<br />
{<br />
	$id = obwp_get_meta(SHORTNAME."_twitter_id");<br />
	if(!empty($id))<br />
	{<br />
	?&gt;</p>
<p>	&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://twitter.com/statuses/user_timeline/.json?callback=twitterCallback2&#038;count=" rel="nofollow">http://twitter.com/statuses/user_timeline/.json?callback=twitterCallback2&#038;count=</a>"&gt;<br />
	&lt;?php<br />
	}<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

