aboutsummaryrefslogtreecommitdiffstats
path: root/includes/languages/LanguageKk.php
diff options
context:
space:
mode:
authorAmir Sarabadani <ladsgroup@gmail.com>2023-11-07 22:22:36 +0100
committerJames D. Forrester <jforrester@wikimedia.org>2023-11-20 10:31:16 -0500
commitbeb3261b8d4cf52edc286b43381e8e92aca7ac09 (patch)
tree20fc1cd06d59803b16441143be4d9f8b80a7a0c5 /includes/languages/LanguageKk.php
parent8c51e4b03c34483db81930ef054b94942f224ce3 (diff)
downloadmediawikicore-beb3261b8d4cf52edc286b43381e8e92aca7ac09.tar.gz
mediawikicore-beb3261b8d4cf52edc286b43381e8e92aca7ac09.zip
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
Diffstat (limited to 'includes/languages/LanguageKk.php')
-rw-r--r--includes/languages/LanguageKk.php50
1 files changed, 1 insertions, 49 deletions
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 );
}
}