summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageKaa.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageKaa.php')
-rw-r--r--languages/classes/LanguageKaa.php31
1 files changed, 24 insertions, 7 deletions
diff --git a/languages/classes/LanguageKaa.php b/languages/classes/LanguageKaa.php
index 4a451dcc..f9f61dbd 100644
--- a/languages/classes/LanguageKaa.php
+++ b/languages/classes/LanguageKaa.php
@@ -1,10 +1,9 @@
<?php
+
/** Karakalpak (Qaraqalpaqsha)
*
- *
- * @addtogroup Language
+ * @ingroup Language
*/
-
class LanguageKaa extends Language {
# Convert from the nominative form of a noun to some other case
@@ -20,13 +19,31 @@ class LanguageKaa extends Language {
/* Full code of function convertGrammar() is in development. Updates coming soon. */
return $word;
}
-
+ /*
+ * It fixes issue with ucfirst for transforming 'i' to 'İ'
+ *
+ */
function ucfirst ( $string ) {
if ( $string[0] == 'i' ) {
- return 'İ' . substr( $string, 1 );
+ $string = 'İ' . substr( $string, 1 );
+ } else {
+ $string = parent::ucfirst( $string );
+ }
+ return $string;
+
+ }
+
+ /*
+ * It fixes issue with lcfirst for transforming 'I' to 'ı'
+ *
+ */
+ function lcfirst ( $string ) {
+ if ( $string[0] == 'I' ) {
+ $string = 'ı' . substr( $string, 1 );
} else {
- return parent::ucfirst( $string );
+ $string = parent::lcfirst( $string );
}
+ return $string;
}
/**
@@ -40,4 +57,4 @@ class LanguageKaa extends Language {
}
}
-} \ No newline at end of file
+}