• Resolved glorisol

    (@glorisol)


    I noticed the “Share cart” (configurable text) appeared not to be translatable.
    Fixed that in class-wcssc-frontend.php (in /www/wp-content/plugins/woo-save-and-share-cart/classes folder)

            /*
             * Display Share Cart button
             */
            function render_share_button(){
    
                global $wcssc;
                $share_cart_button = $wcssc->configuration['wcssc_btn_txt']; //esc_html_e( $share_cart_button, 'wcssc' ); echo $wcssc->configuration['wcssc_btn_txt'];
                if( current_action() == $wcssc->configuration['wc_wcssc_button_pos'] ){?>
                    <button class="button button-primary" id="wcssc-share-cart"><?php esc_html_e( $share_cart_button, 'wcssc' ); ?></button><?php
                }
            }

    Please incorporate this in next plugin release

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ankit Gade

    (@wpgurudev)

    Hi,

    I am addressing this issue in newer version of the plugin 2.0.0

    It should be available soon and I will notify you of the update.

    Regards,
    Ankit G.

    Thread Starter glorisol

    (@glorisol)

    Perfect! Thank you.

    Plugin Author Ankit Gade

    (@wpgurudev)

    Hi,

    Please update the plugin to version 2.0.0 and this should be solved over there.

    Regards,
    Ankit

    Thread Starter glorisol

    (@glorisol)

    Unfortunately the “Share Cart” (configurable via settings, but this is the default) text does not translate in plugin version 2.0.5

    The text does show in the WPML string translation screens, but it appears to not being picked up….
    (the “Load Cart” button text (strangely enough not configurable) on the shared cart page does appear to be translatable by WPML.

    I cant find similar code as in my 1st post, so was not able to (temporarily) fix it myself….

    What can be the cause of this……

    Plugin Author Ankit Gade

    (@wpgurudev)

    I think you have to contact WPML regarding this. They have option to load .mo file translation as well, however please refer: https://github.com/ankitrox/share-cart#translation

    String needs to be translated using .mo file in the plugin and then can be loaded by WPML, but WPML can confirm it how this needs to be done in a better way.

    Regards,
    Ankit G.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Localize “Share cart”button text’ is closed to new replies.