Skip to content

Instantly share code, notes, and snippets.

@mbarinov
Last active December 13, 2015 16:49
Show Gist options
  • Save mbarinov/4943541 to your computer and use it in GitHub Desktop.
Save mbarinov/4943541 to your computer and use it in GitHub Desktop.
$selectWidget = new sfWidgetFormSelect(array(
'choices' => array(
sfContext::getInstance()->getI18N()->__(
'Native lang',
array(),
'locale'
)
) + UserPeer::getLangLevelNames()
));
@Slach
Copy link

Slach commented Feb 13, 2013

а причем тут
LangLevelNames ??
это имя УРОВНЯ.....

я думаю вместо UserPeer
лучше сделать LinguaCore::load('locale')->getUserLocaleNames()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment