flexo-language

توسط

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’);

  1. Download.
  2. Unzip.
  3. Upload to the plugins directory.
  4. Activate the plugin.
  5. Have a nice work.

سوالات متداول

پرسش و پاسخی برای این آیتم موجود نیست.
تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

18 اردیبهشت 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 3.0.5+

تست شده از نسخه

وردپرس 3.0.5

نگارش PHP

-

تگ ها

نسخه ها

0 نسخه