<?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: WordPress LTR/RTL</title>
	<atom:link href="http://www.kadimi.com/en/wordpress-ltr-rtl-556/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556</link>
	<description>[Web developper, Linux addict, Technical translator...]</description>
	<lastBuildDate>Sat, 07 Jan 2012 07:53:27 +0000</lastBuildDate>
	<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>By: Mahfoodh Al Jufaily</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-163</link>
		<dc:creator>Mahfoodh Al Jufaily</dc:creator>
		<pubDate>Mon, 14 Feb 2011 19:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-163</guid>
		<description>Al salam Alaikum Nabil,
I spent almost half a day searching for this solutions. thanks a million times for this tip. However minor correction the xx_XY.php needs to be save under /wp-includes/languages/ instead of /wp-content/languages folder.

I wrote the following condition in my themes header file to output the content in the RTL direction:
&lt;!-- supporting RTL language --&gt;

&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;/rtl.css&quot; /&gt;


I used a nice plugin name RTLer http://wordpress.org/extend/plugins/rtler/ to generate rtl.css for any theme.

I also used [qTranslate] and [Codestyling Localization] plugins to aid in the translation and localization of themes and other plugins.

Regards,
MAD</description>
		<content:encoded><![CDATA[<p>Al salam Alaikum Nabil,<br />
I spent almost half a day searching for this solutions. thanks a million times for this tip. However minor correction the xx_XY.php needs to be save under /wp-includes/languages/ instead of /wp-content/languages folder.</p>
<p>I wrote the following condition in my themes header file to output the content in the RTL direction:<br />
<!-- supporting RTL language --></p>
<p>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;/rtl.css&#8221; /&gt;</p>
<p>I used a nice plugin name RTLer <a href="http://wordpress.org/extend/plugins/rtler/" rel="nofollow">http://wordpress.org/extend/plugins/rtler/</a> to generate rtl.css for any theme.</p>
<p>I also used [qTranslate] and [Codestyling Localization] plugins to aid in the translation and localization of themes and other plugins.</p>
<p>Regards,<br />
MAD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabil</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-137</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Mon, 06 Dec 2010 22:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-137</guid>
		<description>I face the same issue too because I write in Arabic (RTL), what I do while writing a new theme is:
- I write 3 css file, style.css - for direction neutral css properties like colors, widths, fonts, etc... style-rtl.css and style-ltr.css for direction specific css declarations like padding-right, margin-left, borders, etc, the last two files will have the exact number of line but each property will be defined differently in each file.
- I make sure that xy_XY.php is present in my XY language directory if the language I use (Arabic in my case) is an RTL language.</description>
		<content:encoded><![CDATA[<p>I face the same issue too because I write in Arabic (RTL), what I do while writing a new theme is:<br />
- I write 3 css file, style.css &#8211; for direction neutral css properties like colors, widths, fonts, etc&#8230; style-rtl.css and style-ltr.css for direction specific css declarations like padding-right, margin-left, borders, etc, the last two files will have the exact number of line but each property will be defined differently in each file.<br />
- I make sure that xy_XY.php is present in my XY language directory if the language I use (Arabic in my case) is an RTL language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-135</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Thu, 02 Dec 2010 14:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-135</guid>
		<description>Hi Nabil,
Thank you for providing support to us misrepresented rtl folks.
I am working with farsi and english and sometimes there is a lot
more that text-direction needed for farsi pages. I made different
css files for each language. I was wondering about the best way
to load them up. I have tried loading each css based on current
language, which is determined by a qtranslate function:
  if(qtrans_getLanguage()==&#039;en&#039;):

My code is not working but I&#039;m wondering if this is a good practice.
Is this function being fired off before everything else? If you think
this should work, this is the code I have in the header so far:

&lt;?php
if(qtrans_getLanguage()==&#039;en&#039;): //check the language
echo &#039;this is &quot;eng&quot;&#039;;
echo &#039;&#039;;
else if (qtrans_getLanguage()==&#039;fa&#039;):
echo &#039;this is fa mofa!&quot;;
echo &#039;&#039;;
?&gt;

I tried manual link, or using my themes bloginfo(&#039;stylesheet_url&#039;) but nothing
shows to this point.

I appreciate any suggestion.
www.manArtGallery.com</description>
		<content:encoded><![CDATA[<p>Hi Nabil,<br />
Thank you for providing support to us misrepresented rtl folks.<br />
I am working with farsi and english and sometimes there is a lot<br />
more that text-direction needed for farsi pages. I made different<br />
css files for each language. I was wondering about the best way<br />
to load them up. I have tried loading each css based on current<br />
language, which is determined by a qtranslate function:<br />
  if(qtrans_getLanguage()==&#8217;en&#8217;):</p>
<p>My code is not working but I&#8217;m wondering if this is a good practice.<br />
Is this function being fired off before everything else? If you think<br />
this should work, this is the code I have in the header so far:</p>
<p>&lt;?php<br />
if(qtrans_getLanguage()==&#039;en&#039;): //check the language<br />
echo &#039;this is &quot;eng&quot;&#039;;<br />
echo &#039;&#8217;;<br />
else if (qtrans_getLanguage()==&#8217;fa&#8217;):<br />
echo &#8216;this is fa mofa!&#8221;;<br />
echo &#8221;;<br />
?&gt;</p>
<p>I tried manual link, or using my themes bloginfo(&#8216;stylesheet_url&#8217;) but nothing<br />
shows to this point.</p>
<p>I appreciate any suggestion.<br />
<a href="http://www.manArtGallery.com" rel="nofollow">http://www.manArtGallery.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irfan</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-111</link>
		<dc:creator>irfan</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-111</guid>
		<description>Just found a work around. I installed a plugin called &#039;Admin in English&#039;, which solved my problem. Thanks anyways.</description>
		<content:encoded><![CDATA[<p>Just found a work around. I installed a plugin called &#8216;Admin in English&#8217;, which solved my problem. Thanks anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irfan</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-110</link>
		<dc:creator>irfan</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-110</guid>
		<description>Thanks a ton Nabeel for a quick reply. 
When I created the folders in my language, and defined the language in config.php; the admin panel also got translated in the language I set. 
Is there a way I can use the admin panel in English while using the language of my choice for posts?

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks a ton Nabeel for a quick reply.<br />
When I created the folders in my language, and defined the language in config.php; the admin panel also got translated in the language I set.<br />
Is there a way I can use the admin panel in English while using the language of my choice for posts?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabil</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-107</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Tue, 05 Oct 2010 18:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-107</guid>
		<description>The languages directory is not available on the default installation (English), you can create it manually and add your languages .po and .mo files, then you can change the language of your wordpress installation by modifying the constant WP_LANG on wp-config.php like this:
&lt;pre lang=&quot;php&quot;&gt;define (&#039;WPLANG&#039;, &#039;xy_XY&#039;); &lt;/pre&gt;

References:
&lt;a href=&quot;http://codex.wordpress.org/WordPress_in_Your_Language&quot; rel=&quot;nofollow&quot;&gt;WordPress in your language&lt;/a&gt;
&lt;a href=&quot;http://codex.wordpress.org/Installing_WordPress_in_Your_Language&quot; rel=&quot;nofollow&quot;&gt;Installing WordPress in your language&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>The languages directory is not available on the default installation (English), you can create it manually and add your languages .po and .mo files, then you can change the language of your wordpress installation by modifying the constant WP_LANG on wp-config.php like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WPLANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'xy_XY'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>References:<br />
<a href="http://codex.wordpress.org/WordPress_in_Your_Language" rel="nofollow">WordPress in your language</a><br />
<a href="http://codex.wordpress.org/Installing_WordPress_in_Your_Language" rel="nofollow">Installing WordPress in your language</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irfan</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-105</link>
		<dc:creator>irfan</dc:creator>
		<pubDate>Mon, 04 Oct 2010 03:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-105</guid>
		<description>Nabil, I am writing both in English and Urdu (RTL) in my blog. But language folder is missing from my WordPress install. How do I set my language preferences?
A reply will be highly appreciated.

Thanks
Irfan</description>
		<content:encoded><![CDATA[<p>Nabil, I am writing both in English and Urdu (RTL) in my blog. But language folder is missing from my WordPress install. How do I set my language preferences?<br />
A reply will be highly appreciated.</p>
<p>Thanks<br />
Irfan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabil</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-86</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Tue, 27 Jul 2010 06:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-86</guid>
		<description>Yes, this is right, assuming that your theme is optimized for both RTL and LTR.</description>
		<content:encoded><![CDATA[<p>Yes, this is right, assuming that your theme is optimized for both RTL and LTR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-83</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Sat, 17 Jul 2010 22:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-83</guid>
		<description>So does this mean I can have both english and arabic posts in my blog and the arabic posts will switch to RTL automatically based on the custom field?</description>
		<content:encoded><![CDATA[<p>So does this mean I can have both english and arabic posts in my blog and the arabic posts will switch to RTL automatically based on the custom field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabil</title>
		<link>http://www.kadimi.com/en/wordpress-ltr-rtl-556#comment-80</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=556#comment-80</guid>
		<description>You can add this to the beginning of your index.php file or in the functions.php if you have one.

&lt;pre lang=&quot;php&quot;&gt;&lt;?php

  $custom_fields = get_post_custom(/* Current Post */);
  if($custom_fields[&#039;switch&#039;] === &#039;RTL&#039;){
    $text_direction = &quot;rtl&quot;;    
  }

?&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>You can add this to the beginning of your index.php file or in the functions.php if you have one.</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>
&nbsp;
  <span style="color: #000088;">$custom_fields</span> <span style="color: #339933;">=</span> get_post_custom<span style="color: #009900;">&#40;</span><span style="color: #666666; font-style: italic;">/* Current Post */</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$custom_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'switch'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #0000ff;">'RTL'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</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: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>

