Search code examples
drupalmoduleblogsdrupal-modulesdrupal-8

Using Drupal 8: Changing blog hyperlink sentences


I'm currently using Drupal 8 blog module, however I want to change some of the English that is used.

For example, "View recent blog entries" "USERNAME's blog"

Is it possible to change this?

Or do you know a module I can use to do this?

Many thanks, Jake

SCREENSHOT

SOLVED:Solved


Solution

  • According to my understanding, There will be a blog module.Which was in the list of core modules before drupal-8 but now it has been removed.

    Note: Do following changes in blog.module file (Expected Path in root director of drupal: /modules/blog/blog.module)

    Search this line :

    $internal_link = \Drupal::l(t('View recent blog entries'), $url);
    

    Replace with this line :

    $internal_link = \Drupal::l(t($account->getUsername().'\'s Blog'), $url);
    

    If Unable to see changes then do clear all cache.

    Output Snippet : Demo