• RamirezNat

    (@ramireznat)


    Hi I’m using your Gift Card plugin and I’m very happy with it! I also translated the important strings into german, but there is one problem I cannot figure out: The Email for the customer, which contains the gift card number, the word “Gift_card_number” is not being translated and I can’t find where to translate it. Could you please help me?

    https://www.ads-software.com/plugins/yith-woocommerce-gift-cards/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Sorry at the moment “Gift_card_number” is not localizable.

    Please consider sending your german localization file if you want to be added to the plugin being downloaded.

    Best regards

    Hello,
    In what file (and line of coding) can we find the: “Gift_card_number” which is not localizable yet ? I will get it translated manually.
    Thanks

    Same Problem.
    In what file (and line of coding) can we find the: “Gift_card_number”?

    Plugin Author YITHEMES

    (@yithemes)

    Hi all,
    please open the file \lib\class.yith-woocommerce-gift-cards.php
    and replace the

    public function modify_attribute_label ( $attribute_label, $meta_key, $product = false ) {
    ...
    }

    with

    public function modify_attribute_label ( $attribute_label, $meta_key, $product = false ) {
    
                if ( $meta_key == 'gift_card_number' ) {
                    $attribute_label = __ ( 'Gift card code', 'yith-woocommerce-gift-cards' );
                }
    
                return $attribute_label;
            }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gift_Card_Number is not being translated!’ is closed to new replies.