Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1047

Joomla! 4.x Coding • Re: expand COM_CONTENT_SAVE_SUCCESS="Article saved."

$
0
0
....

foreach ($messages as $k => $message)
{
// Match and replace the message in question.
if ($message['message'] === $app->getLanguage()->_('COM_CONTENT_SAVE_SUCCESS'))
{
$message['message'] = $app->getLanguage()->_(sprintf('PLG_SYSTEM_EXAMPLE_SAVE_SUCCESS', $timestamp));
}

// Repopulate the message queue.
$app->enqueueMessage($message['message'], $message['type']);
}[/code]...
Hello SharkyKZ,

I want to inform you, that I now have a little Plugin running, that does the job.

I thank You for the code, because it is a central part of my plugin.
The output is now like this:Image

Statistics: Posted by hgh-esn — Sat Nov 09, 2024 9:03 pm



Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>