summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageKu.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
commitc9aa36da061816dee256a979c2ff8d2ee41824d9 (patch)
tree29f7002b80ee984b488bd047dbbd80b36bf892e9 /languages/classes/LanguageKu.php
parentb4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff)
parentd1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff)
Merge branch 'archwiki'
# Conflicts: # skins/ArchLinux.php # skins/ArchLinux/archlogo.gif
Diffstat (limited to 'languages/classes/LanguageKu.php')
-rw-r--r--languages/classes/LanguageKu.php33
1 files changed, 7 insertions, 26 deletions
diff --git a/languages/classes/LanguageKu.php b/languages/classes/LanguageKu.php
index 75ac1c77..1fdebc27 100644
--- a/languages/classes/LanguageKu.php
+++ b/languages/classes/LanguageKu.php
@@ -127,7 +127,8 @@ class KuConverter extends LanguageConverter {
' O' => 'ئۆ ',
' U' => 'ئو ',
' Û' => 'ئوو ',
- # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren
+ # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu
+ # häufig, um sie als eyn zu interpretieren.
# '\'' => 'ع',
/* # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-(
@@ -159,9 +160,9 @@ class KuConverter extends LanguageConverter {
* names as they were
* - do not try to find variants for usernames
*
- * @param $link string
- * @param $nt Title
- * @param $ignoreOtherCond bool
+ * @param string &$link
+ * @param Title &$nt
+ * @param bool $ignoreOtherCond
*/
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
// check for user namespace
@@ -180,31 +181,11 @@ class KuConverter extends LanguageConverter {
}
/**
- * An ugly function wrapper for parsing Image titles
- * (to prevent image name conversion)
- *
- * @param $text string
- * @param $toVariant bool
- *
- * @return string
- */
- function autoConvert( $text, $toVariant = false ) {
- global $wgTitle;
- if ( is_object( $wgTitle ) && $wgTitle->getNamespace() == NS_FILE ) {
- $imagename = $wgTitle->getNsText();
- if ( preg_match( "/^$imagename:/", $text ) ) {
- return $text;
- }
- }
- return parent::autoConvert( $text, $toVariant );
- }
-
- /**
* It translates text into variant, specials:
* - ommiting roman numbers
*
- * @param $text string
- * @param $toVariant bool
+ * @param string $text
+ * @param bool $toVariant
*
* @throws MWException
* @return string