Index: trunk/extensions/Genderize/Genderize.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | 'license' => 'AGPL-3.0+', |
51 | 51 | 'version' => '0.0.1', |
52 | 52 | 'author' => array( '[http://www.mediawiki.org/wiki/User:Van_de_Bugger Van de Bugger]' ), |
53 | | - //~ 'url' => 'http://example.org/', |
| 53 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Genderize', |
54 | 54 | 'descriptionmsg' => 'genderize-description', |
55 | 55 | ); |
56 | 56 | |
Index: trunk/extensions/Genderize/README |
— | — | @@ -6,18 +6,29 @@ |
7 | 7 | |
8 | 8 | == Why? == |
9 | 9 | |
10 | | -MediaWiki 1.18.0 introduced $wgExtraGenderNamespaces for it. Yes, but it does only 1/4 of the job. |
11 | | -If you set up $wgExtraGenderNamespaces properly, tooltips of links to user pages are genderized. |
12 | | -But link text, user page title and namespace tab are not. This extension let |
13 | | -$wgExtraGenderNamespaces do its part of the job and does the rest. |
| 10 | +MediaWiki 1.18.0 introduced $wgExtraGenderNamespaces, but it does only part of the job. If you set |
| 11 | +up $wgExtraGenderNamespaces properly, tooltips of links to user pages and user page titles are |
| 12 | +genderized, but link text and namespace tab are not. This extension let $wgExtraGenderNamespaces do |
| 13 | +its part of the job and does the rest. |
14 | 14 | |
| 15 | +I believe some day all the functionality will be implemented in MediaWiki core and the Genderize |
| 16 | +extension will be obsolete. But for MediaWiki 1.18.x the Genderize fills the gap. |
| 17 | + |
| 18 | +== Download == |
| 19 | + |
| 20 | + svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Genderize |
| 21 | + |
15 | 22 | == Usage == |
16 | 23 | |
| 24 | +Add to your LocalSettings.php: |
| 25 | + |
17 | 26 | // $egGenderize should be set *before* including `Genderize.php'. |
18 | | - $egGenderize[ 'male' ] = 'Male'; |
19 | | - $egGenderize[ 'female' ] = 'Female'; |
20 | | - $egGenderize[ 'unknown' ] = 'Unknown'; |
21 | | - require_once( '.../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' ); |
22 | 33 | |
23 | 34 | If $egGender is not set, English `User' is used instead. |
24 | 35 | |
— | — | @@ -25,12 +36,12 @@ |
26 | 37 | |
27 | 38 | (Let us assume $egGenderize is set as in the example above.) |
28 | 39 | |
29 | | -Liтks to a user page can be specified as [[Male:Name]], [[Female:Name]], or [[Unknown:Name]], or as |
| 40 | +Links to a user page can be specified as [[Male:Name]], [[Female:Name]], or [[Unknown:Name]], or as |
30 | 41 | canonical [[User:Name]]. Regardless of the used prefix, link will be rendered with proper prefix. |
31 | 42 | |
32 | | -User page title will be genderized, e. g. `Female:Name'. Namespace tab (in case of Vector skin it |
33 | | -is above the left-upper corner of the page) will be `Female', not `User'. |
34 | | - |
| 43 | +User page title will be genderized, e. g. `Female:Name'. Namespace tab (in case of Vector skin it is |
| 44 | +above the left-upper corner of the page) will be `Female', not `User'. |
| 45 | + |
35 | 46 | == Known issues == |
36 | 47 | |
37 | 48 | Some messages are not translated yet. For example, namespace's tab tooltip. |
— | — | @@ -40,4 +51,10 @@ |
41 | 52 | GNU Affero General Public License, version 3 or any later version. See `AGPL-3.0.txt' file for the |
42 | 53 | full license text. |
43 | 54 | |
| 55 | +== Links == |
| 56 | + |
| 57 | +* Extension page: http://www.mediawiki.org/wiki/Extension:Genderize |
| 58 | +* Author page: http://www.mediawiki.org/wiki/User:Van_de_Bugger |
| 59 | +* License page: http://www.gnu.org/licenses/agpl.html |
| 60 | + |
44 | 61 | <!-- end of file --> |