nganhtuan63 / gxc-cms-2

GXC-CMS version 2.0
78 stars 56 forks source link

I'm getting some erros around the usage of t() function #8

Closed ghost closed 11 years ago

ghost commented 11 years ago

First when I've created a new content type, the generated object_form_widget.php are setting up the t() function without the first argument.

As is:

<?php echo t('Content Extra');?>

Fixed:

<?php echo t('cms','Content Extra');?>

But it's necessary to correct directly on gii module.

I've seen this kind of error all around the system. Like https://github.com/nganhtuan63/GXC-CMS-2/blob/master/core/cms/widgets/page/ContentListUpdateWidget.php, on lines 54 and 64

nganhtuan63 commented 11 years ago

Fixed this. It is because from old version, I don't add category for t function.