Hey Kyle,
Thanks for the suggestion. The working solution is below.
I hard coded the menu items and languages in, but someone else might make them parameters to the plugin.
Code:
class BBJoomlaLanguage {
static public function whatIsIt(){
jimport('joomla.language.helper');
$languages = JLanguageHelper::getLanguages('lang_code');
$lang_code = JFactory::getLanguage()->getTag();
return $languages[$lang_code]->sef;
}
}
class BBProfileItemIdSetter extends cbPluginHandler {
public function onAfterUserProfileDisplay(){
$lang = BBJoomlaLanguage::whatIsIt();
if($lang === 'en'){
JRequest::setVar('Itemid', '514');
} else {
JRequest::setVar('Itemid', '532');
}
}
}