Difference between #6 and #7 of
Themed translations (i18n)

Revision #7 has been created by le_top on Nov 24, 2014, 12:03:56 AM with the memo:

Remove private environment specific configuration.
« previous (#6)

Changes

Title unchanged

Themed translations (i18n)

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

Yii::t, t, translation, i18n, CPhpMessageSource, messages, theme, theming, themes

Content changed

[...]
return array(
//...
'components'=>array(
'messages'=>array(
'class' => 'ThemedPhpMessageSource',
                        'cachingDuration'=>$isProduction?'3600':0,
 
 
),
)
);
```

Then in your 'themes/<yourtheme>/messages' directory, add your themed messages as you do for the application and for widgets.
[...]
1 0
1 follower
Viewed: 16 918 times
Version: 1.1
Category: How-tos
Written by: le_top
Last updated by: le_top
Created on: Nov 22, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history