Changeset 1138

Show
Ignore:
Timestamp:
09/21/08 19:37:13 (2 months ago)
Author:
bermiferrer
Message:

Moving AkActiveRecord::t() to AkBaseModel? so we can localize any model message.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/AkActiveRecord.php

    r927 r1138  
    29222922    */ 
    29232923 
    2924     function t($string, $array = null) 
    2925     { 
    2926         return Ak::t($string, $array, AkInflector::underscore($this->getModelName())); 
    2927     } 
    29282924 
    29292925    function getInternationalizedColumns() 
  • trunk/lib/AkBaseModel.php

    r468 r1138  
    133133        return true; 
    134134    } 
     135     
     136    function t($string, $array = null) 
     137    { 
     138        return Ak::t($string, $array, AkInflector::underscore($this->getModelName())); 
     139    } 
    135140 
    136141    function _getIncludedModelNames()