Index: conditional_styles.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/conditional_styles/conditional_styles.theme.inc,v
retrieving revision 1.4
diff -u -r1.4 conditional_styles.theme.inc
--- conditional_styles.theme.inc	14 Sep 2008 23:26:47 -0000	1.4
+++ conditional_styles.theme.inc	13 Jan 2009 19:58:47 -0000
@@ -39,6 +39,7 @@
   // implementation: foreach ($array AS $key => &$value) {}
 
   // Process the conditional stylesheets for every active theme.
+  global $language;
   $themes = list_themes();
   foreach (array_keys($themes) AS $theme) {
     // We only need to process active themes.
@@ -74,6 +75,12 @@
               // Don't allow non-existent stylesheets to clutter the logs with 404.
               if (file_exists("./$path/$file")) {
                 $output .= "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file$query_string\" />\n";
+                 if ($language->direction == LANGUAGE_RTL){
+                  $file_rtl = str_replace('.css','-rtl.css',$file);
+                  if (file_exists("./$path/$file_rtl")) {
+	                $output .= "<link type=\"text/css\" rel=\"stylesheet\" media=\"$media\" href=\"$base_path$path/$file_rtl$query_string\" />\n";
+ 				  }               
+                }
               }
             }
           }
