<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zack LiveTranslation | Best Premium WordPress Themes - Zack Live</title>
	<atom:link href="http://zacklive.com/tag/translation/feed/" rel="self" type="application/rss+xml" />
	<link>http://zacklive.com</link>
	<description>Free Online Resource</description>
	<lastBuildDate>Wed, 21 Dec 2011 20:18:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Tutorials for Translating WordPress Themes</title>
		<link>http://zacklive.com/tutorials-for-translating-wordpress-themes/873/</link>
		<comments>http://zacklive.com/tutorials-for-translating-wordpress-themes/873/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:18:14 +0000</pubDate>
		<dc:creator>Zack</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Localization]]></category>
		<category><![CDATA[Translation]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://zacklive.com/?p=873</guid>
		<description><![CDATA[I was thinking about translating my themes to other languages, so that I started to search for some information. And I found it&#8217;s not that easy as I imagined. Some details need to be concerned. I thought maybe I can write a tutorial for this, but later I decided it&#8217;s not necessary to reinvent the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="translating wordpress themes and plugins" src="http://chinese.zacklive.com/wp-content/uploads/2010/01/wordpress-translation.jpg" alt="" width="550" height="250" /></p>
<p>I was thinking about translating <a title="itech wordpress theme" href="http://zacklive.com/itech-theme-free-wordpress-theme-for-gadgets-and-tech-blogs/690/">my themes</a> to other languages, so that I started to search for some information. And I found it&#8217;s not that easy as I imagined. Some details need to be concerned.</p>
<p>I thought maybe I can write a <a title="wordpress themes translation" href="http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/">tutorial</a> for this, but later I decided it&#8217;s not necessary to reinvent the wheel. Here I will introduce you for some great tutorials on WordPress Themes Translation, wish may help you.</p>
<ol>
<li><a title="wordpress translation" href="http://codex.wordpress.org/Translating_WordPress">http://codex.wordpress.org/Translating_WordPress</a><br />
Official translating tutorial from WordPress.org codex, most of the concepts you need to know was introduced. But this is not just for translating themes, but about the whole WordPress translating. If you are new to this topic, this should be your first post.</li>
<li><a title="localizing wordpress themes &amp; plugins" href="http://urbangiraffe.com/articles/localizing-wordpress-themes-and-plugins/">Localizing WordPress Themes &amp; Plugins</a><br />
This is a great and detailed tutorial on how to make your themes and plugins translatable.</li>
<li><a title="translating wordpress plugins and themes" href="http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/">Translating WordPress Plugins &amp; Themes</a><br />
From the same author as the second tut, while the above one is about making your themes and plugins translatable, this tut is talking about translating themes and plugins in practice with <a title="poedit" href="http://www.poedit.net/">poEdit</a> and GNU Gettext.</li>
<li><a title="make your theme translatable" href="http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/">Make Your WordPress Theme Ready For Translation</a><br />
This is a tutorial I wrote before, as you can see in the title, it&#8217;s about making your theme translatable.</li>
<li><a title="make your theme translatable" href="http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/"></a><a title="translating wordpress themes" href="http://chinese.zacklive.com/advanced-wordpress-themes-translation/68/">My Tutorials on Translating WordPress Theme (Chinese)</a><br />
As there are not enough Chinese tutorials on translating WrodPress themes, I translated and wrote  this series of translating tuts according to above 3 tuts.</li>
</ol>
<p><span id="more-873"></span>If you have some information that I missed or better than these tuts, feel free to let me know.</p>
<p  class="related_post_title">Related Posts</p><ul class="related_post"><li><a href="http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/" title="Make Your WordPress Theme Ready for Translation">Make Your WordPress Theme Ready for Translation</a></li><li><a href="http://zacklive.com/free-elegant-portfolio-wordpress-themes/771/" title="Free Elegant Portfolio WordPress Themes">Free Elegant Portfolio WordPress Themes</a></li><li><a href="http://zacklive.com/update-blacknwhite-theme-update-05-november-2009/605/" title="Update: BlackNWhite Theme Update 05/November/2009">Update: BlackNWhite Theme Update 05/November/2009</a></li><li><a href="http://zacklive.com/update-graylines-theme-updated-05november2009/599/" title="Update: GrayLines Theme Updated 05/November/2009">Update: GrayLines Theme Updated 05/November/2009</a></li><li><a href="http://zacklive.com/creatviestore-co-find-amazing-wordpress-themes/3392/" title="CreatvieStore.co: Find Amazing WordPress Themes">CreatvieStore.co: Find Amazing WordPress Themes</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zacklive.com/tutorials-for-translating-wordpress-themes/873/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Your WordPress Theme Ready for Translation</title>
		<link>http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/</link>
		<comments>http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 14:13:49 +0000</pubDate>
		<dc:creator>Zack</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[GNU gettext]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Localization]]></category>
		<category><![CDATA[Translation]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://zacklive.com/?p=859</guid>
		<description><![CDATA[If you want your WordPress themes to be used by more people, you can translate them to other languages, or ask your theme user to do this for you. But first of all, you need to make your theme texts translatable. To do this, you need know how WordPress  do the translation. WordPress uses GNU gettext [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="make your theme translatable" src="http://chinese.zacklive.com/wp-content/uploads/2010/01/wordpress-translation.jpg" alt="" width="550" height="250" /></p>
<p>If you want your WordPress themes to be used by more people, you can translate them to other languages, or ask your theme user to do this for you. But first of all, you need to make your theme texts translatable.</p>
<p>To do this, you need know how WordPress  do the translation. WordPress uses <strong>GNU gettext</strong> for localization. With this framework, you can mark your theme texts for translation. You can use the following two ways to mark texts.</p>
<ol>
<li><span style="color: #808080;">__($text)</span> : this means $text need to be translated, and <strong>returns</strong> the result.</li>
<li><span style="color: #808080;">_e($text)</span> : this means $text need to be translated, and <strong>prints out</strong> the result to the webpage, equal to<span style="color: #808080;"> echo __($text)</span>.</li>
</ol>
<p><span id="more-859"></span>Let&#8217;s see some examples, the first one is the easiest one, when you have no posts to display, we will show a message: &#8216;Not Found&#8217;, here is the code:</p>
<blockquote><p>&lt;h2&gt;Not Found&lt;/h2&gt;</p></blockquote>
<p>Because this message will directly print to the screen, we use _e():</p>
<blockquote><p>&lt;h2&gt;&lt;?php _e(&#8216;Not Found&#8217;) ?&gt;&lt;/h2&gt;</p></blockquote>
<p>This is very easy, isn&#8217;t it. The second example is about the comment number, here is the code:</p>
<blockquote><p>&lt;?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?&gt;</p></blockquote>
<p>The translations are not directly print out, but to be used for the function. So we are using __() to do this:</p>
<blockquote><p>&lt;?php comments_number(__(‘No Responses’), __(‘One Response’), __(‘% Responses’) );?&gt;</p></blockquote>
<p>There is one more situation, which is you need to translate a sentence with parameter. Here is one example:</p>
<blockquote><p>by &lt;?php the_author(); ?&gt;</p></blockquote>
<p>You can&#8217;t only translate &#8216;by&#8217;, because in some languages, you need translate the whole sentence so that it will make sense. Here is how to do it:</p>
<blockquote><p>&lt;?php printf(__(‘by %s’), the_author()); ?&gt;</p></blockquote>
<p>We use PHP function printf() to insert the_auther() to __(&#8216;by %s&#8217;), so that you can translate the whole sentence.</p>
<p>Now you know how to make your theme translatable, next time I will write about how to translate your theme.</p>
<p  class="related_post_title">Related Posts</p><ul class="related_post"><li><a href="http://zacklive.com/tutorials-for-translating-wordpress-themes/873/" title="Tutorials for Translating WordPress Themes">Tutorials for Translating WordPress Themes</a></li><li><a href="http://zacklive.com/wordpress-complete-tutorial-03-using-wordpress-themes-on-wordpress-com/3234/" title="WordPress Complete Tutorial 03: Using WordPress Themes on WordPress.com">WordPress Complete Tutorial 03: Using WordPress Themes on WordPress.com</a></li><li><a href="http://zacklive.com/free-wordpress-theme-animes-theme/2469/" title="Free WordPress Theme: Animes Theme">Free WordPress Theme: Animes Theme</a></li><li><a href="http://zacklive.com/8-free-elegant-wordpress-themes-for-december-2010/2306/" title="8 Free Elegant WordPress Themes for December 2010">8 Free Elegant WordPress Themes for December 2010</a></li><li><a href="http://zacklive.com/premium-wordpress-theme-stylize/1085/" title="Free Premium WordPress Theme: Stylize">Free Premium WordPress Theme: Stylize</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zacklive.com/make-your-wordpress-theme-ready-for-translation/859/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

