-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add more languages #102
Comments
I am using https://github.com/OmgDef/yii2-multilingual-behavior with this CMS and so far it works perfectly. |
thanks for answer. but I'll test it later |
Hello @martins-giberts |
Can you describe how to do it? |
Согласен с предидущим постом, можно подробности, может есть смысл написать статью по этому поводу?! |
@alladas @msoa @tixaskiy I coppy pasted example module and migration from one of products I made with EasyIii, here is how I did it: |
Тема актуальная, по этому буду рад любой информации. Пример который вы выложили это мультиязычность для SeoText , правильно я вас понял? |
@tixaskiy Yes, exactly. I made this change for Seo Text Model to support multi language. You will need additional changes for CMS Form for inserting new fields, I will check if I can extract simple code samples but it should be straight forward from the Module file what kind of field names you need for input fields. |
Спасибо, буду ждать примеры. Хочется видеть как будет выглядеть админ часть для добавления и как это выводить в виде?. Плюс какой будет путь сайта с тем или иным языком. |
@tixaskiy Just in case - here are config and UrlManager class I am using to switch between languages: Switcher is completely custom, you just need to add language attribute to any route you are generating in views, either existing/selected one or forced one for switching language. |
@martins-giberts Спасибо за помощь, если появятся вопросы на пишу. |
А можно посмотреть как выглядит \app\modules\admin\components\ActiveRecord ? |
|
Hi. Is it possibe to add more languages
The text was updated successfully, but these errors were encountered: