original_string: public function generateTableName($ownerTableName, $tableNameSuffix)
      {
          if (preg_match('/{{%(\w+)}}$/', $ownerTableName, $matches)) {
              $ownerTableName = $matches[1];
          }
  
          return '{{%' . $ownerTableName . $tableNameSuffix . '}}';
      }
code: public function generateTableName($ownerTableName, $tableNameSuffix)
      {
          if (preg_match('/{{%(\w+)}}$/', $ownerTableName, $matches)) {
              $ownerTableName = $matches[1];
          }
  
          return '{{%' . $ownerTableName . $tableNameSuffix . '}}';
      }
code_tokens: public function generateTableName ( $ ownerTableName , $ tableNameSuffix ) { if ( preg_match ( '/{{%(\w+)}}$/' , $ ownerTableName , $ matches ) ) { $ ownerTableName = $ matches [ 1 ] ; } return '{{%' . $ ownerTableName . $ tableNameSuffix . '}}' ; }
docstring: Generate translation table name.
  
  @param ActiveRecord $ownerTableName
  @param string $tableNameSuffix
  @return string
docstring_tokens: Generate translation table name .