Actions

Category talk

Tips and tricks 1.5

From Joomla! Documentation

Revision as of 00:44, 28 August 2008 by Chris Davenport (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;


Thanks, but this should be moved elsewhere. Chris Davenport 02:44, 28 August 2008 (EDT)