• Resolved kiwidesign

    (@kiwidesign)


    Hello there!
    First of all I’m on the free version of the plugin, and it’s great. Simple and perfectly fits my basic needs ??

    I’m looking at the “Custom Shipment Message” in settings…
    I get that editing the custom message is a Pro feature, the problem is: if I were running an english website the default message would be perfectly fine, but my website is in italian, so I MUST change the message :/
    is there any way I can localize it? WPML doesn’t seem to be able to find the correct string.

    (for the record I would gladly buy it and support your work, but I had to buy a LOT of plugins already to setup my ecommerce, and I don’t really need the pro features, so I would stay FREE if possible)

    Thank you so much for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @kiwidesign,

    Apologies for the late response.
    Yes, with the pro version you can edit the custom shipment message. This is the recommended option.

    However, you can also hardcode the message in the plugin. The reference code is in this directory : includes\track\class-wf-tracking-util.php
    line 124

    Thread Starter kiwidesign

    (@kiwidesign)

    Thank you very much @xadapter !

    I know it’s outside the scope of basic support but I hope you can help me ??
    I tried to copy the file in my child theme so that I wouldn’t have problems updating the plugin, but the file I copied doesn’t override the default. As you can see here I used the correct path, but it’s not recognized…
    https://www.manymaltshirt.com/wp-content/uploads/2017/12/Schermata-2017-12-12-alle-10.26.32.png

    Any tip? Thank you very much!

    Hi @kiwidesign,

    Our team is making the translation for you. We will do it and get back to you by today or 1 more day. Hope that is fine?

    Hi @kiwidesign,

    I apologise for my previous response. Unfortunately, we won’t be able to provide the complete translation on this as this is available for our premium customers only.

    However, I can certainly help you.
    Regarding what you have done, copying the class-wf-tracking-util.php in to child theme may not work. You can edit the file inside the plugin
    and hardcode your string in line 124.

    Hope this helps!

    Thread Starter kiwidesign

    (@kiwidesign)

    Hello there!
    I’m well aware that customizable message is a Pro feature… the entire premise of my first message was that I don’t care about a “custom message”, but not being english the default message –that would be perfectly fine if my website was in English– is not suitable…

    it would be great if you could include basic messages in more than one language.

    for hardcoding the message I can do that of course, but it will be a pain for updating the plugin :/

    Thanks for the kind and prompt help.

    Hi @kiwidesign,

    We completely understand your point and thank you for your suggestion.

    We shall see a possibility for this in the future.
    Thanks a lot!

    Thread Starter kiwidesign

    (@kiwidesign)

    Hey there, just a quick note:
    (I’m hardcoding the translation in the plugin)

    line 124 in the class-wf-tracking-util.php file doesn’t actually translate the front-end line, but the one in the settings.

    I changed line 133 of the same file for the second part of the string, but the first half doesn’t translate :/

    I tried to change lines 41,43,50 of the class-wf-tracking-abstract.php but the change still doesn’t reflect in the frontend ??
    https://www.manymaltshirt.com/wp-content/uploads/2017/12/Schermata-2017-12-14-alle-11.50.17.png

    Am I doing something wrong? Thanks!

    Hi @kiwidesign,

    Ideally changing lines 41,43,50 of the class-wf-tracking-abstract.php should translate the first half of the tracking message. We have tested this.

    For your convenience, I have attached a screenshot.
    Can you re-check this please?

    Thread Starter kiwidesign

    (@kiwidesign)

    Hello and thanks for taking the time to check this!

    That was silly: apparently the first half of the message is “printed” once the tracking code is saved and doesn’t reflect changes to the PHP file…
    That’s why I kept seeing it in english! I tried with a new order and the message is just fine ??

    Hoping you guys will include more translations in the future… also a note:
    I dunno about the PRO version, but the way Basic implements the string makes it untranslatable: for a WPML multilanguage website there is no way with the current implementation to translate the message in the various site languages.

    Thank you!

    Hi @kiwidesign,

    Great that it worked for you.
    We will include more translations in the future.

    Thank you for the feedback.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot translate default message’ is closed to new replies.