From beb3261b8d4cf52edc286b43381e8e92aca7ac09 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Tue, 7 Nov 2023 22:22:36 +0100 Subject: Remove language coverter for Kazakh This has been constantly mentioned as buggy and broken and there is no official version of latin or Arabic (see the ticket for more details). This can be turned back as an extension if needed by third party users. Bug: T350684 Bug: T268143 Depends-On: I6180dca2c49b3119751766268acc56087aaf8414 Change-Id: Ifbf3c8954d885daf891f8d9efc11743d898302f0 --- includes/languages/LanguageKk.php | 50 +-------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) (limited to 'includes/languages/LanguageKk.php') diff --git a/includes/languages/LanguageKk.php b/includes/languages/LanguageKk.php index 9576cc1e96d1..b2fe443e3814 100644 --- a/includes/languages/LanguageKk.php +++ b/includes/languages/LanguageKk.php @@ -28,59 +28,11 @@ * @ingroup Languages */ class LanguageKk extends LanguageKk_cyrl { - /** - * Fixes an issue with ucfirst for transforming 'i' to 'İ' - * - * @inheritDoc - */ - public function ucfirst( $str ) { - if ( substr( $str, 0, 1 ) === 'i' ) { - $variant = $this->getConverterInternal()->getPreferredVariant(); - if ( $variant == 'kk-latn' || $variant == 'kk-tr' ) { - return 'İ' . substr( $str, 1 ); - } - } - return parent::ucfirst( $str ); - } - - /** - * Fixes issue with lcfirst for transforming 'I' to 'ı' - * - * @inheritDoc - */ - public function lcfirst( $str ) { - if ( substr( $str, 0, 1 ) === 'I' ) { - $variant = $this->getConverterInternal()->getPreferredVariant(); - if ( $variant == 'kk-latn' || $variant == 'kk-tr' ) { - return 'ı' . substr( $str, 1 ); - } - } - return parent::lcfirst( $str ); - } - public function convertGrammar( $word, $case ) { // T277689: If there's no word, then there's nothing to convert. if ( $word === '' ) { return ''; } - - $variant = $this->getConverterInternal()->getPreferredVariant(); - switch ( $variant ) { - case 'kk-arab': - case 'kk-cn': - $word = parent::convertGrammarKk_arab( $word, $case ); - break; - case 'kk-latn': - case 'kk-tr': - $word = parent::convertGrammarKk_latn( $word, $case ); - break; - case 'kk-cyrl': - case 'kk-kz': - case 'kk': - default: - $word = parent::convertGrammarKk_cyrl( $word, $case ); - } - - return $word; + return parent::convertGrammarKk_cyrl( $word, $case ); } } -- cgit v1.2.3