TRANSLATE CART BUTTON WOOCOMERS

webcompanysale
73 Posts
webcompanysale posted this 01 May 2017

HI
I WANT THAT BUTTON IN FRANCE LANGUAGE

HI I WANT THAT BUTTON IN FRANCE LANGUAGE
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
DouzanStudio
138 Posts
DouzanStudio posted this 01 May 2017

It's simple, check the documentation of that:
https://docs.woocommerce.com/document/woocommerce-localization

It's simple, check the documentation of that: https://docs.woocommerce.com/document/woocommerce-localization
webcompanysale
73 Posts
webcompanysale posted this 02 May 2017

I TRANSLLTE ALL FIELD AND DONT SEE THAT WORDS

I TRANSLLTE ALL FIELD AND DONT SEE THAT WORDS
DouzanStudio
138 Posts
DouzanStudio posted this 02 May 2017

How did you translate it? Loco Translate?

How did you translate it? Loco Translate?
webcompanysale
73 Posts
webcompanysale posted this 10 May 2017

HI
I INSTALLED LOCO TRANSLATE AND NOT FIND THE TRANSLATIONS LIKE IN IMAGE.
I NEED THE SITE IN FRANCE LANGUAGE
THANKS

HI I INSTALLED LOCO TRANSLATE AND NOT FIND THE TRANSLATIONS LIKE IN IMAGE. I NEED THE SITE IN FRANCE LANGUAGE THANKS
anneke
105 Posts
anneke posted this 10 May 2017

Add this to your Settings -> CMS code field:

add_filter(  'gettext',  'wps_translate_words_array'  );
add_filter(  'ngettext',  'wps_translate_words_array'  );
function wps_translate_words_array( $translated ) {
     $words = array(
                        // 'word to translate' = > 'translation'
                        'Proceed to Checkout →' => 'your text ', 


                    );
     $translated = str_ireplace(  array_keys($words),  $words,  $translated );
     return $translated;
}

**Add this to your Settings -> CMS code field:** add_filter( 'gettext', 'wps_translate_words_array' ); add_filter( 'ngettext', 'wps_translate_words_array' ); function wps_translate_words_array( $translated ) { $words = array( // 'word to translate' = > 'translation' 'Proceed to Checkout →' => 'your text ', ); $translated = str_ireplace( array_keys($words), $words, $translated ); return $translated; }
webcompanysale
73 Posts
webcompanysale posted this 10 May 2017

this is for all ta translations in this page?

this is for all ta translations in this page?
webcompanysale
73 Posts
webcompanysale posted this 10 May 2017

its not working

its not working
You must log in or register to leave comments