$lang = JFactory::getLanguage();
/* $lang->load('扩展','路径','语言','是否重新加载','是否默认语言'); */

//载入组件语言文件
$lang->load('com_content');
$lang->load('com_tags',JPATH_ADMINISTRATOR,'zh-CN',false,true);

//载入form
JForm::addFormPath(JPATH_ROOT.'/components/com_users/models/forms');
$form = $model->getForm();