Difference between #7 and #8 of
Setting and maintaining the language in Application (i18n)

Revision #8 has been created by atrandafir on Dec 9, 2010, 1:22:42 AM with the memo:

removed the short tags for compatibility issues for all users
« previous (#7) next (#9) »

Changes

Title unchanged

Setting and maintaining the language in Application (i18n)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

i18n

Content changed

[...]
{
$currentLang = Yii::app()->language;
$this->render('langBox', array('currentLang' => $currentLang));
}
}
?>
 
``` **components/views/langBox.php** ```php <?php
 
<?=
 echo CHtml::form(); ?> <div id="langdrop"> <?=php echo CHtml::dropDownList('_lang', $currentLang, array( 'en_us' => 'English', 'is_is' => 'Icelandic'), array('submit' => '')); ?> </div> </form>
 
?php echo CHtml::endForm(); ?> ```
19 0
29 followers
Viewed: 163 776 times
Version: 1.1
Category: Tutorials
Written by: olafure
Last updated by: Yang He
Created on: Apr 5, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history