-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
yii message command do not extract messages from "\Yii::t(" with leading symbol \ #18941
Comments
MessageController: /**
* @var string the name of the function for translating messages.
* Defaults to 'Yii::t'. This is used as a mark to find the messages to be
* translated. You may use a string for single function name or an array for
* multiple function names.
*/
public $translator = 'Yii::t'; |
@epifrin please try customizing the option. |
Now it's fixed in master branch. |
Since creating config file via console command put |
@MarkoNV PR not change behavior of older projects, but you can update |
@WinterSilence it doesn't change behaviour of older projects, but since that behaviour is bug and this is bugfix for that bug, action that need to be taken on project level for bugfix to work, should be mentioned. I'll try to make PR next week. I tried today for other bug, but on Win machine couldn't make configuration right. |
Translations won't be collected from construction \Yii::t('app', 'test'); if it has leading symbol \ and Yii do not imported in use section.
Additional info
The text was updated successfully, but these errors were encountered: