-
Notifications
You must be signed in to change notification settings - Fork 12
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
Language #19
Comments
Try to put this in your config file:
|
Hi ettolo Thanks for the reply. unfortunately it doesn't work. I only see the English language. |
Hi, |
Hi but nothing |
no, if you have basic yii2 template you should create the folder in root, same level as config folder |
Ok i have created in root folder but this the result not translate in file /config/web.php i have insert
and |
|
hi ettolo i'm sorry if i replace this is the messagge Invalid Argument – yii\base\InvalidArgumentException |
Also this is wrong! |
Ops i have copy a file pluto.php so bring patience but I can't understand how to add the path |
the path is ok, |
BINGO!!!!!!!! |
You're welcome! |
Hi sjaakp
I want to activate the Italian language. I have yii2 basic version installed and added the following code in the web.php file:
'i18n' => [
'translations' => [
// ... other translations ...
'pluto' => [// override pluto's standard messages
'class' => 'yii \ i18n \ PhpMessageSource',
'basePath' => '@ app / messages', // this is a default
'sourceLanguage' => 'it-IT', // this as well
]
]
]
Unfortunately, it doesn't work, the Italian language doesn't change.
can you help me please
Thanks
The text was updated successfully, but these errors were encountered: