Difference between #123 and #124 of
Yii v2 snippet guide

Revision #124 has been created by rackycz on Oct 4, 2019, 8:30:47 AM with the memo:

translations
« previous (#123) next (#125) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
'sourceLanguage' => 'en-US',

// ... other configs
```

**2 - Translating long texts and whole views**
 
-


If you have a view with long texts and you want to translate it into a 2nd language, it is not good idea to use the previous approach, because it uses the English text as the ID.

It is better to translate the whole view. How? ... Just create a sub-folder next to the view and give it name which will be identical to the target-lang-ID. In my case the 2nd language is Czech so I created following folder and copied my view in it. So now I have 2 identical views with identical names:
[...]
7 0
4 followers
Viewed: 259 206 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: 7 months ago
Update Article

Revisions

View all history