Index: trunk/extensions/Genderize/README |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <!-- README --> |
3 | 3 | |
4 | | -== What for? == |
| 4 | +== What? == |
5 | 5 | |
6 | 6 | Let user page titles and links to user pages be gender-specific. |
7 | 7 | |
— | — | @@ -18,20 +18,25 @@ |
19 | 19 | |
20 | 20 | svn checkout https://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Genderize |
21 | 21 | |
22 | | -== Usage == |
| 22 | +== Installation == |
23 | 23 | |
24 | | -Add to your LocalSettings.php: |
| 24 | +Add to your `LocalSettings.php': |
25 | 25 | |
26 | | - // $egGenderize should be set *before* including `Genderize.php'. |
27 | | - $egGenderize[ 'male' ] = 'Male'; // Replace Male, Female, |
28 | | - $egGenderize[ 'female' ] = 'Female'; // and Unknown with proper words |
29 | | - $egGenderize[ 'unknown' ] = 'Unknown'; // in wiki content language. |
30 | | - // Do *not* change $wgExtraGenderNamespaces[ NS_USER ]. |
31 | | - // Include extension file: |
32 | | - require_once( 'path-to-extension/Genderize.php' ); |
| 26 | + require_once( "$IP/extensions/Genderize/Genderize.php" ); |
33 | 27 | |
34 | | -If $egGender is not set, English `User' is used instead. |
| 28 | +== Configuration == |
35 | 29 | |
| 30 | +In `LocalSettings.php' after including `Genderize.php': |
| 31 | + |
| 32 | + $egGenderize = array( |
| 33 | + 'male' => 'Male', // Replace Male, Female, |
| 34 | + 'female' => 'Female', // and Unknown with proper words |
| 35 | + 'unknown' => 'Unknown' // in wiki content language. |
| 36 | + ); |
| 37 | + |
| 38 | +Do not change `$wgExtraGenderNamespaces[ NS_USER ]'. If $egGender is not set, English `User' is |
| 39 | +used instead. |
| 40 | + |
36 | 41 | == Effect == |
37 | 42 | |
38 | 43 | (Let us assume $egGenderize is set as in the example above.) |