Comparing
#1 with
#2
Content
I needed
the all messages with their translation into javascript.
This is my solution:
1
.- Extend CPhpMessageSource, creating MPhpMessageSource into protected/components :
```php[...]
}
```
2.- You add this to protected/config/main.php into components array:[...]
```
3.- You add this code into your view:
```php
<script type="text/javascript">[...]