Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 4.03 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 3 years, 4 months ago.

Assisted by: Mihai Apetrei.

Author Posts
December 11, 2020 at 10:55 am #7643721

Vasileios Chouliaras

Hi i made this snippet to add an extra button at minicart.

I go to string translation but i cant find the Text to translate.
What i do wrong?

add_action( 'woocommerce_widget_shopping_cart_before_buttons', 'my_custom_action', 15 );

function my_custom_action() {

echo '<a class="continue-shopping" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php esc_html_e( 'Continue at Shopping Page', 'wpml' ) ?></a>';

}

December 12, 2020 at 12:37 pm #7650207

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Instead of using a simple "echo", please take a look at the documentation link found here:

- https://wpml.org/documentation/support/translating-the-theme-you-created/
- https://codex.wordpress.org/I18n_for_WordPress_Developers#Strings_for_Translation

After you edit the code, go to WPML > Theme and plugins localization > and rescan the theme/plugin.

Now you should find them in WPML > String Translation when you search for them.

That would be all that you need to do.

Kind regards,
Mihai Apetrei

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.