Difference between #63 and #64 of
Yii v2 snippet guide

Revision #64 has been created by rackycz on Sep 20, 2019, 1:58:44 PM with the memo:

edit
« previous (#63) next (#65) »

Changes

Title unchanged

Yii v2 for beginners

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
---
Translations are fairly simple, but I probably didnt read manuals carefully so it took me some time.

First create following folders and file.

- "C:\xampp\htdocs\basic\messages\cs-CZ\app.php"
 
- "C:\xampp\htdocs\basic\messages\de-DE\app.php"
*(Note that cs-CZ is for Czech Lanuage. For German you should use de-DE etc. Use any other language if you want.)*

The idea behind is that in the code ther are used only English texts and if you want to change from English to some other language this file will be used.
[...]
- "C:\xampp\htdocs\basic\messages\cs-CZ\app.php"

Therefore open
yourthe file and paste there following code:

```php
[...]
```php
Yii::$app->language = "cs-CZ"; // use your language
```
 
Note: This language-setting will be forgotten as soon as you click somewhere. In next chapter we will enhance this ..


Switching languages + session + dropdown in the top menu
---
... text ...
[...]
7 0
4 followers
Viewed: 274 804 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history