Difference between #5 and #6 of
Setting and maintaining the language in Application (i18n)

Revision #6 has been created by olafure on Jun 23, 2009, 9:59:13 AM with the memo:

Added « previous (#5) next (#7) »

Changes

Title unchanged

Setting and maintaining the language in Application (i18n)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
You can use a custom made Widget to let the user select language:

**components/LangBox.php**

```php
<?php
 
class LangBox extends CWidget
{
public function run()
[...]
```php
<?php
 
<?= CHtml::form() ?>
<div id="langdrop">
<?= CHtml::dropDownList('_lang', $currentLang, array(
'en_us' => 'English', 'is_is' => 'Icelandic'), array('submit' => '')) ?>
</div>
</form>
[...]
19 0
29 followers
Viewed: 163 782 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