protected function getLanguageSuffix($culture)
{
$app = $this->getApplication()->getGlobalization();
if (empty($culture) && $app !== null) {
$culture = $app->getCulture();
}
$variants = array();
if ($app !== null) {
$variants = $app->getCultureVariants($culture);
}
foreach ($variants as $variant) {
if (isset(self::$_langs[$variant])) {
return self::$_langs[$variant];
}
}
return 'en';
}