Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2272941
QTY label on components not being translated...
Closed

Comments

  •  3
    Fernando Daniel Stal started the conversation

    Hi ... is that label hardcoded or something?  Where can I set it to say "Cant." as in spanish

  •  767
    Janilyn replied

    Hi, 

    Thank you for contacting WPClever Support Forum. I have transferred your ticket to our dev. He will be responding soon to give you instructions on this. Please stay in touch. 

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Fernando,

    If you're using LocoTranslate to translate our plugin, please press the "Sync" button https://prnt.sc/qox114 before translating to ensure that all texts available.

    Best regards,
    Dustin

  •  3
    Fernando Daniel Stal replied

    Hi! I'm not using any  Translate plugin.... most of the plugins I use are available in spanish or labels are customizable...

  •  1,226
    Dustin replied

    Hi Fernando,

    Sorry, the Spanish translation of our plugin was contributed by our customer and maybe it's not complete.

    Please tell me all the words you want to translate then I'll help you do that by changing the code.

    Best regards,
    Dustin

  •  3
    Fernando Daniel Stal replied

    Hi

    Off the bat, the one I can see is "QTY" which should be "CANT" (I'm talking front end)

  •  1,226
    Dustin replied

    Please add below function to current theme (or child-theme) / functions.php:

    add_filter( 'gettext', 'wooco_gettext', 99, 3 );
    function wooco_gettext( $translation, $text, $domain ) {
       if ( $domain === 'wpc-composite-products' && $text === 'Qty:' ) {
          return 'Cant:';
       }
       if ( $domain === 'wpc-composite-products' && $text === 'Original text' ) {
          return 'Your text';
       }
       return $translation;
    }

    You can translate more words by adding more below block in above code:

       if ( $domain === 'wpc-composite-products' && $text === 'Original text' ) {
          return 'Your text';
       }

    Best regards,
    Dustin