summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageTr.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-12-03 13:29:22 +0100
commitca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch)
treeec04cc15b867bc21eedca904cea9af0254531a11 /languages/classes/LanguageTr.php
parenta22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff)
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing
Diffstat (limited to 'languages/classes/LanguageTr.php')
-rw-r--r--languages/classes/LanguageTr.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/languages/classes/LanguageTr.php b/languages/classes/LanguageTr.php
index 245b5b06..cbc1b7e4 100644
--- a/languages/classes/LanguageTr.php
+++ b/languages/classes/LanguageTr.php
@@ -3,9 +3,19 @@
/**
* Turkish (Türkçe)
*
+ * Turkish has two different i, one with a dot and another without a dot. They
+ * are totally different letters in this language, so we have to override the
+ * ucfirst and lcfirst methods.
+ * See http://en.wikipedia.org/wiki/Dotted_and_dotless_I
+ * and @bug 28040
* @ingroup Language
*/
class LanguageTr extends Language {
+
+ /**
+ * @param $string string
+ * @return string
+ */
function ucfirst ( $string ) {
if ( !empty( $string ) && $string[0] == 'i' ) {
return 'İ' . substr( $string, 1 );
@@ -13,4 +23,17 @@ class LanguageTr extends Language {
return parent::ucfirst( $string );
}
}
+
+ /**
+ * @param $string string
+ * @return mixed|string
+ */
+ function lcfirst ( $string ) {
+ if ( !empty( $string ) && $string[0] == 'I' ) {
+ return 'ı' . substr( $string, 1 );
+ } else {
+ return parent::lcfirst( $string );
+ }
+ }
+
}