samdark / yii2-cookbook

Yii 2.0 Community Cookbook
1.45k stars 296 forks source link

Using locale in URL for Yii2 to make multi-lingual sites, best practices #4

Closed uran1980 closed 9 years ago

uran1980 commented 10 years ago
samdark commented 10 years ago

Good idea. Thanks!

monghuz commented 10 years ago

With Yii 1.x I made a behavior that insert all of the Yii::t translation message into message source and message tables. But I can't handle those records in the DB table that are deleted from the source code. So maybe it would be a good topic: How to handle translations with DbMessage (auto insert, consolidate, etc.)

samdark commented 9 years ago

Started it: https://github.com/samdark/yii2-cookbook/blob/master/book/i18n-selecting-application-language.md

uran1980 commented 9 years ago

Greate :+1: