Translation tools

Hi;

I have two problems,
1: I want to develop a two lingual website, I installed and configured the localizer, but i have a problem. when I install the other modules like views and cck, the page become white and i lose all info on the entire website, after I delete the new modules in the related directory, come all info back again. is there any compatibility problem between these modules and localizer? How can I set my website in case of use localizer?
PS: I have a apple computer and according to this i work with mamp.
2: how can I change my entire blocks and CSS in case of using persian. it means If i click on persian to change the language, go the sidebar blocks from left to write and all text get this change as well.

thanks

changing theme according to site language

hi,
About the 2nd problem:
some lines of code to load style.css for LTR languages and style-rtl.css for RTL languages.
If <?php $language ?> is one of "Farsi","Arabic","Hebrew", "Urdu" then load style-rtl.css .
You have to make two changes, first in page.tpl.php replace the this <?php print $styles ?> with the following code block.
Then you have to make a copy of style.css and change the directions in new file to RTL. (direction:rtl)
Now you have two files, one for LTR and one for RTL.

    <?php
    $rtl_langs
= array("fa","ar","he", "ur"); // There are a couple or so more. Put the codes of your RTL languages here
   
$is_rtl = in_array ($language, $rtl_langs);
      if (
$is_rtl) { // Check if the language of the current page is RTL.
      /* Load RTL styles instead of default ones: */
     
foreach($css as $media => $types){
        foreach(
$types as $type => $files){
          foreach(
$files as $file => $preprocess){
           
$element = $file;
           
$rtl_style = str_replace(array ('modules', '.css'),array ('sites/all/modules','-rtl.css'),$file);
            if(
file_exists($rtl_style)){
              unset(
$css[$media][$type][$file]);
             
$css[$media][$type][$rtl_style] = $preprocess;
            }
          }
        }
      }
      print
drupal_get_css($css);
      }
    else {
      print
$styles;
      }
   
?>

If you have problem with above code try this version:
<?php
    $rtl_langs
= array("ar", "fa", "he", "ur", "yi"); // There are a couple or so more. Put the codes of your RTL languages here
   
if (in_array ($language, $rtl_langs)) { // Check if the language of the current page is RTL.
      /* Load RTL styles instead of default ones: */
     
foreach($css as $media => $types){
        foreach(
$types as $type => $files){
          foreach(
$files as $file => $preprocess){
           
$element = $file;
           
$rtl_style = str_replace(".css","-rtl.css",$file);
            if(
file_exists($rtl_style)){
              unset(
$css[$media][$type][$file]);
             
$css[$media][$type][$rtl_style] = $preprocess;
            }
          }
        }
      }
      print
drupal_get_css($css);
      } else {
      print
$styles;
      }
 
?>

---------------------
About the first one, I am not familier with localizer, once I tried to use it I found some major bugs, so I quit!
It was almost 1 year ago. you can create an issue for localizer module and tell the developer about this problem.

Nima Mehrabany
niGraphic | web design and photography