Closed (cannot reproduce)
Project:
Site Status Message
Version:
7.x-1.3
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
25 Aug 2020 at 08:38 UTC
Updated:
30 Sep 2021 at 14:12 UTC
Jump to comment: Most recent
Comments
Comment #2
drupalgideonHello.
Do you require a different message on your site for different languages? It's currently written so you would just add whatever message (in whatever language) you like into the message field and that would be a message in a different language.
However, I believe you can use the Variable translation module included with the Internationalization module to translate the message as there is a hook_variable_info() provided with this module. There appears to be more information here https://www.drupal.org/node/1113374.
The template file to output the message can be overridden by adding a site-status-message.tpl.php file to your theme folder and if you need to do any pre-processing to the variables before outputting you can add a hook_preprocess_site_status_message(&$variables) function to a module/template.php file if you further need to run processing on the $variables['message'].
Unfortunately I don't have a multilingual site set up to test any of this myself but the message is just saved as a variable and not an entity so it should be relatively straight forward.
Comment #3
drupalgideon