Skip to content

Commit 4f1d018

Browse files
authored
Release version 1.5.0 (#64)
* Update RELEASE-NOTES.md * Update README.md * Update 02-ask-queries.md * Update composer.json * Update SemanticInterlanguageLinks.php
1 parent ccc5d74 commit 4f1d018

File tree

5 files changed

+72
-29
lines changed

5 files changed

+72
-29
lines changed

README.md

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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

5989
Further 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)

RELEASE-NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
This file contains the RELEASE-NOTES of the Semantic Interlanguage Links (a.k.a. SIL) extension.
22

3+
### 1.5.0
4+
5+
Released on October 8, 2018.
6+
7+
* Minimum requirement for
8+
* PHP changed to version 5.6 and later
9+
* Semantic MediaWiki changed to version 2.5 and later
10+
* Fixed issue with `DIProperty::findPropertyLabel`
11+
* #59 Removed the useage of deprecated `wfBCP47()` global function
12+
* Localization updates from https://translatewiki.net
13+
314
### 1.4.0
415

516
Released on July 29, 2017.

SemanticInterlanguageLinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function load() {
6464
*/
6565
public static function initExtension() {
6666

67-
define( 'SIL_VERSION', '1.5.0-alpha' );
67+
define( 'SIL_VERSION', '1.5.0' );
6868

6969
// Register extension info
7070
$GLOBALS[ 'wgExtensionCredits' ][ 'semantic' ][ ] = [

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"mediawiki",
1010
"localization"
1111
],
12-
"homepage": "https://semantic-mediawiki.org/wiki/Extension:SemanticInterlanguageLinks",
12+
"homepage": "https://semantic-mediawiki.org/wiki/Extension:Semantic_Interlanguage_Links",
1313
"license": "GPL-2.0-or-later",
1414
"authors": [
1515
{
16-
"name": "mwjames",
16+
"name": "James Hong Kong",
1717
"role": "Developer"
1818
}
1919
],

docs/02-ask-queries.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@
33
List all subjects (articles) that have a reference to the `Shogi` topic.
44

55
```
6-
{{#ask: [[Has interlanguage link.Interlanguage reference::Shogi]]
7-
|?Some property
6+
{{#ask:
7+
[[Has interlanguage link.Interlanguage reference::Shogi]]
8+
|?Some property
89
}}
910
```
1011
List all available languages that are connected to the `Shogi` topic.
1112

1213
```
13-
{{#ask: [[Interlanguage reference::Shogi]]
14-
|?Page content language
14+
{{#ask:
15+
[[Interlanguage reference::Shogi]]
16+
|?Page content language
1517
}}
1618
```
1719

1820
The subject `将棋` is assigned to which language?
1921

2022
```
21-
{{#ask: [[-Has interlanguage link::将棋]]
22-
|?Page content language
23+
{{#ask:
24+
[[-Has interlanguage link::将棋]]
25+
|?Page content language
2326
}}
24-
```
27+
```

0 commit comments

Comments
 (0)