Hello.
Splah not work for translated roles.
in file splashify.display.inc

if($config['when_roles']){
    // If use role setting is checked set variable not to show.
    $is_role = FALSE;
    // Check if any roles match and then sat show to true.
	dd($user->roles);
	dd($config['when_roles_options']);
    foreach($user->roles as $v) {
      if(in_array($v, $config['when_roles_options'])) {
        $is_role = TRUE;
      }
    }
  }

For dd($user->roles):
Array
(
[2] => authenticated user
)

For dd($config['when_roles_options']) russian localization:
Array
(
[авторизованный пользователь] => авторизованный пользователь
)

Simple path:

if(in_array(t($v), $config['when_roles_options'])) {

Comments

achayko created an issue. See original summary.

ivnish’s picture

Status: Active » Needs work
astonvictor’s picture

Status: Needs work » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.