Tagged: x
-
AuthorPosts
-
September 18, 2016 at 7:05 am #1180090
Hello!
Everything updated.
I am trying to update this strings within Essential Grid addon: http://prntscr.com/cje21c They are in the sorting options in the plugin.
I am not able to find anything in the author page or in the .po files… Maybe I am missing anything…
Can you help?
Thanks!
Oliver.
September 18, 2016 at 7:47 am #1180109Hey Oliver,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
September 20, 2016 at 4:27 pm #1183738This reply has been marked as private.September 21, 2016 at 1:40 am #1184234Hello Oliver,
Please add this code on your child theme’s functions.php :
add_filter('gettext', 'translate_text' ); function translate_text($translated) { $translated = str_ireplace('Views', 'Views TRANSLATION', $translated); $translated = str_ireplace('Comments', "Comments TRANSLATION", $translated); $translated = str_ireplace('Likes', 'Likes TRANSLATION', $translated); $translated = str_ireplace('Dislikes', 'Dislikes TRANSLATION', $translated); $translated = str_ireplace('Date', "DATE TRANSLATION", $translated); return $translated; }
Update to the correct translation.
Hope this helps.
September 21, 2016 at 3:05 am #1184302Hello!
White screen….
I have seen you are using “” here: “Comments TRANSLATION” and ” here ‘Likes TRANSLATION’
Probably this is the reason…
Which is the correct?
Thanks!
Oliver.
September 21, 2016 at 4:52 am #1184374Sorry about that. Please replace the code in your functions.php to the one below. You will need to use FTP for that.
function eg_translations( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Date' : $translated_text = __( 'Date Translation', 'essential-grid' ); break; case 'Comments' : $translated_text = __( 'Comments Translation', 'essential-grid' ); break; } return $translated_text; } add_filter( 'gettext', 'eg_translations', 20, 3 );
The Views string is not translatable currently. I’ll forward this to the right channel. Here are the translatable strings for the Sort option in Essential Grid.
Date Title Excerpt ID Slug Author Last Modified Comments Total Sales Regular Price Sale Price Featured SKU In Stock
Thanks.
-
AuthorPosts