Timeline for Send error or exception returned from ajax request to enqueuemessage
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 11, 2020 at 20:51 | comment | added | Robbie Jackson |
When the original enqueueMessage is called, it should really be passed a JText literal, like $app->enqueueMessage(JText::_('JLIB_DATABASE_ERROR_DATABASE_CONNECT'), "error"); . The message should then appear translated ok.
|
|
Jan 11, 2020 at 17:21 | comment | added | user3533235 | The error strings when it's displayed, isn't translated : if (data.result.message) { const messages = { error: [data.result.message], }; Joomla.renderMessages(messages, '#mycomponent-message-container'); } | |
Jan 11, 2020 at 17:16 | vote | accept | user3533235 | ||
Jan 10, 2020 at 10:36 | comment | added | user3533235 | Thanks it's something like that, except that i want to render the error/exception message into custom place but it seems that Joomla.renderMessages() accepts to put it into our own selector | |
Jan 2, 2020 at 12:31 | history | answered | Robbie Jackson | CC BY-SA 4.0 |