D
D
Dmitry Kim2017-09-04 07:59:38
Yii
Dmitry Kim, 2017-09-04 07:59:38

How to add additional language to Yii2 system messages?

The Kazakh language is defined as "KK", the framework has built-in translations of error messages, which are here: @yii/messages/kk.
Is there a trivial way to make yii2 translate messages with KZinstead of KK? Those. add a language folder KZand force YII2 to go there if necessary.
Trivial, means to configure directly from the configuration file.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kim, 2017-09-04
@kimono

I did not find a "trivial" way. I solved it by changing "basePath" to a directory inside the project and copying the kk folder to kz.

O
oh, 2017-09-04
well @AnneSmith

but that doesn't fit?
www.yiiframework.com/wiki/243/how-to-translate-and...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question