languages/classes/LanguageIu.php 1 location
|
@@ 147-161 (lines=15) @@
|
144 |
|
* @param Title &$nt |
145 |
|
* @param bool $ignoreOtherCond |
146 |
|
*/ |
147 |
|
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
148 |
|
// check for user namespace |
149 |
|
if ( is_object( $nt ) ) { |
150 |
|
$ns = $nt->getNamespace(); |
151 |
|
if ( $ns == NS_USER || $ns == NS_USER_TALK ) { |
152 |
|
return; |
153 |
|
} |
154 |
|
} |
155 |
|
|
156 |
|
$oldlink = $link; |
157 |
|
parent::findVariantLink( $link, $nt, $ignoreOtherCond ); |
158 |
|
if ( $this->getPreferredVariant() == $this->mMainLanguageCode ) { |
159 |
|
$link = $oldlink; |
160 |
|
} |
161 |
|
} |
162 |
|
|
163 |
|
/** |
164 |
|
* It translates text into variant |
languages/classes/LanguageKk.php 1 location
|
@@ 254-268 (lines=15) @@
|
251 |
|
* @param Title &$nt |
252 |
|
* @param bool $ignoreOtherCond |
253 |
|
*/ |
254 |
|
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
255 |
|
// check for user namespace |
256 |
|
if ( is_object( $nt ) ) { |
257 |
|
$ns = $nt->getNamespace(); |
258 |
|
if ( $ns == NS_USER || $ns == NS_USER_TALK ) { |
259 |
|
return; |
260 |
|
} |
261 |
|
} |
262 |
|
|
263 |
|
$oldlink = $link; |
264 |
|
parent::findVariantLink( $link, $nt, $ignoreOtherCond ); |
265 |
|
if ( $this->getPreferredVariant() == $this->mMainLanguageCode ) { |
266 |
|
$link = $oldlink; |
267 |
|
} |
268 |
|
} |
269 |
|
|
270 |
|
/** |
271 |
|
* It translates text into variant |
languages/classes/LanguageKu.php 1 location
|
@@ 164-178 (lines=15) @@
|
161 |
|
* @param Title &$nt |
162 |
|
* @param bool $ignoreOtherCond |
163 |
|
*/ |
164 |
|
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
165 |
|
// check for user namespace |
166 |
|
if ( is_object( $nt ) ) { |
167 |
|
$ns = $nt->getNamespace(); |
168 |
|
if ( $ns == NS_USER || $ns == NS_USER_TALK ) { |
169 |
|
return; |
170 |
|
} |
171 |
|
} |
172 |
|
|
173 |
|
$oldlink = $link; |
174 |
|
parent::findVariantLink( $link, $nt, $ignoreOtherCond ); |
175 |
|
if ( $this->getPreferredVariant() == $this->mMainLanguageCode ) { |
176 |
|
$link = $oldlink; |
177 |
|
} |
178 |
|
} |
179 |
|
|
180 |
|
/** |
181 |
|
* It translates text into variant, specials: |
languages/classes/LanguageShi.php 1 location
|
@@ 123-137 (lines=15) @@
|
120 |
|
* @param Title &$nt |
121 |
|
* @param bool $ignoreOtherCond |
122 |
|
*/ |
123 |
|
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
124 |
|
// check for user namespace |
125 |
|
if ( is_object( $nt ) ) { |
126 |
|
$ns = $nt->getNamespace(); |
127 |
|
if ( $ns == NS_USER || $ns == NS_USER_TALK ) { |
128 |
|
return; |
129 |
|
} |
130 |
|
} |
131 |
|
|
132 |
|
$oldlink = $link; |
133 |
|
parent::findVariantLink( $link, $nt, $ignoreOtherCond ); |
134 |
|
if ( $this->getPreferredVariant() == $this->mMainLanguageCode ) { |
135 |
|
$link = $oldlink; |
136 |
|
} |
137 |
|
} |
138 |
|
|
139 |
|
/** |
140 |
|
* It translates text into variant |
languages/classes/LanguageSr.php 1 location
|
@@ 113-127 (lines=15) @@
|
110 |
|
* @param Title &$nt |
111 |
|
* @param bool $ignoreOtherCond |
112 |
|
*/ |
113 |
|
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
114 |
|
// check for user namespace |
115 |
|
if ( is_object( $nt ) ) { |
116 |
|
$ns = $nt->getNamespace(); |
117 |
|
if ( $ns == NS_USER || $ns == NS_USER_TALK ) { |
118 |
|
return; |
119 |
|
} |
120 |
|
} |
121 |
|
|
122 |
|
$oldlink = $link; |
123 |
|
parent::findVariantLink( $link, $nt, $ignoreOtherCond ); |
124 |
|
if ( $this->getPreferredVariant() == $this->mMainLanguageCode ) { |
125 |
|
$link = $oldlink; |
126 |
|
} |
127 |
|
} |
128 |
|
|
129 |
|
/** |
130 |
|
* It translates text into variant, specials: |