<?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>RAGARD &#187; WordPress</title>
	<atom:link href="http://www.ragard-jp.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ragard-jp.com</link>
	<description>Simple Themes &#38; Tutorials</description>
	<lastBuildDate>Sat, 04 Jul 2009 06:25:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Localize WordPress Theme</title>
		<link>http://www.ragard-jp.com/tutorials/localize-wordpress-theme/</link>
		<comments>http://www.ragard-jp.com/tutorials/localize-wordpress-theme/#comments</comments>
		<pubDate>Wed, 07 May 2008 04:43:04 +0000</pubDate>
		<dc:creator>ne-design</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ragard-jp.com/?p=7</guid>
		<description><![CDATA[Did you ever wanted to have the WordPress theme you liked to be in your language? or did you ever wanted to make a theme that is available for translation? In this tutorial I will cover on how to make any WordPress themes to be localized.
You will need to know a little about php to [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever wanted to have the WordPress theme you liked to be in your language? or did you ever wanted to make a theme that is available for translation? In this tutorial I will cover on how to make any WordPress themes to be localized.</p>
<p>You will need to know a little about php to understand this tutorial. Just the basic would be fine.<span id="more-7"></span></p>
<h4>Step 1 &#8211; Choose a domain</h4>
<p>This would be the name for your translation. Usually I use the theme name as a domain. In this tutorial I will use my theme &#8220;Vanilla Globe&#8221; as in example. So the domain would be &#8220;vanillaglobe&#8221;.</p>
<h4>Step 2 &#8211; Replace text with function</h4>
<p>Inside the themes you will see text like</p>
<pre name="code" class="html">
<h2>404 Error: Not Found</h2>
</pre>
<p>change the text into a function like this</p>
<pre name="code" class="php">&lt;h2&gt;&lt;?php _e('404 Error: Not Found','vanillaglobe'); ?&gt;&lt;/h2&gt;</pre>
<p>As you can see you will need to replace the text that you would like to translate with the function </p>
<pre name="code" class="php">&lt;?php _e('text','domain'); ?&gt;</pre>
<h4>Step 3 &#8211; Add __</h4>
<p>Not only text, you would also want to have some parameters within the template tag to be translated. Example would be like</p>
<pre name="code" class="php">&lt;?php the_content('Read more...'); ?&gt;</pre>
<p>add __ and the domain</p>
<pre name="code" class="php">&lt;?php the_content(__('Read more...','vanillaglobe')); ?&gt;</pre>
<p>if there is more then one parameter, sample would be like this</p>
<pre name="code" class="php">&lt;?php comments_number(__('No Responses','vanillaglobe'), __('One Response','vanillaglobe'), __('% Responses','vanillaglobe'));?&gt;</pre>
<h4>Step 4 &#8211; Include the function</h4>
<p>Open the header.php and at the very top include the code below</p>
<pre name="code" class="php">&lt;?php load_theme_textdomain ('vanillaglobe'); ?&gt;</pre>
<p>This code is needed for WordPress to understand to use the language file that is inside the theme folder.</p>
<h4>Step 5 &#8211; Build .po and .mo</h4>
<p>Lastly, build the translation file in your language! You can look <a href="http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/">here</a> to learn how to translate using <a href="http://sourceforge.net/projects/poedit/">poEdit</a>. Make sure you have the files inside <em>wp-content/themes/themename/</em>. The name of the file should be the <a href="http://codex.wordpress.org/Localization">name of the language</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ragard-jp.com/tutorials/localize-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
