Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
systems:yii2:internationalization_i18n [2018/04/11 15:59] smayr [Controllers] |
systems:yii2:internationalization_i18n [2018/04/11 17:38] (current) smayr [Controllers] |
||
---|---|---|---|
Line 216: | Line 216: | ||
<code php> | <code php> | ||
// Basic Messages | // Basic Messages | ||
- | Yii:: | + | echo Yii:: |
// Messages can contain parameter placeholders which will be replaced | // Messages can contain parameter placeholders which will be replaced | ||
Line 222: | Line 222: | ||
// the following message translation request would replace | // the following message translation request would replace | ||
// the {alias} placeholder in the original message with the actual alias value. | // the {alias} placeholder in the original message with the actual alias value. | ||
- | Yii:: | + | echo Yii:: |
+ | |||
+ | // Positional placeholders | ||
+ | $price = 100; | ||
+ | $count = 2; | ||
+ | $subtotal = 200; | ||
+ | echo \Yii:: | ||
+ | echo \Yii:: | ||
</ | </ | ||
+ | |||
+ | See more formatting and placeholders: | ||
== Detecting Language Automatically == | == Detecting Language Automatically == | ||