Home Forums WoodMart support forum Translate the word ‘%s Products’ in the footer section

Translate the word ‘%s Products’ in the footer section

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #650144

    kruajeng
    Participant

    I need to translate the word ‘%s Products’ in the footer section to Thai as ‘%s รายการ’.
    I’ve already tried doing it with PHP, but it didn’t work, and I also tried using Loco Translate.

    function translate_product_count_woodmart( $translated_text, $text, $domain ) {
    if ( ‘%s product’ === $text || ‘%s products’ === $text ) {
    return ‘%s รายการ’;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘translate_product_count_woodmart’, 20, 3 );

    #650334

    Hung Pham
    Keymaster

    Hi kruajeng,

    Thanks for reaching to us and appreciate your patience.

    + In order to change / translate words. Please make sure you synced the strings first before changing / translating WooCommerce, WordPress Cores file, WoodMart Core plugins and WoodMart theme. You can refer to article

    https://xtemos.com/docs-topic/theme-translation/
    https://xtemos.com/docs-topic/how-to-make-woodmart-multilingual-with-wpml/

    + You are also need to select the language for the backend and theme settings for admin from the admin user profile, please edit the user’s profile and then select the language for that user it will show the same on the backend.

    + Some strings related to Wishlist / Compare / Login & Register page, you can change in Theme Settings > Shop or Theme Settings > My account https://prnt.sc/W8Tt95stG3YC

    Regards,

    #650885

    kruajeng
    Participant

    Thank
    Close Topic

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)