Looks like a normal behavior for any plugin, BUT the strings need to be loaded when the Action Logs - Latest module is displayed in backend (usually in CPanel)
Only solution I found was to add in joomla.ini the strings concerned:
; Common content type log messages
PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED="User <a href=\"{accountlink}\">{username}</a> added new {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_ARCHIVED="User <a href=\"{accountlink}\">{username}</a> archived the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_DELETED="User <a href=\"{accountlink}\">{username}</a> deleted the {type} {title}"
PLG_SYSTEM_ACTIONLOGS_CONTENT_PUBLISHED="User <a href=\"{accountlink}\">{username}</a> published the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_TRASHED="User <a href=\"{accountlink}\">{username}</a> trashed the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UNPUBLISHED="User <a href=\"{accountlink}\">{username}</a> unpublished the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED="User <a href=\"{accountlink}\">{username}</a> updated the {type} <a href=\"{itemlink}\">{title}</a>"
Any better idea?
Labels |
Added:
?
|
We indeed need another way, this is why I did not make a PR but an issue.
I found a solution.
ActionlogsHelper::loadActionLogPluginsLanguage();
is loading ONLY the language files of the actionlogs plugins (enabled or disabled) which are in the actionlog
folder.
It totally ignores the actionlogs system plugin.
We have
It forces loading com_privacy
language file though.
Shall not we also force plg_system_actionlogs.ini
lang file?
If I add
// Load plg_system_actionlogs too
$lang->load('plg_system_actionlogs', JPATH_ADMINISTRATOR);
issue solved.
@wilsonge @HLeithner
What do you think?
Since we have already this method it looks straight forward to add the system plugin to it.
tks, will do
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-21 07:56:11 |
Closed_By | ⇒ | infograf768 |
Wont your proposal mean that the same has to be done for all the actionlog plugins? And even if that is done it would not solve the issue for any 3pd actionlog plugins