Override Yii::t Function For Module

hello friend,

i want to override Yii::t function for my module as i am converting one yii application into module and that is multilingual and i don’t want to do changes in my all files if is their any method that i can use for my particular module. the simple method is to change Yii::t(‘app’,‘string’) to Yii::t(‘namemodule.app’,‘string’) or i can create mmy own function which can use Yii::t function in my custom function but even in that case i will do change in all places.

please suggest me the appropriate solution.