My tests show that the bottom menu is pulling out the directory name of the template and not the name of the template as stored in BxTemplName.php. Any indication of how long this as been the case? I guess if one always named the template directory exactly the same as the template name, this might have gone unnoticed. However, it is a bug and should be pulling out the template name stored in BxTemplName.php.
You can see this with the default template UNI; the directory name is tmpl_uni and the name stored in the BxTemplName.php is UNI; all caps. Yet, if you notice, the name listed in the bottom menu switcher is uni, all lower case. I am also seeing this in some custom templates I am working on and I kept seeing the wrong name listed down in the bottom menu; the pop-up lists the correct template name.
function getSwitcherTemplate()
{
$sContent = '';
if(getParam('enable_template') != 'on')
return $sContent;
$iTmplsCount = count(get_templates_array());
if($iTmplsCount <= 1)
return $sContent;
$sTemplName = $GLOBALS['oSysTemplate']->getCode();
$aTmplVars = array();
$aTmplVars[] = array(
'caption' => _t('_sys_bm_design', $sTemplName),
'link' => 'javascript:void(0)',
'script' => 'onclick="javascript:showPopupTemplate()"',
'target' => ''
);
$sContent .= $GLOBALS['oSysTemplate']->parseHtmlByName('extra_' . $this->sName . '_menu.html', array('bx_repeat:items' => $aTmplVars));
$sContent .= $this->getListTemplate($sTemplName);
return $sContent;
}