added note about varying source languages

fixes #8125
This commit is contained in:
Carsten Brandt
2016-06-20 12:54:14 +02:00
parent 0fe003195a
commit 0bb6f98ed1

View File

@ -53,6 +53,9 @@ you can use the following statement to change the target language:
\Yii::$app->language = 'zh-CN';
```
> Tip: If your source language varies among different parts of your code, you can
> override the source language for different message sources, which are described in the next section.
## Message Translation <span id="message-translation"></span>
The message translation service translates a text message from one language (usually the [[yii\base\Application::$sourceLanguage|source language]])