Index: trunk/extensions/LiveTranslate/RELEASE-NOTES |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | |
7 | 7 | |
8 | 8 | === Version 0.2 === |
9 | | -201x-xx-xx |
| 9 | +2010-12-24 |
10 | 10 | |
11 | 11 | * Fixed installation compatibility issue with MW 1.16. |
12 | 12 | * Fixed display of translation control to only happen on existing pages. |
Index: trunk/extensions/LiveTranslate/includes/LiveTranslate_Functions.php |
— | — | @@ -369,11 +369,11 @@ |
370 | 370 | * @return mixed |
371 | 371 | */ |
372 | 372 | public static function getToggledCase( $text ) { |
373 | | - $isUpper = $text{0} == strtoupper( $text{0} ); |
374 | | - $isLower = $text{0} == strtolower( $text{0} ); |
| 373 | + $isUpper = Language::firstChar( $text) == strtoupper( Language::firstChar( $text) ); |
| 374 | + $isLower = Language::firstChar( $text) == strtolower( Language::firstChar( $text) ); |
375 | 375 | |
376 | 376 | if ( $isUpper XOR $isLower ) { |
377 | | - $text{0} = $isUpper ? strtolower( $text{0} ) : strtoupper( $text{0} ); |
| 377 | + $text = $isUpper ? Language::lcfirst( $text ) : Language::ucfirst( $text ); |
378 | 378 | return $text; |
379 | 379 | } |
380 | 380 | else { |