You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the FullCrud with the slim template, with the default "crud" as i18n key:
The first field in the form (a text field) used CActiveForm::labelEx(), which is fine as my model is already i18n as I created it with the FullModel gii template
The other two fields (relational fields) however used a vanilla <label> tag with the label title inside it using Yii::t('crud', 'UnitTo') (what's not even human-readable text, it's the original field name). On top of that, there's no red star showing the field as required.
Seeing this way, looks like the FullModel and FullCrud are struggling with each other to see who gets the better translation haha
I also noticed the text "Fields with * are required" got broken into two parts, while I'm used to translate the entire line (including the HTML tag for the star) - it does not make much sense having two separate i18n lines, each for half of the phrase.
What if the i18n was removed from FullCrud? Or at least from the labels, and "app" could be the default instead of "crud"?
The text was updated successfully, but these errors were encountered:
You're raising valid issues, thank you.
But I need some time to investigate this.
What if the i18n was removed from FullCrud? Or at least from the labels, and "app" could be the default instead of "crud"?
You can set the default translation catalogue in the admin interface.
I tried using the FullCrud with the slim template, with the default "crud" as i18n key:
CActiveForm::labelEx()
, which is fine as my model is already i18n as I created it with the FullModel gii template<label>
tag with the label title inside it usingYii::t('crud', 'UnitTo')
(what's not even human-readable text, it's the original field name). On top of that, there's no red star showing the field as required.Seeing this way, looks like the FullModel and FullCrud are struggling with each other to see who gets the better translation haha
I also noticed the text "Fields with * are required" got broken into two parts, while I'm used to translate the entire line (including the HTML tag for the star) - it does not make much sense having two separate i18n lines, each for half of the phrase.
What if the i18n was removed from FullCrud? Or at least from the labels, and "app" could be the default instead of "crud"?
The text was updated successfully, but these errors were encountered: