flexo-language

Add another language functionality, that is file based without compressions
see: http://www.flexostudio.com/

Author:Grigor Grigorov, Mariela Stefanova, Flexo Studio Team (profile at wordpress.org)
WordPress version required:3.0.5
WordPress version tested:3.0.5
Plugin version:1.0001
Added to WordPress repository:22-11-2011
Last updated:22-11-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.flexostudio.com/wordpress-plugins-...
Total downloads:1 220
plugin download
Click to start download

It allow the user to translate static texts as the example:
echo _l(‘cat’);

see http://www.flexostudio.com/

How to use

need to make php file that is located inside the theme, it must be said lang_ (languages ??which will translate as lang_en.php)
and contains the following code:

<?php $FL_DICT = array(

   'cat' => 'Katze',
   'dog' => 'Hund',
.............

);?>
where ‘cat’ => ‘Katze’ ‘regulations is a word and its translation.

in function.php to add the code:
<?php if(class_exists(‘flexoLanguage’)){

$f  =   dirname(__FILE__);

if(!flexoLanguage::is_set_language())
    flexoLanguage::set_language('en');//selected language

flexoLanguage::add_dictionary($f);

function _l($key){
    return flexoLanguage::_($key);
}

}
else{
function _l($key){return $key;}
}?>

and everywhere in the code where you write words you want to have a translation in another language and place:
_l(‘cat’);