how to change Guest label ?

maybe a stupid question.

I tried the core messages file, contentForm in /protected/messages/fr for localize

but I haven’t find the way (file) to set a different label when app()->user->name returns “Guest”

does anbody know how to change it ?

I 've to say, I’m using RBAC as well, so I need to get the actual name when logged :wink:


Any luck on changing the label for the Guest?

In the config file






You may need to set it at a later stage for I18n.

E.g. override CWebUser::init() and add

$this->guestName = Yii::t(‘your_i18n’, ‘YourGuestName’);

(This will translate but I don’t know if it’s the right place)


thank you :)