Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1180090

    Oliver V
    Participant

    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.

    #1180109

    Christian
    Moderator

    Hey 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1183738

    Oliver V
    Participant
    This reply has been marked as private.
    #1184234

    Lely
    Moderator

    Hello 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.

    #1184302

    Oliver V
    Participant

    Hello!

    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.

    #1184374

    Christian
    Moderator

    Sorry 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.