<?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>KADIMI &#187; direction</title>
	<atom:link href="http://www.kadimi.com/en/tag/direction/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kadimi.com/en</link>
	<description>[Web developper, Linux addict, Technical translator...]</description>
	<lastBuildDate>Sun, 15 Jan 2012 10:48:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress LTR/RTL</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556</link>
		<comments>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comments</comments>
		<pubDate>Wed, 05 May 2010 12:14:33 +0000</pubDate>
		<dc:creator>Nabil</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[arabic]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[farsi]]></category>
		<category><![CDATA[persian]]></category>
		<category><![CDATA[RTL]]></category>

		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556</guid>
		<description><![CDATA[<a href="http://www.kadimi.com/en/wordpress-ltr-rtl-556"><img align="left" hspace="5" width="150" height="134" src="http://www.kadimi.com/en/wp-content/uploads/rtl-150x134.png" class="alignleft tfe wp-post-image" alt="rtl" title="rtl" /></a>Hello, I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. The problem I am [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Hello,</p>
<p>I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. <strong>The problem I am having is switching from my LTR Style Sheet to RTL stylesheet when the language is switched.</strong> If you could be of any assistance on this it would be greatly appreciated.</p>
<p>Thank You &#8211; Chris</p></blockquote>
<p><span id="more-556"></span></p>
<p>First let&#8217;s assume that your language is xy_XY (replace with your real language like fr_FR, fa_IR, etc&#8230;)</p>
<p>The direction for the language is declared on a php file located on the same directory where your languages files reside, actually the folder <strong><code>/X/wp-content/languages/</code></strong> (where X is the path to the WP installation).</p>
<p>For each language there should be 3 files:</p>
<ul>
<li>xy_XY.mo [required]: compressed language file, all text strings are pulled from this file</li>
<li>xy_XY.po [not required]: Ignore it unless you want to modify the default WP text strings</li>
<li>xy_XY.php [not required]: Used for declaring the text direction for the xy_XY language, if not present LTR is assumed</li>
</ul>
<p><img class="alignnone size-full wp-image-563" title="rtl" src="http://www.kadimi.com/en/wp-content/uploads/rtl.png" alt="rtl" width="326" height="134" /></p>
<p>Don&#8217;t be surprised if you don&#8217;t find the php file xy_XY.php, your description suggests that it&#8217;s missing, so create it and add this line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$text_direction</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;rtl&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This should fix your error and the direction will be set to RTL for your RTL language.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kadimi.com/en/wordpress-ltr-rtl-556/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

