Size: a a a

2020 December 25

AM

Alexander Makarov in Yii Framework 3
Они там в issue не то слово юзали.
источник

D

DarkDef in Yii Framework 3
Обсуждение большое, почитаю вдумчиво вечером тогда
источник
2020 December 26

AM

Alexander Makarov in Yii Framework 3
источник

JD

John Doe in Yii Framework 3
источник

T

TradersVE in Yii Framework 3
DarkDef
Обсуждение большое, почитаю вдумчиво вечером тогда
hi, how can i use multiple translation files in translator-message-php.
источник

D

DarkDef in Yii Framework 3
Many categories with many language. Or you interested file structure?
источник

D

DarkDef in Yii Framework 3
источник

T

TradersVE in Yii Framework 3
DarkDef
Many categories with many language. Or you interested file structure?
Suppose you have the template and several modules, there must be a way for the translator to access the different folders of the language modules, or in getMessage, have the optional parameter of the directory that supports aliases.
источник

D

DarkDef in Yii Framework 3
Create instance of MessageSource with phisical path to translates in constructor
источник

D

DarkDef in Yii Framework 3
@samdark Надо видимо доку сесть написать )
источник

T

TradersVE in Yii Framework 3
DarkDef
Create instance of MessageSource with phisical path to translates in constructor
If I did that and it works great, but if they are modules from different developers, each one will have its individual file.
источник

T

TradersVE in Yii Framework 3
So as I inject MessageSource into the view, I can't change the file path :)
источник

D

DarkDef in Yii Framework 3
TradersVE
If I did that and it works great, but if they are modules from different developers, each one will have its individual file.
Yes, for one module - one phisical files in module. Or copy to one global  source
источник

T

TradersVE in Yii Framework 3
and wouldn't it be better to add a setter to change the path, or add the optional path option in getMessage?
источник

T

TradersVE in Yii Framework 3
<?= $translator->getMessage('Login', 'user', $locale->language(), '@language') ?>
источник

D

DarkDef in Yii Framework 3
Soory. I'm not any idea. Only copy all translations files to one path.
источник

T

TradersVE in Yii Framework 3
DarkDef
Soory. I'm not any idea. Only copy all translations files to one path.
👍
источник

D

DarkDef in Yii Framework 3
TradersVE
👍
It's bad idea. Need better
источник

AM

Alexander Makarov in Yii Framework 3
DarkDef
@samdark Надо видимо доку сесть написать )
Да. Начнёшь?
источник

D

DarkDef in Yii Framework 3
На русском можно? Или на ломаном инглише?
источник