Hi
where can i translate the word "Cart" next to the shopping basket in header?
Hi where can i translate the word "Cart" next to the shopping basket in header?
Hi
where can i translate the word "Cart" next to the shopping basket in header?
Hi where can i translate the word "Cart" next to the shopping basket in header?Hi,
Could you please try adding the following code to the Themler Settings >> CMS Code:
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'
'Cart (%s)' => 'ADD TRANSLATION HERE (%s)',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}
It should help. Looks like you do not have this key in the translation files.
Thank you,
Olivia
Hello,
I am new in themler. Where to find Themler Sttings>> CMS Code to put it?
Thanks
Hello, I am new in themler. Where to find Themler Sttings>> CMS Code to put it? Thanks > Hi, > > Could you please try adding the following code to the Themler Settings >> CMS Code: > > `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' > 'Cart (%s)' => 'ADD TRANSLATION HERE (%s)', > ); > $translated = str_ireplace( array_keys($words), $words, $translated ); > return $translated; > }` > > It should help. Looks like you do not have this key in the translation files. > > Thank you, > OliviaHi,
Could you please try adding the following code to the Themler Settings >> CMS Code:
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'
'Cart (%s)' => 'ADD TRANSLATION HERE (%s)',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}It should help. Looks like you do not have this key in the translation files.
Thank you,
Olivia
Hi,
I find out where this CMS Code, but it didn't helped to translate "Cart" next to basket
Hi, I find out where this CMS Code, but it didn't helped to translate "Cart" next to basket > Hello, > I am new in themler. Where to find Themler Sttings>> CMS Code to put it? > Thanks > > > Hi, > > > > Could you please try adding the following code to the Themler Settings >> CMS Code: > > > > `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' > > 'Cart (%s)' => 'ADD TRANSLATION HERE (%s)', > > ); > > $translated = str_ireplace( array_keys($words), $words, $translated ); > > return $translated; > > }` > > > > It should help. Looks like you do not have this key in the translation files. > > > > Thank you, > > OliviaHello,
I am new in themler. Where to find Themler Sttings>> CMS Code to put it?
ThanksHi,
Could you please try adding the following code to the Themler Settings >> CMS Code:
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'
'Cart (%s)' => 'ADD TRANSLATION HERE (%s)',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}It should help. Looks like you do not have this key in the translation files.
Thank you,
Olivia
Hi,
You are welcome. Feel free to contact us in any other occasion.
Sincerely,
Hella
Hi,
but still is a problem. Translation apears only then the product is added. If cart is empty, no translation and the text is "Cart"
Could you please help to solve this :)
Thanks
Hi,
The 'Cart (%s)' and 'Cart' are two different translation keys. Please add translations for both.
Thank you,
Olivia