Ejemplo n.º 1
0
 /**
  * It fixes issue with ucfirst for transforming 'i' to 'İ'
  *
  * @param $string string
  *
  * @return string
  */
 function ucfirst($string)
 {
     $variant = $this->getPreferredVariant();
     if (($variant == 'kk-latn' || $variant == 'kk-tr') && $string[0] == 'i') {
         $string = 'İ' . substr($string, 1);
     } else {
         $string = parent::ucfirst($string);
     }
     return $string;
 }
Ejemplo n.º 2
0
 /**
  * It fixes issue with ucfirst for transforming 'i' to 'İ'
  *
  * @param string $string
  *
  * @return string
  */
 function ucfirst($string)
 {
     if ($string[0] == 'i') {
         $variant = $this->getPreferredVariant();
         if ($variant == 'kk-latn' || $variant == 'kk-tr') {
             return 'İ' . substr($string, 1);
         }
     }
     return parent::ucfirst($string);
 }