Setting and maintaining the language in Application (i18n)

Comparing #5 with #6

Revision #6 was created by olafure olafure on Jun 23, 2009, 9:59:13 AM.

Added <?php tags where missing

Content

[...]
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>
[...]