I'm trying to inject some custom action log entries using a custom library function and everything looks good, for example this is a record written to the actionlogs table:
id: 23412
message_language_key: LIB_CONLUCRA_CHAT_ACTIONLOG_FOLDER_UPDATED
message: {"accountlink":"<a href=\"index.php?option=com_users&task=user.edit&id=500\">Super User<\/a>","type":"LIB_CONLUCRA_CHAT_ACTIONLOG_TYPE_FOLDER","id":"4337","title":"Duplicate personas folder","itemlink":"<a href=\"index.php?option=com_conlucra_chat&task=folder.edit&id=4337\">Duplicate personas folder<\/a>","action":"folder.update","app":"admin"}
log_date: 2025-12-02 15:52:10
extension: lib_conlucra_chat
user_id: 500
item_id: 4337
ip_address: COM_ACTIONLOGS_DISABLED
The translation strings are not being picked up when I look at the Home Dashboard because the language files are not being picked up so they're defaulting to the strings (see screenshot if it uploaded, I don't think this works).
The module does not appear to consider the extension property (might use extension_name property added in message JSON?) Secondly, the language files is loaded after the message is translated so the translation is still missing.
Things I checked:
The library is in libraries/lib_conlucra_chat/src and the file with the function is libraries/lib_conlucra_chat/src/ActionLogger.php.
I checked that the constants are in the language file, e.g.
lib_conlucra_chat.ini:
LIB_CONLUCRA_CHAT_ACTIONLOG_FOLDER_UPDATED="User {accountlink} updated {type} {itemlink}"
I tried putting the language files in:
administrator/language/en-GB/en-GB.lib_conlucra_chat.ini
administrator/language/en-GB/en-GB.lib_conlucra_chat.sys.ini
then
administrator/language/en-GB/lib_conlucra_chat.ini
administrator/language/en-GB/lib_conlucra_chat.sys.ini
then
language/en-GB/en-GB.lib_conlucra_chat.ini
language/en-GB/en-GB.lib_conlucra_chat.sys.ini
and finally
language/en-GB/lib_conlucra_chat.ini
language/en-GB/lib_conlucra_chat.sys.ini
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-12-06 11:02:11 |
| Closed_By | ⇒ | joomdonation |
@dmb0058 PR #46540 should address this issue. Could you please help testing and report the result back? Thanks !