mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
@ -53,6 +53,9 @@ you can use the following statement to change the target language:
|
|||||||
\Yii::$app->language = 'zh-CN';
|
\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>
|
## 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]])
|
The message translation service translates a text message from one language (usually the [[yii\base\Application::$sourceLanguage|source language]])
|
||||||
|
Reference in New Issue
Block a user