• Resolved Xandro

    (@sudarshankotian)


    Hi, your translation plugin for manually editing multiple languages is really great feature for many.

    But I made a mistake by first using this plugin.

    I mean to say that, some of the plugin backend level translations can’t be done with this right? like woo email templates or any other email related plugins?

    So, without removing your plugin settings, I want to add loco translate for theme and plugins translation like this then will the frontend will be translated with this plugin, so if users are selected Hindi language, then will they get emails in Hindi?

    Can I do this with deleting the loco plugin? after I have translated all the plugins strings?

    So, that I can have translated version of the plugin, but frontend translation will be done using your plugin.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dragos

    (@dragosvrejiu)

    Hello there,

    Thank you for getting in touch with us!

    TranslatePress can be used together with LocoTranslate.

    In case your translations are not appearing, please enable the following addon: https://translatepress.com/docs/developers/disable-translation-of-gettext-strings/

    Best wishes,

    Thread Starter Xandro

    (@sudarshankotian)

    Is it ok, if i just put these codes >

    add_action( 'trp_before_running_hooks', 'trpc_remove_hooks_to_disable_gettext_translation', 10, 1);
    function trpc_remove_hooks_to_disable_gettext_translation( $trp_loader ){
    	$trp                = TRP_Translate_Press::get_trp_instance();
    	$translation_manager = $trp->get_component( 'translation_manager' );
    	$trp_loader->remove_hook( 'init', 'create_gettext_translated_global', $translation_manager );
    	$trp_loader->remove_hook( 'shutdown', 'machine_translate_gettext', $translation_manager );
    }
    
    add_filter( 'trp_skip_gettext_querying', 'trpc_skip_gettext_querying', 10, 4 );
    function trpc_skip_gettext_querying( $skip, $translation, $text, $domain ){
    	return true;
    }
    
    add_action( 'trp_head', 'trpc_add_message_in_editor_gettext_is_disabled', 20 );
    function trpc_add_message_in_editor_gettext_is_disabled(){
    	$css = "<style>#trp-preview.trp-still-loading-strings:before{
            content:'Translation of gettext strings is disabled.'!important;
    	}</style>";
    	echo $css;
    }

    to functions.php instead of adding the plugin?

    • This reply was modified 2 years, 1 month ago by Xandro.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loco translation compatibility?’ is closed to new replies.