qTranslate Blog Title in Twitter Post

Forums SNAP – WordPress Plugin Forums qTranslate Blog Title in Twitter Post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #730
    markvanhaze
    Participant

      When posting a blog post using Twitter and having the %TITLE% displayed, it also takes the language tags from qTranslate and posts them:

      Test Post – https://www.test.com/

      This only happens with Twitter, facebook works fine.

      Is there anyway I can remove the language tags from the title?

      Also, since I have multiple languages on my blog, when posting on Facebook, all titles in all languages are posted in one line, no breaks or spaces. Besides using only one title for my blog posts, can I somehow define which Title SNAP should display?

      #731
      markvanhaze
      Participant

        The tags didnt show in the previous post – what it should show is:

        Getting Air in Turkey - Kitesurfing in Gokova - https://www.alwayswindy.com/blog/2012/09/getting-air-in-turkey-kitesurfing-in-gokova/

        #732
        markvanhaze
        Participant

          ok I cant post the codes, here is an example Twitter Post: https://twitter.com/alwayswindy_com

          #4137
          Ginchen
          Participant

            Hi, I had the same problem – it seems that Twitter was forgotten when qTranslate support was added to the plugin. 😉

            For everyone else having this problem:
            Replace your inc-cl/tw.php with the code from here: https://pastebin.com/2HZG3BvL
            I added the line
            if (isset($options['qTLng'])) $lng = $options['qTLng']; else $lng = '';
            and changed all the lines that now contain
            nxs_doQTrans(...

            It’s working fine for me now!
            Maybe the author will adopt these changes in the next version. 😉

            Greetings
            Ginchen

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘qTranslate Blog Title in Twitter Post’ is closed to new replies.