Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: [MyParcel] Barcode in notes
    Thread Starter joenuzzz

    (@joenuzzz)

    @pahedomotica correct, the notes comes when the label is printed. For me, that is ok. But it was different in previous versions, that’s why I opened this issue.

    The only problem I have now is that every order has a link “Details”, which I have to click to see what package type is used for this order. Last week I had contact with a developer of MyParcel, he told me that they are working on a fix for this. I will be fixed in a future release, the word Details will be replaced with the package type name.

    Thread Starter joenuzzz

    (@joenuzzz)

    Yes, here is a part of the .pot file op my theme

    #, fuzzy
    msgid “”
    msgstr “”
    “Project-Id-Version: De Barbecue Chef\n”
    “Report-Msgid-Bugs-To: \n”
    “POT-Creation-Date: 2019-03-27 14:16+0000\n”
    “PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n”
    “Last-Translator: FULL NAME <EMAIL@ADDRESS>\n”
    “Language-Team: \n”
    “Language: \n”
    “Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n”
    “MIME-Version: 1.0\n”
    “Content-Type: text/plain; charset=UTF-8\n”
    “Content-Transfer-Encoding: 8bit\n”
    “X-Generator: Loco https://localise.biz/\n”
    “X-Loco-Version: 2.2.1; wp-5.1.1”

    #: functions.php:260
    msgid “”
    “There are no shipping options available. Please ensure that your address has ”
    “been entered correctly, or contact us if you need any help.”
    msgstr “”

    Thread Starter joenuzzz

    (@joenuzzz)

    Here is my code, the function is in functions.php of my theme, the second part is a part of the Javascript file where I executed the function.

    https://gist.github.com/joenuzzz/b364afc3fab2587fb5de735fa9f4cc14

    Thread Starter joenuzzz

    (@joenuzzz)

    I tried it with a new translation of WooCommerce, this doesn’t work. Also tried a new translation of the theme, also not working.

    No the site is only Dutch, so yes I can put the string hardcoded in the function. But for other projects (which are multilingual) I need the same function, so I want this to work with the translate functions.

    Thread Starter joenuzzz

    (@joenuzzz)

    The function that I call is a custom function which is in functions.php of my theme. The only thing I did in Loco Translate is creating a new Dutch language file and change the translation. I also tried it with my theme, but I always get the English text instead of the Dutch translation.

    I don’t know what I am doing wrong.

    Thread Starter joenuzzz

    (@joenuzzz)

    Yes, I’m using the Loco Translate plugin and this works perfectly. But when I do an AJAX call and call an function where a Woocommerce string is present, it returns the default English string and not the Dutch translation which I changed in Loco Translate.

    So, in my example, the variable $delivery_message returns ‘There are no shipping options available…any help.’ instead of the Dutch translation ‘Helaas er zijn verzendmethoden beschikbaar’.

    In the function which I call through AJAX I use this, which in my opinion is the right way:

    __( ‘There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.’, ‘woocommerce’ );

Viewing 6 replies - 1 through 6 (of 6 total)