diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13a71af2..5662cb81 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog
+## v2.1.3, 2018-02-23
+
+- Added czech translations. (mat-hew1)
+- Removed G+ counter from documentation and demo. (richard67)
+- Fixed handling of `data-mail-subject`. (richard67)
+- Fixed crashes occuring if HTML document is missing a valid `
` tag. (richard67)
+- Fixed typo in documentation. (cedricziel)
+- Improved distinguishability of reddit icon. (richard67)
+- Improved translations and translation documentation. (richard67)
+
## v2.1.2, 2018-01-26
- Fixed SEO friendliness by adding `rel="nofollow"` to all button links. (richard67)
@@ -64,7 +74,7 @@ This release contains breaking changes:
## 1.25.2 2017-06-13
-* Restored the jQuery dependency for the min.js version. (liayn)
+* Restored the jQuery dependency for the `min.js` version. (liayn)
* Added Kirby third party integration. (AndiLeni)
* Added support for DOM-ready functions. (glaszig)
* Updated dependencies. (liayn)
@@ -121,7 +131,7 @@ This release contains breaking changes:
* Added Threema service. (medienverbinder)
* Added StumbleUpon service. (craiq)
* Added Reddit service. (craiq)
-* Changed rel=popup to data-rel.
+* Changed `rel=popup` to `data-rel`.
## v1.20.0 2015-10-22
@@ -151,7 +161,7 @@ This release contains breaking changes:
## v1.16.0 2015-07-13
* Made license SPDX compatible.
-* Updated grunt-connect-proxy dependency. (medienverbinder)
+* Updated `grunt-connect-proxy` dependency. (medienverbinder)
## v1.15.0 2015-06-30
@@ -187,11 +197,11 @@ This release contains breaking changes:
## v1.10.0 2015-04-15
* Added xing service. (osahner)
-* Fixed mailto links opening in new tabs.
+* Fixed `mailto` links opening in new tabs.
* Updated node dependencies.
## v1.9.3 2015-04-08
-* Added missing shariff.min.css in release.
+* Added missing `shariff.min.css` in release.
## v1.9.2 2015-04-08
* Made sure shariff element does not have any children on initialization.
@@ -212,7 +222,7 @@ This release contains breaking changes:
* Fixed bug in service popups where popups did not open in IE. (doerler)
## v1.7.3 2015-02-14
-* Fixed shariff-complete.css to use font-awesome CDN.
+* Fixed `shariff-complete.css` to use font-awesome CDN.
## v1.7.1 2015-02-05
* Fixed bug twitter via detection.
diff --git a/README-de.md b/README-de.md
index 88ef31f2..ed986263 100644
--- a/README-de.md
+++ b/README-de.md
@@ -8,7 +8,7 @@ Der Code der offiziellen Buttons von Facebook, Google+ und Twitter überträgt v
Shariff `(/ˈʃɛɹɪf/)` ist ein Open-Source Projekt von c't und heise online.
-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.
+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.
## Erste Schritte
@@ -89,7 +89,7 @@ $ npm run dev
| `data-flattr-user` | Benutzer, der die Flattr-Spende erhält. | `null` |
| `data-info-url` | URL der Infoseite. | `http://ct.de/-2467514` |
| `data-info-display` | Wie die Infoseite angezeigt wird. Werte: `blank`, `popup`, `self`. | `blank` |
-| `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` |
+| `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` |
| `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` |
| `data-mail-subject` | Wenn `data-mail-url` ein `mailto:`-Link ist, wird dieser Wert als Mail-Betreff verwendet. | siehe `data-title` |
| `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
## Backends
-Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird eines der folgenden Backends benötigt:
+Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird das folgende Backend benötigt:
-* [shariff-backend-node](http://github.com/heiseonline/shariff-backend-node)
-* [shariff-backend-perl](http://github.com/heiseonline/shariff-backend-perl)
* [shariff-backend-php](http://github.com/heiseonline/shariff-backend-php)
Drittanbieter-Backends:
diff --git a/README.md b/README.md
index 5b5beaf0..7f9d50bd 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ Facebook, Google+ and Twitter supply official sharing code snippets which quietl
Shariff `(/ˈʃɛɹɪf/)` is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.
-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).
+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).
## Getting Started
@@ -85,12 +85,12 @@ $ npm run dev
| Attribute | Description | Default |
|------------------|-------------|---------|
-| `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` |
+| `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` |
| `data-flattr-category` | Category to be used for Flattr. | `null` |
| `data-flattr-user` | User that receives Flattr donation. | `null` |
| `data-info-url` | URL of the info page. | `http://ct.de/-2467514` |
| `data-info-display` | How to display the info page. Values: `blank`, `popup`, `self`. | `blank` |
-| `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` |
+| `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` |
| `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` |
| `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` |
| `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
## Backends
-In order to display share counts with Shariff, you need one of the following backends:
+In order to display share counts with Shariff, you need the following backend:
-* [shariff-backend-node](http://github.com/heiseonline/shariff-backend-node)
-* [shariff-backend-perl](http://github.com/heiseonline/shariff-backend-perl)
* [shariff-backend-php](http://github.com/heiseonline/shariff-backend-php)
Third-party backends:
+
* [shariff-backend-java](http://github.com/headissue/shariff-backend-java)
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.
diff --git a/demo/backend.json b/demo/backend.json
index 0d72aa18..93923c39 100644
--- a/demo/backend.json
+++ b/demo/backend.json
@@ -1 +1 @@
-{"facebook":0,"googleplus":3387,"linkedin":92,"reddit":12,"stumbleupon":4325,"xing":185}
+{"facebook":906,"linkedin":92,"reddit":12,"stumbleupon":4325,"vk":57,"xing":185}
diff --git a/package.json b/package.json
index 0f5ed0f6..aae31dd3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "shariff",
- "version": "2.1.2",
+ "version": "2.1.3",
"description": "Shariff enables website users to share their favorite content without compromising their privacy.",
"main": "src/js/shariff.js",
"scripts": {
diff --git a/src/js/services/addthis.js b/src/js/services/addthis.js
index e974be2a..ed3a149f 100644
--- a/src/js/services/addthis.js
+++ b/src/js/services/addthis.js
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
faName: 'fa-plus',
title: {
'bg': 'Сподели в AddThis',
+ 'cs': 'Sdílet na AddThis',
'da': 'Del på AddThis',
'de': 'Bei AddThis teilen',
'en': 'Share on AddThis',
diff --git a/src/js/services/diaspora.js b/src/js/services/diaspora.js
index 52bf254e..46f1dcdc 100644
--- a/src/js/services/diaspora.js
+++ b/src/js/services/diaspora.js
@@ -12,15 +12,59 @@ module.exports = function(shariff) {
return {
popup: true,
shareText: {
+ 'bg': 'cподеляне',
+ 'cs': 'sdílet',
+ 'da': 'del',
'de': 'teilen',
'en': 'share',
+ 'es': 'compartir',
+ 'fi': 'Jaa',
+ 'fr': 'partager',
+ 'hr': 'podijelite',
+ 'hu': 'megosztás',
+ 'it': 'condividi',
+ 'ja': '共有',
+ 'ko': '공유하기',
+ 'nl': 'delen',
+ 'no': 'del',
+ 'pl': 'udostępnij',
+ 'pt': 'compartilhar',
+ 'ro': 'partajează',
+ 'ru': 'поделиться',
+ 'sk': 'zdieľať',
+ 'sl': 'deli',
+ 'sr': 'podeli',
+ 'sv': 'dela',
+ 'tr': 'paylaş',
'zh': '分享'
},
name: 'diaspora',
faName: 'fa-asterisk',
title: {
+ 'bg': 'Сподели в Diaspora',
+ 'cs': 'Sdílet na Diaspora',
+ 'da': 'Del på Diaspora',
'de': 'Bei Diaspora teilen',
'en': 'Share on Diaspora',
+ 'es': 'Compartir en Diaspora',
+ 'fi': 'Jaa Diasporaissä',
+ 'fr': 'Partager sur Diaspora',
+ 'hr': 'Podijelite na Diaspora',
+ 'hu': 'Megosztás Diaspora',
+ 'it': 'Condividi su Diaspora',
+ 'ja': 'Diaspora上で共有',
+ 'ko': 'Diaspora에서 공유하기',
+ 'nl': 'Delen op Diaspora',
+ 'no': 'Del på Diaspora',
+ 'pl': 'Udostępnij przez Diaspora',
+ 'pt': 'Compartilhar no Diaspora',
+ 'ro': 'Partajează pe Diaspora',
+ 'ru': 'Поделиться на Diaspora',
+ 'sk': 'Zdieľať na Diaspora',
+ 'sl': 'Deli na Diaspora',
+ 'sr': 'Podeli na Diaspora-u',
+ 'sv': 'Dela på Diaspora',
+ 'tr': 'Diaspora\'ta paylaş',
'zh': '分享至Diaspora'
},
shareUrl: url.format(shareUrl) + shariff.getReferrerTrack()
diff --git a/src/js/services/facebook.js b/src/js/services/facebook.js
index c90d2fdb..5809bf61 100644
--- a/src/js/services/facebook.js
+++ b/src/js/services/facebook.js
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
faName: 'fa-facebook',
title: {
'bg': 'Сподели във Facebook',
+ 'cs': 'Sdílet na Facebooku',
'da': 'Del på Facebook',
'de': 'Bei Facebook teilen',
'en': 'Share on Facebook',
diff --git a/src/js/services/googleplus.js b/src/js/services/googleplus.js
index ddbcd34f..1eb876f1 100644
--- a/src/js/services/googleplus.js
+++ b/src/js/services/googleplus.js
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
faName: 'fa-google-plus',
title: {
'bg': 'Сподели в Google+',
+ 'cs': 'Sdílet na Google+',
'da': 'Del på Google+',
'de': 'Bei Google+ teilen',
'en': 'Share on Google+',
diff --git a/src/js/services/info.js b/src/js/services/info.js
index 16e91b79..e2a71515 100644
--- a/src/js/services/info.js
+++ b/src/js/services/info.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
faName: 'fa-info',
title: {
'bg': 'Повече информация',
+ 'cs': 'Více informací',
'da': 'Flere oplysninger',
'de': 'Weitere Informationen',
'en': 'More information',
diff --git a/src/js/services/linkedin.js b/src/js/services/linkedin.js
index b4ddd0da..15496eb6 100644
--- a/src/js/services/linkedin.js
+++ b/src/js/services/linkedin.js
@@ -7,6 +7,9 @@ module.exports = function(shariff) {
return {
popup: true,
shareText: {
+ 'bg': 'cподеляне',
+ 'cs': 'sdílet',
+ 'da': 'del',
'de': 'mitteilen',
'en': 'share',
'es': 'compartir',
@@ -34,6 +37,7 @@ module.exports = function(shariff) {
faName: 'fa-linkedin',
title: {
'bg': 'Сподели в LinkedIn',
+ 'cs': 'Sdílet na LinkedIn',
'da': 'Del på LinkedIn',
'de': 'Bei LinkedIn teilen',
'en': 'Share on LinkedIn',
diff --git a/src/js/services/mail.js b/src/js/services/mail.js
index 211b0d85..7e9a92fa 100644
--- a/src/js/services/mail.js
+++ b/src/js/services/mail.js
@@ -5,7 +5,7 @@ module.exports = function(shariff) {
// mailto: link? Add body and subject.
if (url.indexOf('mailto:') === 0) {
- url += '?subject=' + encodeURIComponent(shariff.getTitle())
+ url += '?subject=' + encodeURIComponent(shariff.getOption('mailSubject') || shariff.getTitle())
url += '&body=' + encodeURIComponent(shariff.getOption('mailBody').replace(/\{url\}/i, shariff.getURL()))
}
@@ -20,6 +20,7 @@ module.exports = function(shariff) {
faName: 'fa-envelope',
title: {
'bg': 'Изпрати по имейл',
+ 'cs': 'Poslat mailem',
'da': 'Sende via e-mail',
'de': 'Per E-Mail versenden',
'en': 'Send by email',
diff --git a/src/js/services/pinterest.js b/src/js/services/pinterest.js
index 75ef82f6..d9b2edb4 100644
--- a/src/js/services/pinterest.js
+++ b/src/js/services/pinterest.js
@@ -25,13 +25,30 @@ module.exports = function(shariff) {
name: 'pinterest',
faName: 'fa-pinterest-p',
title: {
+ 'bg': 'Сподели в Pinterest',
+ 'cs': 'Přidat na Pinterest',
+ 'da': 'Del på Pinterest',
'de': 'Bei Pinterest pinnen',
'en': 'Pin it on Pinterest',
'es': 'Compartir en Pinterest',
+ 'fi': 'Jaa Pinterestissä',
'fr': 'Partager sur Pinterest',
+ 'hr': 'Podijelite na Pinterest',
+ 'hu': 'Megosztás Pinteresten',
'it': 'Condividi su Pinterest',
- 'da': 'Del på Pinterest',
+ 'ja': 'Pinterest上で共有',
+ 'ko': 'Pinterest에서 공유하기',
'nl': 'Delen op Pinterest',
+ 'no': 'Del på Pinterest',
+ 'pl': 'Udostępnij przez Pinterest',
+ 'pt': 'Compartilhar no Pinterest',
+ 'ro': 'Partajează pe Pinterest',
+ 'ru': 'Поделиться на Pinterest',
+ 'sk': 'Zdieľať na Pinterest',
+ 'sl': 'Deli na Pinterest',
+ 'sr': 'Podeli na Pinterest-u',
+ 'sv': 'Dela på Pinterest',
+ 'tr': 'Pinterest\'ta paylaş',
'zh': '分享至Pinterest'
},
shareUrl: url.format(shareUrl) + shariff.getReferrerTrack()
diff --git a/src/js/services/print.js b/src/js/services/print.js
index a8d0e718..eb1b0111 100755
--- a/src/js/services/print.js
+++ b/src/js/services/print.js
@@ -10,6 +10,7 @@ module.exports = function(shariff) {
popup: false,
shareText: {
'bg': '',
+ 'cs': 'tlačit',
'da': '',
'de': 'drucken',
'en': 'print',
@@ -36,6 +37,7 @@ module.exports = function(shariff) {
},
title: {
'bg': '',
+ 'cs': 'tlačit',
'da': '',
'de': 'drucken',
'en': 'print',
diff --git a/src/js/services/qzone.js b/src/js/services/qzone.js
index b6d1e0fb..c287c74f 100644
--- a/src/js/services/qzone.js
+++ b/src/js/services/qzone.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -36,8 +37,30 @@ module.exports = function(shariff) {
name: 'qzone',
faName: 'fa-qq',
title: {
+ 'bg': 'Сподели в Qzone',
+ 'cs': 'Sdílet na Qzone',
+ 'da': 'Del på Qzone',
'de': 'Bei Qzone teilen',
'en': 'Share on Qzone',
+ 'es': 'Compartir en Qzone',
+ 'fi': 'Jaa Qzoneissä',
+ 'fr': 'Partager sur Qzone',
+ 'hr': 'Podijelite na Qzone',
+ 'hu': 'Megosztás Qzone',
+ 'it': 'Condividi su Qzone',
+ 'ja': 'Qzone上で共有',
+ 'ko': 'Qzone에서 공유하기',
+ 'nl': 'Delen op Qzone',
+ 'no': 'Del på Qzone',
+ 'pl': 'Udostępnij przez Qzone',
+ 'pt': 'Compartilhar no Qzone',
+ 'ro': 'Partajează pe Qzone',
+ 'ru': 'Поделиться на Qzone',
+ 'sk': 'Zdieľať na Qzone',
+ 'sl': 'Deli na Qzone',
+ 'sr': 'Podeli na Qzone-u',
+ 'sv': 'Dela på Qzone',
+ 'tr': 'Qzone\'ta paylaş',
'zh': '分享至QQ空间'
},
shareUrl: 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + url + '&title=' + title + shariff.getReferrerTrack()
diff --git a/src/js/services/reddit.js b/src/js/services/reddit.js
index 7562cc1c..56ce1838 100644
--- a/src/js/services/reddit.js
+++ b/src/js/services/reddit.js
@@ -11,15 +11,59 @@ module.exports = function(shariff) {
return {
popup: true,
shareText: {
+ 'bg': 'cподеляне',
+ 'cs': 'sdílet',
+ 'da': 'del',
'de': 'teilen',
'en': 'share',
- 'zh': '分享',
+ 'es': 'compartir',
+ 'fi': 'Jaa',
+ 'fr': 'partager',
+ 'hr': 'podijelite',
+ 'hu': 'megosztás',
+ 'it': 'condividi',
+ 'ja': '共有',
+ 'ko': '공유하기',
+ 'nl': 'delen',
+ 'no': 'del',
+ 'pl': 'udostępnij',
+ 'pt': 'compartilhar',
+ 'ro': 'partajează',
+ 'ru': 'поделиться',
+ 'sk': 'zdieľať',
+ 'sl': 'deli',
+ 'sr': 'podeli',
+ 'sv': 'dela',
+ 'tr': 'paylaş',
+ 'zh': '分享'
},
name: 'reddit',
faName: 'fa-reddit',
title: {
+ 'bg': 'Сподели в Reddit',
+ 'cs': 'Sdílet na Redditu',
+ 'da': 'Del på Reddit',
'de': 'Bei Reddit teilen',
'en': 'Share on Reddit',
+ 'es': 'Compartir en Reddit',
+ 'fi': 'Jaa Redditissä',
+ 'fr': 'Partager sur Reddit',
+ 'hr': 'Podijelite na Reddit',
+ 'hu': 'Megosztás Redditen',
+ 'it': 'Condividi su Reddit',
+ 'ja': 'Reddit上で共有',
+ 'ko': 'Reddit에서 공유하기',
+ 'nl': 'Delen op Reddit',
+ 'no': 'Del på Reddit',
+ 'pl': 'Udostępnij przez Reddit',
+ 'pt': 'Compartilhar no Reddit',
+ 'ro': 'Partajează pe Reddit',
+ 'ru': 'Поделиться на Reddit',
+ 'sk': 'Zdieľať na Reddit',
+ 'sl': 'Deli na Reddit',
+ 'sr': 'Podeli na Reddit-u',
+ 'sv': 'Dela på Reddit',
+ 'tr': 'Reddit\'ta paylaş',
'zh': '分享至Reddit'
},
shareUrl: 'https://reddit.com/submit?url=' + url + title + shariff.getReferrerTrack()
diff --git a/src/js/services/stumbleupon.js b/src/js/services/stumbleupon.js
index a0668e25..8c850149 100644
--- a/src/js/services/stumbleupon.js
+++ b/src/js/services/stumbleupon.js
@@ -11,15 +11,59 @@ module.exports = function(shariff) {
return {
popup: true,
shareText: {
+ 'bg': 'cподеляне',
+ 'cs': 'sdílet',
+ 'da': 'del',
'de': 'teilen',
'en': 'share',
+ 'es': 'compartir',
+ 'fi': 'Jaa',
+ 'fr': 'partager',
+ 'hr': 'podijelite',
+ 'hu': 'megosztás',
+ 'it': 'condividi',
+ 'ja': '共有',
+ 'ko': '공유하기',
+ 'nl': 'delen',
+ 'no': 'del',
+ 'pl': 'udostępnij',
+ 'pt': 'compartilhar',
+ 'ro': 'partajează',
+ 'ru': 'поделиться',
+ 'sk': 'zdieľať',
+ 'sl': 'deli',
+ 'sr': 'podeli',
+ 'sv': 'dela',
+ 'tr': 'paylaş',
'zh': '分享'
},
name: 'stumbleupon',
faName: 'fa-stumbleupon',
title: {
+ 'bg': 'Сподели в Stumbleupon',
+ 'cs': 'Sdílet na Stumbleuponu',
+ 'da': 'Del på Stumbleupon',
'de': 'Bei Stumbleupon teilen',
'en': 'Share on Stumbleupon',
+ 'es': 'Compartir en Stumbleupon',
+ 'fi': 'Jaa Stumbleuponissä',
+ 'fr': 'Partager sur Stumbleupon',
+ 'hr': 'Podijelite na Stumbleupon',
+ 'hu': 'Megosztás Stumbleupon',
+ 'it': 'Condividi su Stumbleupon',
+ 'ja': 'Stumbleupon上で共有',
+ 'ko': 'Stumbleupon에서 공유하기',
+ 'nl': 'Delen op Stumbleupon',
+ 'no': 'Del på Stumbleupon',
+ 'pl': 'Udostępnij przez Stumbleupon',
+ 'pt': 'Compartilhar no Stumbleupon',
+ 'ro': 'Partajează pe Stumbleupon',
+ 'ru': 'Поделиться на Stumbleupon',
+ 'sk': 'Zdieľať na Stumbleupon',
+ 'sl': 'Deli na Stumbleupon',
+ 'sr': 'Podeli na Stumbleupon-u',
+ 'sv': 'Dela på Stumbleupon',
+ 'tr': 'Stumbleupon\'ta paylaş',
'zh': '分享至Stumbleupon'
},
shareUrl: 'https://www.stumbleupon.com/submit?url=' + url + title + shariff.getReferrerTrack()
diff --git a/src/js/services/telegram.js b/src/js/services/telegram.js
index 78532668..c0ea0f99 100644
--- a/src/js/services/telegram.js
+++ b/src/js/services/telegram.js
@@ -7,6 +7,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -35,6 +36,7 @@ module.exports = function(shariff) {
faName: 'fa-telegram',
title: {
'bg': 'Сподели в Telegram',
+ 'cs': 'Sdílet na Telegramu',
'da': 'Del på Telegram',
'de': 'Bei Telegram teilen',
'en': 'Share on Telegram',
diff --git a/src/js/services/tencent-weibo.js b/src/js/services/tencent-weibo.js
index 497da337..ba697480 100644
--- a/src/js/services/tencent-weibo.js
+++ b/src/js/services/tencent-weibo.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -36,8 +37,30 @@ module.exports = function(shariff) {
name: 'tencent-weibo',
faName: 'fa-tencent-weibo',
title: {
+ 'bg': 'Сподели в tencent weibo',
+ 'cs': 'Sdílet na tencent weibo',
+ 'da': 'Del på tencent weibo',
'de': 'Bei tencent weibo teilen',
'en': 'Share on tencent weibo',
+ 'es': 'Compartir en tencent weibo',
+ 'fi': 'Jaa tencent weiboissä',
+ 'fr': 'Partager sur tencent weibo',
+ 'hr': 'Podijelite na tencent weibo',
+ 'hu': 'Megosztás tencent weiboen',
+ 'it': 'Condividi su tencent weibo',
+ 'ja': 'Tencent weibo上で共有',
+ 'ko': 'Tencent weibo에서 공유하기',
+ 'nl': 'Delen op tencent weibo',
+ 'no': 'Del på tencent weibo',
+ 'pl': 'Udostępnij przez tencent weibo',
+ 'pt': 'Compartilhar no tencent weibo',
+ 'ro': 'Partajează pe tencent weibo',
+ 'ru': 'Поделиться на tencent weibo',
+ 'sk': 'Zdieľať na tencent weibo',
+ 'sl': 'Deli na tencent weibo',
+ 'sr': 'Podeli na tencent weibo-u',
+ 'sv': 'Dela på tencent weibo',
+ 'tr': 'Tencent weibo\'ta paylaş',
'zh': '分享至腾讯微博'
},
shareUrl: 'http://v.t.qq.com/share/share.php?url=' + url + '&title=' + title + shariff.getReferrerTrack()
diff --git a/src/js/services/threema.js b/src/js/services/threema.js
index b5a07886..9373a58a 100644
--- a/src/js/services/threema.js
+++ b/src/js/services/threema.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
popup: false,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -37,6 +38,7 @@ module.exports = function(shariff) {
faName: 'fa-lock',
title: {
'bg': 'Сподели в Threema',
+ 'cs': 'Sdílet na Threema',
'da': 'Del på Threema',
'de': 'Bei Threema teilen',
'en': 'Share on Threema',
diff --git a/src/js/services/tumblr.js b/src/js/services/tumblr.js
index 63e65863..c1307986 100644
--- a/src/js/services/tumblr.js
+++ b/src/js/services/tumblr.js
@@ -7,6 +7,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -35,6 +36,7 @@ module.exports = function(shariff) {
faName: 'fa-tumblr',
title: {
'bg': 'Сподели в tumblr',
+ 'cs': 'Sdílet na tumblru',
'da': 'Del på tumblr',
'de': 'Bei tumblr teilen',
'en': 'Share on tumblr',
diff --git a/src/js/services/twitter.js b/src/js/services/twitter.js
index 6dc22353..5ec3f746 100644
--- a/src/js/services/twitter.js
+++ b/src/js/services/twitter.js
@@ -34,12 +34,17 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'en': 'tweet',
- 'zh': '分享'
+ 'ja': 'のつぶやき',
+ 'ko': '짹짹',
+ 'ru': 'твит',
+ 'sr': 'твеет',
+ 'zh': '鸣叫'
},
name: 'twitter',
faName: 'fa-twitter',
title: {
'bg': 'Сподели в Twitter',
+ 'cs': 'Sdílet na Twiiteru',
'da': 'Del på Twitter',
'de': 'Bei Twitter teilen',
'en': 'Share on Twitter',
diff --git a/src/js/services/vk.js b/src/js/services/vk.js
index da14a05d..b16bb07f 100644
--- a/src/js/services/vk.js
+++ b/src/js/services/vk.js
@@ -6,6 +6,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -34,6 +35,7 @@ module.exports = function(shariff) {
faName: 'fa-vk',
title: {
'bg': 'Сподели във VK',
+ 'cs': 'Sdílet na VKu',
'da': 'Del på VK',
'de': 'Bei VK teilen',
'en': 'Share on VK',
diff --git a/src/js/services/weibo.js b/src/js/services/weibo.js
index a5effe26..9ea72526 100644
--- a/src/js/services/weibo.js
+++ b/src/js/services/weibo.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
popup: true,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -36,8 +37,30 @@ module.exports = function(shariff) {
name: 'weibo',
faName: 'fa-weibo',
title: {
+ 'bg': 'Сподели в weibo',
+ 'cs': 'Sdílet na weibo',
+ 'da': 'Del på weibo',
'de': 'Bei weibo teilen',
'en': 'Share on weibo',
+ 'es': 'Compartir en weibo',
+ 'fi': 'Jaa weiboissä',
+ 'fr': 'Partager sur weibo',
+ 'hr': 'Podijelite na weibo',
+ 'hu': 'Megosztás weiboen',
+ 'it': 'Condividi su weibo',
+ 'ja': 'Weibo上で共有',
+ 'ko': 'Weibo에서 공유하기',
+ 'nl': 'Delen op weibo',
+ 'no': 'Del på weibo',
+ 'pl': 'Udostępnij przez weibo',
+ 'pt': 'Compartilhar no weibo',
+ 'ro': 'Partajează pe weibo',
+ 'ru': 'Поделиться на weibo',
+ 'sk': 'Zdieľať na weibo',
+ 'sl': 'Deli na weibo',
+ 'sr': 'Podeli na weibo-u',
+ 'sv': 'Dela på weibo',
+ 'tr': 'Weibo\'ta paylaş',
'zh': '分享至新浪微博'
},
shareUrl: 'http://service.weibo.com/share/share.php?url=' + url + '&title=' + title + shariff.getReferrerTrack()
diff --git a/src/js/services/whatsapp.js b/src/js/services/whatsapp.js
index b5093f84..30128849 100644
--- a/src/js/services/whatsapp.js
+++ b/src/js/services/whatsapp.js
@@ -9,6 +9,7 @@ module.exports = function(shariff) {
popup: false,
shareText: {
'bg': 'cподеляне',
+ 'cs': 'sdílet',
'da': 'del',
'de': 'teilen',
'en': 'share',
@@ -37,6 +38,7 @@ module.exports = function(shariff) {
faName: 'fa-whatsapp',
title: {
'bg': 'Сподели в Whatsapp',
+ 'cs': 'Sdílet na Whatsappu',
'da': 'Del på Whatsapp',
'de': 'Bei Whatsapp teilen',
'en': 'Share on Whatsapp',
diff --git a/src/js/services/xing.js b/src/js/services/xing.js
index 842901dc..a358ec49 100644
--- a/src/js/services/xing.js
+++ b/src/js/services/xing.js
@@ -5,25 +5,59 @@ module.exports = function(shariff) {
return {
popup: true,
shareText: {
+ 'bg': 'cподеляне',
+ 'cs': 'sdílet',
+ 'da': 'del',
'de': 'teilen',
'en': 'share',
'es': 'compartir',
+ 'fi': 'Jaa',
'fr': 'partager',
+ 'hr': 'podijelite',
+ 'hu': 'megosztás',
'it': 'condividi',
- 'da': 'del',
+ 'ja': '共有',
+ 'ko': '공유하기',
'nl': 'delen',
+ 'no': 'del',
+ 'pl': 'udostępnij',
+ 'pt': 'compartilhar',
+ 'ro': 'partajează',
+ 'ru': 'поделиться',
+ 'sk': 'zdieľať',
+ 'sl': 'deli',
+ 'sr': 'podeli',
+ 'sv': 'dela',
+ 'tr': 'paylaş',
'zh': '分享'
},
name: 'xing',
faName: 'fa-xing',
title: {
+ 'bg': 'Сподели в XING',
+ 'cs': 'Sdílet na XINGu',
+ 'da': 'Del på XING',
'de': 'Bei XING teilen',
'en': 'Share on XING',
'es': 'Compartir en XING',
+ 'fi': 'Jaa XINGissä',
'fr': 'Partager sur XING',
+ 'hr': 'Podijelite na XING',
+ 'hu': 'Megosztás XINGen',
'it': 'Condividi su XING',
- 'da': 'Del på XING',
+ 'ja': 'XING上で共有',
+ 'ko': 'XING에서 공유하기',
'nl': 'Delen op XING',
+ 'no': 'Del på XING',
+ 'pl': 'Udostępnij przez XING',
+ 'pt': 'Compartilhar no XING',
+ 'ro': 'Partajează pe XING',
+ 'ru': 'Поделиться на XING',
+ 'sk': 'Zdieľať na XING',
+ 'sl': 'Deli na XING',
+ 'sr': 'Podeli na XING-u',
+ 'sv': 'Dela på XING',
+ 'tr': 'XING\'ta paylaş',
'zh': '分享至XING'
},
shareUrl: 'https://www.xing.com/social_plugins/share?url=' + url + shariff.getReferrerTrack()
diff --git a/src/js/shariff.js b/src/js/shariff.js
index 84d43245..ec8390c2 100644
--- a/src/js/shariff.js
+++ b/src/js/shariff.js
@@ -47,9 +47,7 @@ const Defaults = {
// services to be enabled in the following order
services: ['twitter', 'facebook', 'googleplus', 'info'],
- title: function() {
- return $('head title').text()
- },
+ title: global.document.title,
twitterVia: null,