• Resolved patrickschultz

    (@patrickschultz)


    Dear all,

    I′m not able to translate some items it with Loco Translate into german.
    Please advise me how to translate your addon.

    Best regards,

    Patrick

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author pimwick

    (@pimwick)

    I responded to you via email, but in case others want to see here is what I sent.

    We are reworking parts of the plugin to make translating these fields easier, however in the meantime you can perform the following steps:

    1. Move the existing Gift Card product to the Trash (it will need to be recreated using the translated values).
    2. Download the wp-config.php from your FTP server.
    3. Keep a backup of wp-config.php in case there are problems.
    4. Edit wp-config.php and scroll to the end and add the following bit of code:

    Scroll towards the bottom, and before the line that says “Happy blogging.” add this code ABOVE that line (translate as needed):

    define( ‘PWGC_DENOMINATION_ATTRIBUTE_NAME’, ‘Gift Card Amount’ );
    define( ‘PWGC_OTHER_AMOUNT_PROMPT’, ‘Other amount’ );
    define( ‘PWGC_GIFT_CARD_NUMBER_META_DISPLAY_NAME’, ‘Gift Card’ );
    define( ‘PWGC_TO_META_DISPLAY_NAME’, ‘To’ );
    define( ‘PWGC_FROM_META_DISPLAY_NAME’, ‘From’ );
    define( ‘PWGC_MESSAGE_META_DISPLAY_NAME’, ‘Message’ );

    /* That’s all, stop editing! Happy blogging. */

    5. Save the wp-config.php file and re-upload it to your server.
    6. Click on WooCommerce -> PW Gift Cards -> Create the Gift Card Product.

    If you have any problems, replace wp-config.php with your backup file.

    Let me know if you have any questions!

    Hi, I have the same problem as patrickschulz with the translation. I followed your instructions to the letter, but no matter where in wp-config.php I insert this code (directly above the happy blogging line or anywhere else), it breaks my site (white screen back and front end) every time. I copy it exactly as you wrote it here and only replace the English words in between the ”, but it never works. Any advice?

    Edit: Never mind, I figured it out. The ‘ symbol was wrong when copy/pasted. I replaced them all and now it works. Thanks for this workaround!

    • This reply was modified 6 years, 11 months ago by evmapa.
    Plugin Author pimwick

    (@pimwick)

    Ah, yes it looks like we should have enclosed the code in a tag for the forums. Here is the updated instructions, hopefully the quotation marks will remain intact.

    1. Move the existing Gift Card product to the Trash (it will need to be recreated using the translated values).
    2. Download the wp-config.php from your FTP server.
    3. Keep a backup of wp-config.php in case there are problems.
    4. Edit wp-config.php and scroll to the end and add the following bit of code:

    Scroll towards the bottom, and before the line that says “Happy blogging.” add this code ABOVE that line (translate as needed):

    define( 'PWGC_DENOMINATION_ATTRIBUTE_NAME', 'Gift Card Amount' );
    define( 'PWGC_OTHER_AMOUNT_PROMPT', 'Other amount' );
    define( 'PWGC_GIFT_CARD_NUMBER_META_DISPLAY_NAME', 'Gift Card' );
    define( 'PWGC_TO_META_DISPLAY_NAME', 'To' );
    define( 'PWGC_FROM_META_DISPLAY_NAME', 'From' );
    define( 'PWGC_MESSAGE_META_DISPLAY_NAME', 'Message' );
    
    /* That's all, stop editing! Happy blogging. */

    5. Save the wp-config.php file and re-upload it to your server.
    6. Click on WooCommerce -> PW Gift Cards -> Create the Gift Card Product.

    If you have any problems, replace wp-config.php with your backup file.

    Let me know if you have any questions!

    Thread Starter patrickschultz

    (@patrickschultz)

    Hi there,

    theres still one Button that I`m not able to translate.
    At the end before hitting the buy now button, theres a Apply Gift Card Button which I′m not able to translate.

    		<form id="pwgc-redeem-gift-card-form">
        <label for="pwgc-redeem-gift-card-number">Hast du eine Geschenkgutschein?</label>
        <div id="pwgc-redeem-error" style="color: red;"></div>
        <input type="text" id="pwgc-redeem-gift-card-number" name="card_number" autocomplete="off" placeholder="Geschenkgutschein Code">
        <input type="submit" id="pwgc-redeem-button" data-wait-text="Bitte warten..." style="display: block; margin-bottom: 24px; margin-top: 4px;" value="Apply Gift Card">
    </form>
    Plugin Author pimwick

    (@pimwick)

    Hi Patrick, this is an issue with the Pro version and we will be releasing an update today. Closing this thread since www.ads-software.com prefers that we don’t handle Pro plugin support here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Loco Translate’ is closed to new replies.