Yii Framework Forum: Translate Language With Login Page In Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Translate Language With Login Page In Yii Rate Topic: -----

#1 User is offline   User8 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 08-April 14

Posted 08 April 2014 - 05:49 AM

I'm trying to translate language in Yii Framework.
I followed below tutorial
[1]: http://www.yiiframew...or-widget-i18n/

Its Working With Link Like
English|French|Portuguese

But its not Working with DropDown Listing (login page )
Code:
echo CHtml::form();
foreach($languages as $key=>$lang) {
echo CHtml::hiddenField(
$key,
$this->getOwner()->createMultilanguageReturnUrl($key));
}

$this->widget('application.extensions.select2.XSelect2', array(
'name' =>'language',
'value'=>$currentLang,
'data'=>$languages,
'htmlOptions'=>array('style'=>'width:220px', 'submit'=>'')
));
echo CHtml::endForm();

Any help would be appreciated.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users