-
Notifications
You must be signed in to change notification settings - Fork 120
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
Remove translation in CRUD #190
Comments
Do you run it on the CLI? That would be always my recommendation.
So if this is disabled, it's a bug. I need to double check. I've added the help of the console commands: https://github.com/schmunk42/yii2-giiant/blob/master/docs/25-cli-commands.md You can also specify this in an application |
I suppose that might be a little easier than manually deleting each instance of t(…). This is clearly a bug. Hope you’ll designate it as such. Please let me know when it’s fixed so that I can start using giiant again.
From: Tobias Munk [mailto:[email protected]]
Sent: Wednesday, January 11, 2017 11:48 PM
To: schmunk42/yii2-giiant <[email protected]>
Cc: LarryTX <[email protected]>; Author <[email protected]>
Subject: Re: [schmunk42/yii2-giiant] Remove translation in CRUD (#190)
Do you run it on the CLI? That would be always my recommendation.
…--enableI18N: boolean, 0 or 1 (defaults to 0)
This indicates whether the generator should generate strings using Yii::t()
method. Set this to true if you are planning to make your application
translatable.
I've added the help of the console commands: https://github.com/schmunk42/yii2-giiant/blob/master/docs/25-cli-commands.md
You can also specify this in an application controllerMap or script.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#190 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AABRBx8ldY271CgC34OXP4nrlGvyWvYTks5rRb6ZgaJpZM4LhWnx> . <https://github.com/notifications/beacon/AABRB3WzDTqKo0m4BxAr-iBX8N9L1TH4ks5rRb6ZgaJpZM4LhWnx.gif>
|
Just double checked it. Clearly a bug. Thank you for reporting. |
If you do not need translations in your app, you could put this in your configuration to avoid the missing category errors
See https://www.yiiframework.com/doc/guide/2.0/en/tutorial-i18n#default-message-source |
Is there any way to disable I18N translation behavior when generating CRUD in giiant. I have, on every single occasion, ensured that I18N is not check when generating CRUD. I have also ensured that Translation behavior is disabled when generating the models. Yet, every single time, I have to through all the views created by giiant, searching for 't(' to find all the instances were it occurs and manually delete each one individually.
I have absolutely no need or use for translations on the backends that I create. Having to set up a message source for each model that does nothing but give the English language for everything just adds unnecessary weight.
The text was updated successfully, but these errors were encountered: