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

Revision #63 has been created by rackycz on Sep 20, 2019, 1:55:20 PM with the memo:

« previous (#62) next (#64) »


Title unchanged

Yii v2 for beginners

Category unchanged


Yii version unchanged


Tags unchanged


Content changed

i18n translations
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.) *
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 theis files bellow are used.
- "C:\xampp\htdocs\basic\messages\cs-CZ\app.php"
- "C:\xampp\htdocs\basic\messages\de-DE\app.php"
 will be used.

Now go to file config/web.php, find section "components" and paste this code:

'components' => [
2 0
1 follower
Viewed: 11 613 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: 29 days ago
Update Article


View all history