Skip to content

Commit 25c90e8

Browse files
committed
Merge branch 'release/2.1.3'
2 parents e46f20a + 495a405 commit 25c90e8

27 files changed

+314
-28
lines changed

CHANGELOG.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v2.1.3, 2018-02-23
4+
5+
- Added czech translations. (mat-hew1)
6+
- Removed G+ counter from documentation and demo. (richard67)
7+
- Fixed handling of `data-mail-subject`. (richard67)
8+
- Fixed crashes occuring if HTML document is missing a valid `<title>` tag. (richard67)
9+
- Fixed typo in documentation. (cedricziel)
10+
- Improved distinguishability of reddit icon. (richard67)
11+
- Improved translations and translation documentation. (richard67)
12+
313
## v2.1.2, 2018-01-26
414

515
- Fixed SEO friendliness by adding `rel="nofollow"` to all button links. (richard67)
@@ -64,7 +74,7 @@ This release contains breaking changes:
6474

6575
## 1.25.2 2017-06-13
6676

67-
* Restored the jQuery dependency for the min.js version. (liayn)
77+
* Restored the jQuery dependency for the `min.js` version. (liayn)
6878
* Added Kirby third party integration. (AndiLeni)
6979
* Added support for DOM-ready functions. (glaszig)
7080
* Updated dependencies. (liayn)
@@ -121,7 +131,7 @@ This release contains breaking changes:
121131
* Added Threema service. (medienverbinder)
122132
* Added StumbleUpon service. (craiq)
123133
* Added Reddit service. (craiq)
124-
* Changed rel=popup to data-rel.
134+
* Changed `rel=popup` to `data-rel`.
125135

126136
## v1.20.0 2015-10-22
127137

@@ -151,7 +161,7 @@ This release contains breaking changes:
151161
## v1.16.0 2015-07-13
152162

153163
* Made license SPDX compatible.
154-
* Updated grunt-connect-proxy dependency. (medienverbinder)
164+
* Updated `grunt-connect-proxy` dependency. (medienverbinder)
155165

156166
## v1.15.0 2015-06-30
157167

@@ -187,11 +197,11 @@ This release contains breaking changes:
187197

188198
## v1.10.0 2015-04-15
189199
* Added xing service. (osahner)
190-
* Fixed mailto links opening in new tabs.
200+
* Fixed `mailto` links opening in new tabs.
191201
* Updated node dependencies.
192202

193203
## v1.9.3 2015-04-08
194-
* Added missing shariff.min.css in release.
204+
* Added missing `shariff.min.css` in release.
195205

196206
## v1.9.2 2015-04-08
197207
* Made sure shariff element does not have any children on initialization.
@@ -212,7 +222,7 @@ This release contains breaking changes:
212222
* Fixed bug in service popups where popups did not open in IE. (doerler)
213223

214224
## v1.7.3 2015-02-14
215-
* Fixed shariff-complete.css to use font-awesome CDN.
225+
* Fixed `shariff-complete.css` to use font-awesome CDN.
216226

217227
## v1.7.1 2015-02-05
218228
* Fixed bug twitter via detection.

README-de.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Der Code der offiziellen Buttons von Facebook, Google+ und Twitter überträgt v
88

99
Shariff `(/ˈʃɛɹɪf/)` ist ein Open-Source Projekt von c't und heise online.
1010

11-
Shariff besteht aus zwei Teilen. Der erste Teil ist eine einfache JavaScript-Bibliothek einschließlich Vektor-Icons und CSS zur Formatierung der Knöpfe. Der zweite ist die optionale, server-seitige Komponente (derzeit für PHP, Perl oder NodeJS). Mit dem Shariff-Backend auf dem eigenen Server muss der Browser des Besuchers zur Darstellung der Share-Counts keine Verbindung zu Facebook oder Google+ aufbauen. Daten werden erst dann zum Social-Media-Netzwerk übertragen, wenn der Besucher den Inhalt tatsächlich teilen möchte.
11+
Shariff besteht aus zwei Teilen. Der erste Teil ist eine einfache JavaScript-Bibliothek einschließlich Vektor-Icons und CSS zur Formatierung der Knöpfe. Der zweite ist die optionale, server-seitige Komponente (derzeit für PHP, Perl oder NodeJS). Mit dem Shariff-Backend auf dem eigenen Server muss der Browser des Besuchers zur Darstellung der Share-Counts keine Verbindung zu den Social-Media-Netzwerken aufbauen. Daten werden erst dann übertragen, wenn der Besucher den Inhalt tatsächlich teilen möchte.
1212

1313
## Erste Schritte
1414

@@ -89,7 +89,7 @@ $ npm run dev
8989
| `data-flattr-user` | Benutzer, der die Flattr-Spende erhält. | `null` |
9090
| `data-info-url` | URL der Infoseite. | `http://ct.de/-2467514` |
9191
| `data-info-display` | Wie die Infoseite angezeigt wird. Werte: `blank`, `popup`, `self`. | `blank` |
92-
| `data-lang` | Lokalisierung auswählen. Verfügbar: `bg`, `de`, `en`, `es`, `fi`, `hr`, `hu`, `ja`, `ko`, `no`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `tr`, `zh` | `de` |
92+
| `data-lang` | Lokalisierung auswählen. Verfügbar: `bg`, `cs`, `da`, `de`, `en`, `es`, `fi`, `fr`, `hr`, `hu`, `it`, `ja`, `ko`, `nl`, `no`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `tr`, `zh` | `de` |
9393
| `data-mail-body` | Wenn `data-mail-url` ein `mailto:`-Link ist, wird dieser Wert als Mail-Body verwendet. Der Mail-Body-Text sollte den Platzhalter `{url}` enthalten. Dieser wird durch die zu teilende URL ersetzt. | siehe `data-url` |
9494
| `data-mail-subject` | Wenn `data-mail-url` ein `mailto:`-Link ist, wird dieser Wert als Mail-Betreff verwendet. | siehe `data-title` |
9595
| `data-mail-url` | Der Link des `mail`-Buttons | `?view=mail` |
@@ -157,10 +157,8 @@ Die URL dieser Seite kann mit einer Option festgelegt werden. Standardwert: `htt
157157

158158
## Backends
159159

160-
Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird eines der folgenden Backends benötigt:
160+
Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird das folgende Backend benötigt:
161161

162-
* [shariff-backend-node](http://github.com/heiseonline/shariff-backend-node)
163-
* [shariff-backend-perl](http://github.com/heiseonline/shariff-backend-perl)
164162
* [shariff-backend-php](http://github.com/heiseonline/shariff-backend-php)
165163

166164
Drittanbieter-Backends:

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Facebook, Google+ and Twitter supply official sharing code snippets which quietl
99

1010
Shariff `(/ˈʃɛɹɪf/)` is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.
1111

12-
Shariff consists of two parts: a simple JavaScript client library and an optional server-side component. The latter fetches the number of likes and plus-ones. Share buttons and share counts work without a connection between your visitors' browsers and *social networks* (unless they decide to share, of course).
12+
Shariff consists of two parts: a simple JavaScript client library and an optional server-side component. The latter fetches the number of likes or shares. Share buttons and share counts work without a connection between your visitors' browsers and *social networks* (unless they decide to share, of course).
1313

1414
## Getting Started
1515

@@ -85,12 +85,12 @@ $ npm run dev
8585

8686
| Attribute | Description | Default |
8787
|------------------|-------------|---------|
88-
| `data-backend-url` | The path to your Shariff backend, see below. Settings the value to `null` disables the backend feature. No counts will occur. | `null` |
88+
| `data-backend-url` | The path to your Shariff backend, see below. Setting the value to `null` disables the backend feature. No counts will occur. | `null` |
8989
| `data-flattr-category` | Category to be used for Flattr. | `null` |
9090
| `data-flattr-user` | User that receives Flattr donation. | `null` |
9191
| `data-info-url` | URL of the info page. | `http://ct.de/-2467514` |
9292
| `data-info-display` | How to display the info page. Values: `blank`, `popup`, `self`. | `blank` |
93-
| `data-lang` | The localisation to use. Available: `bg`, `de`, `en`, `es`, `fi`, `hr`, `hu`, `ja`, `ko`, `no`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `tr`, `zh` | `de` |
93+
| `data-lang` | The localisation to use. Available: `bg`, `cs`, `da`, `de`, `en`, `es`, `fi`, `fr`, `hr`, `hu`, `it`, `ja`, `ko`, `nl`, `no`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `tr`, `zh` | `de` |
9494
| `data-mail-body` | If a `mailto:` link is used in `data-mail-url`, then this value is used as the mail body. The body text should contain the placeholder `{url}` which will be replaced with the share URL. | see `data-url` |
9595
| `data-mail-subject` | If a `mailto:` link is used in `data-mail-url`, then this value is used as the mail subject. | see `data-title` |
9696
| `data-mail-url` | The url target used for the `mail` service button | `?view=mail` |
@@ -159,13 +159,12 @@ The URL of this page can be set with an option. Default value: `http://ct.de/-24
159159

160160
## Backends
161161

162-
In order to display share counts with Shariff, you need one of the following backends:
162+
In order to display share counts with Shariff, you need the following backend:
163163

164-
* [shariff-backend-node](http://github.com/heiseonline/shariff-backend-node)
165-
* [shariff-backend-perl](http://github.com/heiseonline/shariff-backend-perl)
166164
* [shariff-backend-php](http://github.com/heiseonline/shariff-backend-php)
167165

168166
Third-party backends:
167+
169168
* [shariff-backend-java](http://github.com/headissue/shariff-backend-java)
170169

171170
Once you have one of these backends up and running, insert its URL into the `data-backend-url` attribute. For example, if the backend runs under `http://example.com/my-shariff-backend/`, the `data-backend-url` should be `/my-shariff-backend/`. The script will handle the rest.

demo/backend.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"facebook":0,"googleplus":3387,"linkedin":92,"reddit":12,"stumbleupon":4325,"xing":185}
1+
{"facebook":906,"linkedin":92,"reddit":12,"stumbleupon":4325,"vk":57,"xing":185}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shariff",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Shariff enables website users to share their favorite content without compromising their privacy.",
55
"main": "src/js/shariff.js",
66
"scripts": {

src/js/services/addthis.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
66
popup: true,
77
shareText: {
88
'bg': 'cподеляне',
9+
'cs': 'sdílet',
910
'da': 'del',
1011
'de': 'teilen',
1112
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
3435
faName: 'fa-plus',
3536
title: {
3637
'bg': 'Сподели в AddThis',
38+
'cs': 'Sdílet na AddThis',
3739
'da': 'Del på AddThis',
3840
'de': 'Bei AddThis teilen',
3941
'en': 'Share on AddThis',

src/js/services/diaspora.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,59 @@ module.exports = function(shariff) {
1212
return {
1313
popup: true,
1414
shareText: {
15+
'bg': 'cподеляне',
16+
'cs': 'sdílet',
17+
'da': 'del',
1518
'de': 'teilen',
1619
'en': 'share',
20+
'es': 'compartir',
21+
'fi': 'Jaa',
22+
'fr': 'partager',
23+
'hr': 'podijelite',
24+
'hu': 'megosztás',
25+
'it': 'condividi',
26+
'ja': '共有',
27+
'ko': '공유하기',
28+
'nl': 'delen',
29+
'no': 'del',
30+
'pl': 'udostępnij',
31+
'pt': 'compartilhar',
32+
'ro': 'partajează',
33+
'ru': 'поделиться',
34+
'sk': 'zdieľať',
35+
'sl': 'deli',
36+
'sr': 'podeli',
37+
'sv': 'dela',
38+
'tr': 'paylaş',
1739
'zh': '分享'
1840
},
1941
name: 'diaspora',
2042
faName: 'fa-asterisk',
2143
title: {
44+
'bg': 'Сподели в Diaspora',
45+
'cs': 'Sdílet na Diaspora',
46+
'da': 'Del på Diaspora',
2247
'de': 'Bei Diaspora teilen',
2348
'en': 'Share on Diaspora',
49+
'es': 'Compartir en Diaspora',
50+
'fi': 'Jaa Diasporaissä',
51+
'fr': 'Partager sur Diaspora',
52+
'hr': 'Podijelite na Diaspora',
53+
'hu': 'Megosztás Diaspora',
54+
'it': 'Condividi su Diaspora',
55+
'ja': 'Diaspora上で共有',
56+
'ko': 'Diaspora에서 공유하기',
57+
'nl': 'Delen op Diaspora',
58+
'no': 'Del på Diaspora',
59+
'pl': 'Udostępnij przez Diaspora',
60+
'pt': 'Compartilhar no Diaspora',
61+
'ro': 'Partajează pe Diaspora',
62+
'ru': 'Поделиться на Diaspora',
63+
'sk': 'Zdieľať na Diaspora',
64+
'sl': 'Deli na Diaspora',
65+
'sr': 'Podeli na Diaspora-u',
66+
'sv': 'Dela på Diaspora',
67+
'tr': 'Diaspora\'ta paylaş',
2468
'zh': '分享至Diaspora'
2569
},
2670
shareUrl: url.format(shareUrl) + shariff.getReferrerTrack()

src/js/services/facebook.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
66
popup: true,
77
shareText: {
88
'bg': 'cподеляне',
9+
'cs': 'sdílet',
910
'da': 'del',
1011
'de': 'teilen',
1112
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
3435
faName: 'fa-facebook',
3536
title: {
3637
'bg': 'Сподели във Facebook',
38+
'cs': 'Sdílet na Facebooku',
3739
'da': 'Del på Facebook',
3840
'de': 'Bei Facebook teilen',
3941
'en': 'Share on Facebook',

src/js/services/googleplus.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
66
popup: true,
77
shareText: {
88
'bg': 'cподеляне',
9+
'cs': 'sdílet',
910
'da': 'del',
1011
'de': 'teilen',
1112
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
3435
faName: 'fa-google-plus',
3536
title: {
3637
'bg': 'Сподели в Google+',
38+
'cs': 'Sdílet na Google+',
3739
'da': 'Del på Google+',
3840
'de': 'Bei Google+ teilen',
3941
'en': 'Share on Google+',

src/js/services/info.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
99
faName: 'fa-info',
1010
title: {
1111
'bg': 'Повече информация',
12+
'cs': 'Více informací',
1213
'da': 'Flere oplysninger',
1314
'de': 'Weitere Informationen',
1415
'en': 'More information',

0 commit comments

Comments
 (0)