• Resolved ahforayeji

    (@ahforayeji)


    I need to translate some sentence and words from English to German which is coming from this plugin. I have tried with LOCO translate but it is not working. Can you assist me how to translate the language please.
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @ahforayeji,

    Kindly follow the instructions in this article to learn how to find the strings in our plugin and provide equivalent translation for translating texts.

    Regards,

    Thread Starter ahforayeji

    (@ahforayeji)

    I have tried with the loco and with the code too. Nothing was helpful.

    add_filter( 'gettext', 'wpc_translations', 99, 2 );
    function wpc_translations( $translation, $text ) {
    	if ( $text === 'Qty:' ) {
    		return 'Cant:';
    	}
    
    	if ( $text === 'Please select a purchasable variation for Etuikleid mit Allover-Muster before adding this grouped product to the cart.' ) {
    		return 'Bitte w?hlen Sie eine kaufbare Variante für Etuikleid mit Allover-Muster aus, bevor Sie diese Produktgruppe in den Warenkorb legen.';
    	}
    
    	return $translation;
    }
    Plugin Author WPClever

    (@wpclever)

    Hi @ahforayeji

    In LocoTranslate, please remember to press the Sync button before translating. You should search a part of the sentence or a word only https://www.screencast.com/t/fxwg38L4Q

    If you use the snippet, please use the original text is:

    Please select a purchasable variation for [name] before adding this grouped product to the cart.

    Keep the [name] in the translation text, it will be replaced by the product name automatically.

    Thread Starter ahforayeji

    (@ahforayeji)

    Thanks, after deliver the answer I also thought the name is coming dynamically so I am doing wrong.
    Now it is clear by your message. Thanks

    Thread Starter ahforayeji

    (@ahforayeji)

    In lock translation plugin I am finding English sentence, placing new language. But in frontend it is not changing. Fortunately only 2 sentence is changed with code. Unfortunately no more word or sentences are changing though it is from the plugin.

    Plugin Author WPClever

    (@wpclever)

    Could you please explain more about this issue with some screenshots? I don’t clear about the last question. Sorry about that!

    Thread Starter ahforayeji

    (@ahforayeji)

    Thanks for your responds. I have make a file describing the problem with images please have a look
    https://drive.google.com/drive/folders/1ITMudy0XogWvI8gc9MwgkadBmdEO40NK?usp=sharing

    Plugin Author WPClever

    (@wpclever)

    #1. About “Add to cart” text, please check this option https://www.screencast.com/t/gp1PKJ2pf

    #2. About the “Size” text, please check this variable product. Maybe it’s a custom attribute https://www.screencast.com/t/ZqMJQNU6

    Thread Starter ahforayeji

    (@ahforayeji)

    Thanks it is solve

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to translate the plugin Language’ is closed to new replies.