@@ -22,46 +22,75 @@ This [video](https://vimeo.com/115871518) demonstrates the functionality of the
2222
2323## Requirements
2424
25- - PHP 5.5 or later
25+ - PHP 5.6 or later
2626- MediaWiki 1.27 or later
27- - [ Semantic MediaWiki] [ smw ] 2.4 or later
27+ - [ Semantic MediaWiki] [ smw ] 2.5 or later
2828
2929## Installation
3030
31- The recommended way to install Semantic Interlanguage Links is by using [ Composer] [ composer ]
32- with an entry in MediaWiki's ` composer.json ` or alternatively [ ` composer.local.json ` ] [ composer-local ] .
31+ The recommended way to install Semantic Interlanguage Links is using [ Composer] ( http://getcomposer.org ) with
32+ [ MediaWiki's built-in support for Composer ] ( https://www.mediawiki.org/wiki/Composer ) .
3333
34- ``` json
34+ Note that the required extension Semantic MediaWiki must be installed first according to the installation
35+ instructions provided.
36+
37+ ### Step 1
38+
39+ Change to the base directory of your MediaWiki installation. This is where the "LocalSettings.php"
40+ file is located. If you have not yet installed Composer do it now by running the following command
41+ in your shell:
42+
43+ wget https://getcomposer.org/composer.phar
44+
45+ ### Step 2
46+
47+ If you do not have a "composer.local.json" file yet, create one and add the following content to it:
48+
49+ ```
3550{
3651 "require": {
37- "mediawiki/semantic-interlanguage-links" : " ~1.4 "
52+ "mediawiki/semantic-interlanguage-links": "~1.5 "
3853 }
3954}
4055```
41- 1 . From your MediaWiki installation directory, execute
42- ` composer require mediawiki/semantic-interlanguage-links:~1.4 `
43- 2 . Navigate to _ Special: Version_ on your wiki and verify that the package
44- have been successfully installed.
56+
57+ If you already have a "composer.local.json" file add the following line to the end of the "require"
58+ section in your file:
59+
60+ "mediawiki/semantic-interlanguage-links": "~1.5"
61+
62+ Remember to add a comma to the end of the preceding line in this section.
63+
64+ ### Step 3
65+
66+ Run the following command in your shell:
67+
68+ php composer.phar update --no-dev
69+
70+ Note if you have Git installed on your system add the ` --prefer-source ` flag to the above command. Also
71+ note that it may be necessary to run this command twice. If unsure do it twice right away.
72+
73+ ### Verify installation success
74+
75+ As final step, you can verify SCI got installed by looking at the "Special: Version " page on your wiki and
76+ check that it is listed in the semantic extensions section.
4577
4678## Usage
4779
48- The parser function ` {{interlanguagelink: ... }} ` provides an interface
49- to declare multilingual content using semantic annotations.
80+ The parser function ` {{interlanguagelink: ... }} ` provides an interface to declare multilingual content
81+ using semantic annotations.
5082
51- ` {{interlanguagelink: language code | interlanguage reference }} ` , the first
52- argument specifies the language code (e.g ` es ` , ` ja ` ) of the content while
53- the second argument contains an arbitrary reference (` interlanguage reference ` )
54- that describes content of similar nature (content that should be connected to
55- each other) for different languages.
83+ ` {{interlanguagelink: language code | interlanguage reference }} ` , the first argument specifies the language
84+ code (e.g ` es ` , ` ja ` ) of the content while the second argument contains an arbitrary reference (` interlanguage reference ` )
85+ that describes content of similar nature (content that should be connected to each other) for different languages.
5686
5787![ sil] ( https://cloud.githubusercontent.com/assets/1245473/9477943/450195e0-4b75-11e5-9cd4-61e2672eb8fa.png )
5888
5989Further details and usage examples can be found [ here] ( docs/README.md ) .
6090
6191## Contribution and support
6292
63- If you want to contribute work to the project please subscribe to the developers mailing list and
64- have a look at the contribution guideline.
93+ If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guideline.
6594
6695* [ File an issue] ( https://github.com/SemanticMediaWiki/SemanticLanguageLinks/issues )
6796* [ Submit a pull request] ( https://github.com/SemanticMediaWiki/SemanticLanguageLinks/pulls )
0 commit comments