• Resolved Dimono

    (@dimono)


    Hi there,

    Can this plugin be used on a multilingual site ( WPML ). With multilingual invoices?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    yes, but the professional extension is required for this.
    It works with Polylang too (which is better than WPML in my opinion)

    Hi Ewout,

    We do have the free version of this plugin installed and was able to locate and translate the text from “Shop Address” and “Footer: terms & conditions, policies, etc.” in WPML/String Translation.

    Even if these strings are translated in WPML, the text is not translated on the invoice it self.

    Is the free version blocking translations?

    Thank you for your help!
    Mathieu

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Mathieu,
    The free version is not blocking translations, but in the 2.0 version of the plugin these settings are stored as ‘array’ form to facilitate compatibilty with with multilingual plugins (not just WPML). Being an array it can now contain all the translations. During the upgrade the old settings were migrated to new settings but to make it possible for people to downgrade if the upgrade was not successful, we did not delete the old settings. So it’s possible you have translated the old (now obsolete) settings (for example, old setting = wpo_wcpdf_template_settings, new = wpo_wcpdf_settings_general).

    It was definitely not our intention to block translations, but I’m not sure if String Translation supports serialized data/arrays. Perhaps WPML can help with this, but ultimately the bottom line is that we do not offer active support for WPML in the free version. The Pro version contains quite a bit of code to make sure the PDF is always generated in the correct language (admin, email attachment, my account) and also to make translating the settings field easier:
    WPML translations

    I hope that perhaps WPML support can help you translate the settings from the new format!

    Kind regards,
    Ewout

    Hi Ewout,

    I was able to generate the new strings of the new Domain “wpo_wcpdf_settings_general” using a wpml-config.xml and then to translate them in WPML/String Translation.

    But I’m not able to delete the string of the old Domain “wpo_wcpdf_template_settings” in WPML/String Translation as I usually do for any other strings I deleted in the past. It’s the first time I try deleting strings and they still show up after.

    Even If the string are translated for the new domain, the translation are still not showing up on the invoice. Maybe because the strings of the old domain remain because I cannot delete them. Something is blocking them to be deleted.

    What can be done to fix this issue?

    Thank you for your help!
    Mathieu

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Mathieu,
    I don’t know what could be blocking this… the wpo_wcpdf_template_settings option is still in the database, so that may be why WPML still picks it up (since it doesn’t know it’s deprecated)? If something is blocking it to be deleted it must be WPML, because the free version does not interfere with WPML in any way. I recommend to contact WPML support about this.
    Also, note that the wpml-config will need to be configured different from before because the data is a serialized array, not a flat string. Unfortunately this is outside of free support.

    Ewout

    Update,

    Here is a message from WPML:
    “It turned out that it’s a compatibility issue between the plugin and WPML. Also, the plugin uses deprecated WPML functions. I already escalated the issue to our Compatibility Team and they are searching for a workaround.
    I’ll get back to you as soon as I get any feedback from them.”

    Please provide a way to completely delete the old domain “wpo_wcpdf_template_settings” from the database.

    We only want the new domain “wpo_wcpdf_settings_general”.

    Note that your plugin uses deprecated WPML functions.

    Thank you for your help!

    Mathieu

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Mathieu,
    Thank you for the message, I will contact WPML to ask them about the deprecated WPML functions that are used, because the free version uses no WPML functions at all!

    I will include a button to remove old settings from the database in the next update.

    Ewout

    Plugin Contributor Ewout

    (@pomegranate)

    Is there a forum thread for this issue or can I reference a specific contact person from WPML that you talked to? Thanks!

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks!

    Ewout,

    Approx. when will the new udate be available? (include a button to remove old settings from the database)

    Thank you!

    Plugin Contributor Ewout

    (@pomegranate)

    Next week. You can also do this yourself by adding the following lines to your theme’s functions.php, open a page on your site and then remove the lines from functions.php again:

    
    // delete options
    delete_option( 'wpo_wcpdf_general_settings' );
    delete_option( 'wpo_wcpdf_template_settings' );
    delete_option( 'wpo_wcpdf_debug_settings' );
    // and delete cache of these options, just in case...
    wp_cache_delete( 'wpo_wcpdf_general_settings','options' );
    wp_cache_delete( 'wpo_wcpdf_template_settings','options' );
    wp_cache_delete( 'wpo_wcpdf_debug_settings','options' );
    

    Hi Ewout,

    Thank you for the code snippet!

    I was able to delete the old options of “wpo_wcpdf_template_settings”.

    I created a new order and invoice but it is still not translated.

    It keeps the default English language (en_US) of the string even if it is translated to French Canadian (fr_CA) in WPML/String Translation.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! That’s primarily a WPML issue, I don’t think it was related to the wpo_wcpdf_template_settings option in the first place.

    I have had contact with one of the WPML developers and he couldn’t find any deprecated functions in the free plugin (the only WPML function there is icl_get_languages but it is not used in the free version), so perhaps there’s something else on your site that is using a deprecated function?

    Either way, the rest is up to WPML support, I hope they can help you, as this is beyond the scope of support for the free plugin. Of course if any deprecated functions need to be replaced I’d be happy to do that.

    Ewout

    Hi Ewout,

    If we purchase the PRO version of this plugin, will this allow our “Shop Address” and “Footer” text to be translated properly?

    Thank you for your help!
    Lisa

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Multilingual site ( wpml )’ is closed to new replies.