Home>Support>Vantage Theme Premium Still missing translation “Leave a comment”

Vantage Theme Premium Still missing translation “Leave a comment”

Hi, 8 months and 14 days ago today, said Greg Priday in the thread “https://siteorigin.com/thread/vantage-theme-premium-missing-translation-leave-a-comment/” – “It’ll be there in the next update :)” After this, there have been three updates and still “”Leave a comment”is missing!

Downloaded vantage.pot rev: 64925 in Vantage 1.5.3 and no sight of “Leave a comment”
In the translations at WordPress, I can not find it.

BTW poedit do not like ID 73 “The Following plugin was activated successfully” in the 1.5.3 vantage.pot Changeset 64925th It is not possible to translate through poedit!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi Musher

    Thanks for posting.

    Can you please, send us a link to a page showing the string that isn’t translating. I think I know what’s happened there but would be best to confirm by inspecting the string on your site.

    I’m not sure why Poedit won’t translate the string you’ve raised. Loco Translate seems ok with it. You can see the string here: https://github.com/siteorigin/vantage/blob/cc7d5104277ce76b01de6e61828f5dd1ebec001d/inc/class-tgm-plugin-activation.php#L388. All seems normal with that translation function.

    Is this the translation you’re referring to?

    #: inc/class-tgm-plugin-activation.php:388
    msgid "The following plugin was activated successfully:"
    msgstr ""
  2. 8 years, 1 month ago Musher

    Is this the translation you’re referring to? Yes!

    Have tested so much this month that my USB and Physical Memory Usage definatley peacked at my host. So no URL this month!
    I have a localhost copy (Xampp) which was updated. Controlled … / wp-content / languages, and saw that there was a “Leave a Comment” which is also translated.

    A very strange thing with this translation is that it does not appear in the place that it did when it was not translated. Where “Leave a Comment” previously appeared now “No Comments” which changed language it display the correct translation for “No Comments”

    Instead now so is “Posted on” missing, which means that this will not be translated, because you have deleted it from Vantage.pot? ( I think I read something about that!)

    About Vantage.pot. That one I have you find here https://u.teknik.io/I9LIQ.pot

    And here how it looks when I open it with Poedit

    https://u.teknik.io/SLsRG.png
    https://u.teknik.io/R6nyW.png
    https://u.teknik.io/WKxwQ.png
    version: https://u.teknik.io/yqfag.png

    /html/body/div[2]/div/div/div[1]/div/article/div/header/div[2]

    As Dirty Harry say – “Go ahead, make my day, WordPress”

  3. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Thanks for the detailed feedback.

    No Comments

    If you have a moment, you can see the No Comments function here, it’s called: get_comments_number_text()

    https://github.com/siteorigin/vantage/blob/develop/inc/template-tags.php#L176

    What this means is that we aren’t passing any arguments through this function anymore. As a result, all of the strings that this function outputs should be automatically translated by WordPress. For example, if I change my WP install to Italian, the No Comments string translates:

    WP set to English:

    en

    WP set to Italian:

    it

    No comments and any strings outputted by that function won’t appear in the vantage.pot file, they’re default WordPress strings that will change according to whatever the Settings > General language is set to.

    Posted on

    Posted on is still in the vantage.pot file. If you do an in page search here: https://themes.svn.wordpress.org/vantage/1.5.3/languages/vantage.pot you’ll find it.

    I can see it in your link too: https://u.teknik.io/I9LIQ.pot

    Other

    Apologies for the core error, I’ll log that now for the team to look into.

    What is the core language of your WordPress install set to?

  4. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Here is a quick Italian translation I did for the Posted on string:

    posted-on

    Have you perhaps checked out Loco Translate? It’s a big help in terms of speed and ease of use: https://wordpress.org/plugins/loco-translate/

  5. 8 years, 1 month ago Musher

    This is from my localhost.

    Here where I think something is wrong:
    Where now id 478 -No Comments on %s– is shown
    there I would like to see id 1766 -Leave a Comment-

    Still no translation for Posted On. It remains untranslated.
    See https://u.teknik.io/RX51u.png
    And how it looks in Loco
    https://u.teknik.io/Z1NJ1.png
    Loco source
    https://u.teknik.io/iIGZN.png

    Native language .po
    https://u.teknik.io/f6uSD.zip

    And the Loco .po which also acts to open in Poedit!
    https://u.teknik.io/Q0f3o.zip

  6. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Here where I think something is wrong:
    Where now id 478 -No Comments on %s– is shown
    there I would like to see id 1766 -Leave a Comment-

    This we can do by changing the entire Posted on function, I’ll cover that in a moment.

  7. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    If you’d like to try a little custom work:

    1. Plugins > Add New, search for, install and activate Code Snippets plugin.
    2. Snippets > Add New, name : Vantage Custom Posted On, insert the following as the function:

    http://pastebin.com/YKr1qbf1

    3. Select the option to only run on site front end, Save changes and activate.

    4. Edit my function, locate lines 24 and 25 where I say, one, two, three:

    one = Text for no comments.
    two = Text for one comment.
    three = Text for more than one comment.

    You can replace those words as required. You can also directly edit the Posted on string on line 30.

    Let me know if you feel like trying this.

  8. 8 years, 1 month ago Musher

    Let me know if you feel like trying this. >> Yes

  9. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Super. I can’t login to assist since it’s local but can offer advice. Let me know how it goes :)

  10. 8 years, 1 month ago Musher

    Thought it was something more that would come from you. as the way you asked! :)
    But according to the information given, the plugin has installed and the snippet is there. Edit it as told – check here https://u.teknik.io/r4eUZ.xml

    Checked the “Only run on-site front-end” >> https://u.teknik.io/10DFH.png
    But unfortunately – Status quo ante bellum >> https://u.teknik.io/AbxrD.png

  11. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Only works for me if I turn off Loco Translate so there might be a conflicting translation file.

    Would you be prepared to wait until your site is online? If so, let me know as soon as it’s live and I’ll login and take a look. At this point, that’ll be the quickest / easiest way we can resolve. You can then also move on with your site dev and we’ll come back to this as soon as the site is live.

  12. 8 years, 1 month ago Musher

    It was not the limit that was reached, instead, a plugin that looped and have created
    several thousand pictures. Noting also that some small strange things occur, then
    I will decide whether there will be a complete new installation or use a backup.
    “Posted on “is solved! I reinstalled .po and cleaned cache.

    But for me it can be seen as the problem is with Vantage. I found that if I
    change the theme to the Twenty Fifteen, then the translation work as it should.
    “Leave a comment” is entirely correct translated in Twenty Fifteen.
    So at the moment I let the problem with “Leave a comment”, be!

    Hope you don’t!

  13. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Thanks for your feedback. I’m glad to hear you were able to make partial progress. Please, could we inspect this problem once you site is live?

  14. 8 years, 1 month ago Musher

    Number and name or email. please!

  15. 8 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Sorry, not quite with you there.

    My suggestion is rather than work the problem remotely, launch your site, at which time you can drop us a message here, it’ll rise straight to the top of my list, I’ll pick it up promptly and we’ll inspect the issue live, hopefully, resolving it quickly. I’m suggesting this course of action because I can’t recreate the final issue locally. Usually, at this stage we’d login and check the issue live.

    If you’re using Vantage Premium or SiteOrigin Premium, you’ll welcome to contact us via email, alternatively, for Vantage Free, we offer forum support. My name is above each reply.

  16. 8 years, 1 month ago Musher

    I meant that you to inspect the site, I make you up for an admin, but I know I must have an email address. Yes, it is a Vantage Premium, you get the number together with other login information via private message.

  17. 8 years, 29 days ago Andrew Misplon
    Hi, I Work Here

    Awesome :) Thanks. Instructions to follow.

  18. 8 years, 29 days ago Andrew Misplon
    Hi, I Work Here

    Hi Musher

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:

    [email protected]

    Just navigate to UsersAdd New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the Send Password field so we receive the details.

    Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.

  19. 8 years, 29 days ago Private Message - WordPress

    This is a private message.

  20. 8 years, 29 days ago Private Message - Musher

    This is a private message.

  21. 8 years, 29 days ago Private Message - Andrew Misplon Hi, I Work Here

    This is a private message.

  22. 8 years, 29 days ago Andrew Misplon
    Hi, I Work Here

    Thanks :)

    Settings Migration – parent to child
    Please, give this plugin a try: https://wordpress.org/plugins/customizer-export-import/.

    Update
    Thanks for all of your patience. Please, can you remind what is outstanding? You mentioned you’re ok with translating Posted on. I turned on the comment count in post meta and that seems to be translating.

  23. 8 years, 26 days ago Musher

    Hope image explains more than a thousand words!

    https://u.teknik.io/u7o2U.png
    https://u.teknik.io/YGgs5.png
    https://u.teknik.io/witGE.png
    https://u.teknik.io/wJcYx.png
    https://u.teknik.io/EqOrM.png

  24. 8 years, 26 days ago Andrew Misplon
    Hi, I Work Here

    Thanks. We’ve changed the comment function, that’s why it no longer says Leave a comment. There are two comment counters because the second counter can sometimes be far away from the first, imagine a post with a lot of content.

    Twenty Sixteen says Leave a Comment because it uses a different function to Vantage.

    Request:
    Please, can you increase the siteorigin user role to Administrator and I’ll try to assist with these requests.

    Question:
    Do you want to translate the second comment count or do you just want to hide it?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More