Wilkins has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/370632 )
Change subject: Patch for the previous commit in review
..
Patch for the previous commit in review
Handling Kghbln comments
- https urls
- removing shim
- compatibiliy with MediaWiki 1.23+
- some cleanup
- merging INSTALL into README
Change-Id: I12e27d9f1ce001934382cae0c34659d32ec1
---
D INSTALL
M README.md
D SemanticGenealogy.i18n.php
M SemanticGenealogy.php
4 files changed, 108 insertions(+), 93 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticGenealogy
refs/changes/32/370632/1
diff --git a/INSTALL b/INSTALL
deleted file mode 100644
index 459c84a..000
--- a/INSTALL
+++ /dev/null
@@ -1,20 +0,0 @@
-
-== Requirements ==
-
-Semantic Genealogy requires:
-* MediaWiki 1.19 or above
-* Semantic MediaWiki 1.17 or above
-* PHP 5.3 or above
-
-
-== Installation ==
-
-Installation instructions are available online in a more convenient form for
-reading at https://www.mediawiki.org/wiki/Extension:SemanticGenalogy
-
-Copy all files into MediaWiki's extensions folder, either by using Git or by
-extracting an installation package. You need to enter one line to your local
-settings (somewhere after the inclusion of Semantic MediaWiki):
-
-// Semantic Genealogy
-require_once( "$IP/extensions/SemanticGenealogy/SemanticGenealogy.php" );
diff --git a/README.md b/README.md
index 619f185..8c61cb1 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,95 @@
Semantic Genealogy
==
-THIS EXTENSION IS CURRENTLY IN DEVELOPMENT AND IS NOT DONE TO BE USED IN A
PRODUCTION ENVIRONMENT. BREAKING CHANGES CAN BE INTRODUCED !
+Features
+
-### Features
-* Special page to generate a FamilyTree
+* Special page to generate a FamilyTree : `Special:FamilyTree`
* Include FamilyTree inside pages with a wiki code
* Several Trees: Ancestors Tree, Descendants Tree, Relation Link Tree,
Descendants list
* Several Styles: Simple, Boxes
* GEDCOM file format export
-### Authors
-* Thomas Pellissier Tanon (Maintainer)
+Requirements
+
+
+Semantic Genealogy requires:
+* MediaWiki 1.23 or above
+* Semantic MediaWiki 1.7 or above
+* PHP 5.4 or above
-### Links
+Installation
+
+
+ Installation from source
+
+Installation instructions are available online in a more convenient form for
+reading at https://www.mediawiki.org/wiki/Extension:Semantic_Genealogy
+
+Copy all files into MediaWiki's extensions folder, either by using Git or by
+extracting an installation package. You need to enter one line to your local
+settings (somewhere after the inclusion of Semantic MediaWiki):
+
+
+ Installation from composer
+
+Not yet.
+
+
+Configuration
+-
+
+```php
+// Semantic Genealogy
+require_once "$IP/extensions/SemanticGenealogy/SemanticGenealogy.php";
+
+// Insert the $wgGenealogicalProperties array to specify which Semantic
properties match which concept.
+// The properties can differ if you used personnal nouns that fit your
language.
+
+// Here is an example of a french configuration
+$wgGenealogicalProperties = array(
+'givenname' => 'Prenom',
+'surname' => 'Nom',
+'nickname' => 'Surnom',
+'sex' => 'Sexe',
+'birthdate' => 'Datenaissance',
+'birthplace' => 'Lieunaissance',
+'deathdate' => 'Datedeces',
+'deathplace' => 'Lieudeces',
+'father' => 'Pere',
+'mother' => 'Mere',
+'partner' => 'Conjoint'
+);
+
+// Here is an example of an english configuration
+$wgGenealogicalProperties = array(
+'givenname' => 'Firstname',
+'surname' => 'Lastname',
+'nickname' => 'Nickname',
+'sex' => 'Sex',
+'birthdate' => 'date of birth',
+'birthplace' => 'place of birth',
+'deathdate' => 'date of death',
+'deathplace' => 'place of death',
+'father' => 'Father',
+'mother' => 'Mother',
+'partner' => 'Conjoint'
+);
+
+```
+
+
+Authors
+---
+
+* Thomas Pellissier Tanon (Author, Maintainer)
+* Thibault Taillandier (Developer)
+
+
+Links
+-
+
* Official extension page :
https://www.mediawiki.org/wiki/Extension:Semantic_Genealogy
diff --git a/SemanticGenealogy.i18n.php b/SemanticGenealogy.i18n.php
deleted file mode 100644
index d127f33..000
--- a/SemanticGenealogy.i18n.php
+++ /dev/null
@@ -1,44 +0,0 @@
-https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
- *
- * Beginning with MediaWiki 1.23, translation strings are stored in json files,
- * and the EXTENSION.i18n.php file only exists to provide compatibility with
- * older releases of MediaWiki. For more information about this migration, see:
- * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
- *
- * This shim maintains compatibility back to MediaWiki 1.17.
- */
-$messages = [];
-if ( !function_exists( 'wfJsonI18nShimc57238e8287ad032' ) ) {
- /**
-* I have no idea what t