Actions

Category talk

Tips and tricks 1.5

From Joomla! Documentation

Revision as of 23:33, 27 August 2008 by Ebrahimiali (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

for get language property

بدست آوردن زبان و راست به چپ بودن و زبان سایت


Contents

get main name language

$lg = &JFactory::getLanguage(); $language = $lg->get('name'); echo $language;


get direction language (sample : check farsi and arabic)

$lg = &JFactory::getLanguage(); $language = $lg->get('rtl'); if ($language) echo $language;


get name language

$lg = &JFactory::getLanguage(); $language = $lg->get('name'); echo $language;

get code page language

$lg = &JFactory::getLanguage(); $language = $lg->get('winCodePage'); echo $language;

get name language

$lg = &JFactory::getLanguage(); $language = $lg->get('backwardLang'); echo $language;