[shotwell] flickr: Add required note from API TOS



commit 3e185549de9474e502879387960c9eff7f63be8c
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 23 15:12:10 2019 +0100

    flickr: Add required note from API TOS
    
    Currently deliberately not translatable. Request to Flickr ongoing
    whether it should be translated and if there is any official wording for
    that.

 plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala 
b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala
index c26f89c3..5188ed61 100644
--- a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala
+++ b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala
@@ -15,6 +15,7 @@ namespace Publishing.Authenticator.Shotwell.Flickr {
 
     internal const string SERVICE_WELCOME_MESSAGE =
         _("You are not currently logged into Flickr.\n\nClick Log in to log into Flickr in your Web browser. 
You will have to authorize Shotwell Connect to link to your Flickr account.");
+    internal const string SERVICE_DISCLAIMER = "<b>This product uses the Flickr API but is not endorsed or 
certified by SmugMug, Inc.</b>";
 
     internal class AuthenticationRequestTransaction : Publishing.RESTSupport.OAuth1.Transaction {
         public AuthenticationRequestTransaction(Publishing.RESTSupport.OAuth1.Session session) {
@@ -109,7 +110,7 @@ namespace Publishing.Authenticator.Shotwell.Flickr {
             debug("ACTION: installing login welcome pane");
 
             host.set_service_locked(false);
-            host.install_welcome_pane(SERVICE_WELCOME_MESSAGE, on_welcome_pane_login_clicked);
+            host.install_welcome_pane("%s\n\n%s".printf(SERVICE_WELCOME_MESSAGE, SERVICE_DISCLAIMER), 
on_welcome_pane_login_clicked);
         }
 
         private void on_welcome_pane_login_clicked() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]