]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
bring to all themes social services and link them to new doc
authorThomas Citharel <tcit@tcit.fr>
Tue, 12 May 2015 14:05:57 +0000 (16:05 +0200)
committerThomas Citharel <tcit@tcit.fr>
Tue, 12 May 2015 14:05:57 +0000 (16:05 +0200)
locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo
locale/en_US.utf8/LC_MESSAGES/en_US.utf8.po
locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo
locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po
themes/baggy/_head.twig
themes/baggy/config.twig
themes/default/_head.twig
themes/default/config.twig

index 657102e06eac8ac85d638d2a263ffd8057718a1d..2fcb356a6c83e9809a64dd952d5a73b5e57c0304 100644 (file)
Binary files a/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo and b/locale/en_US.utf8/LC_MESSAGES/en_US.utf8.mo differ
index 89781304052f7f70519565c6b1d879e7a1a6445b..2fe4b3521f3a5c82396d8e88561b4efd70197c94 100644 (file)
@@ -106,8 +106,11 @@ msgstr "Read the documentation"
 msgid "download the extension"
 msgstr "Download the extension"
 
-msgid "Firefox Add-On"
-msgstr "Firefox Add-On"
+msgid "Standard Firefox Add-On"
+msgstr "Standard Firefox Add-On"
+
+msgid "Mozilla Services (Social API) Extension"
+msgstr "Mozilla Services (Social API) Extension"
 
 msgid "Chrome Extension"
 msgstr "Chrome Extension"
index f393dffec826bc3fec9706ecea905bd1801f80d3..f46ef600d50169f04caa6b10366e122f822044b6 100644 (file)
Binary files a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo and b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo differ
index 393c200b738566b278bff8b812981658e421df87..f4b87163cb78fd02657e46ace0a87f93b692b09f 100644 (file)
@@ -200,8 +200,11 @@ msgstr "lisez la documentation"
 msgid "download the extension"
 msgstr "téléchargez l'extension"
 
-msgid "Firefox Add-On"
-msgstr "Add-On Firefox"
+msgid "Standard Firefox Add-On"
+msgstr "Add-On Firefox classique"
+
+msgid "Mozilla Services (Social API) Extension"
+msgstr "Extension Mozilla Services (Social API)"
 
 msgid "Chrome Extension"
 msgstr "Extension Chrome"
index 1546a7b91d88101ea35bf8a5ff4ca75a9f2f950c..9ca51cd2d21ff50997ac5d31d21fa0758725e167 100755 (executable)
@@ -39,6 +39,7 @@
         <script src="{{ poche_url }}themes/_global/js/popupForm.js"></script>
         <script src="{{ poche_url }}themes/_global/js/keyboard.js"></script>
         <script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script>
+        
         <!-- Enable Firefox Social Services
         script put there because of the call to poche_url -->
 
@@ -56,9 +57,9 @@
 
                 "description": "wallabag Extension for Firefox - The (soon to become) best way to save articles, videos and more",
                 "author": "Thomas Citharel",
-                "homepageURL": "https://wallabag.org",
+                "homepageURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
                 "origin": "https://wallabag.org",
-                "postActivationURL": "https://wallabag.org",
+                "postActivationURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
 
                 "version": "0.1"
         };
index 8562f1337b6699de60dcae0c4e920ff5f1a851e9..2e40178e996db19b6ae75a4fcd2f3a16c519d054 100755 (executable)
@@ -17,7 +17,7 @@
             <h3>{% trans "Browser Addons" %}</h3>
             <ul>
                 <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
-                <li><button onclick="activateSocialFeature(this)">Mozilla Services Social API Extension</button>
+                <li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>
                 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
             </ul>
             <h3>{% trans "Mobile Apps" %}</h3>
index ce1bbdcc5854dd7131197d0bc37123d0b9e28df8..e3841c779c8b404730c4d2a702f0a7b17752fc94 100755 (executable)
         <script src="{{ poche_url }}themes/_global/js/saveLink.js"></script>
         <script src="{{ poche_url }}themes/_global/js/keyboard.js"></script>
         <script src="{{ poche_url }}themes/_global/js/popupForm.js"></script>
+
+        <!-- Enable Firefox Social Services
+        script put there because of the call to poche_url -->
+
+        <script>
+        var baseurl = "{{ poche_url }}";
+        console.log(baseurl);
+        var data = {
+
+                "name": "wallabag",
+                "iconURL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-16.png",
+                "icon32URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-32.png",
+                "icon64URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-64.png",
+
+                "shareURL": baseurl + "/index.php?action=add&plainurl=%{url}",
+
+                "description": "wallabag Extension for Firefox - The (soon to become) best way to save articles, videos and more",
+                "author": "Thomas Citharel",
+                "homepageURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
+                "origin": "https://wallabag.org",
+                "postActivationURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
+
+                "version": "0.1"
+        };
+        function activateSocialFeature(node) {
+                var event = new CustomEvent("ActivateSocialFeature");
+                node.setAttribute("data-service", JSON.stringify(data));
+                node.dispatchEvent(event);
+        }
+        </script>
\ No newline at end of file
index 09e40e75b6064c845abc222c63501b94bdbfee3d..e39826c31d0cd7c184fdd25f234b310e667a5515 100755 (executable)
@@ -16,7 +16,8 @@
             </p>
             <h3>Browser Plugins</h3>
             <ul>
-                <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Firefox Add-On" %}</a></li>
+                <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
+                <li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>
                 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
             </ul>
             <h3>Mobile Apps</h3>