Labels |
Added:
?
|
Title |
|
That explains why my tests on changing the element didnt work ;)
It is only translatable though if we give translators strings to translate which if I read the js code correctly we are not
If you want to do the change the hardcoded part is here:
joomla-cms/layouts/joomla/system/message.php
Lines 17 to 27 in 8d048ad
But if, lets say, type info
is πληροφορία
in greek, then we need to make sure the custom element is checking also against that string. If you patch the php part I'll make sure the js (ce and core) are also patched.
So the translating method is already called inside the JS code
And also the language strings exist
in frontend and backend language files
https://github.com/joomla/joomla-cms/blob/4.0-dev/language/en-GB/en-GB.ini#L12-L18
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/language/en-GB/en-GB.ini#L41-L47
JHtmlBehavior::core()
libraries/cms/html/behavior.php
needs to load them
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-11 18:07:13 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_Date | 2018-06-11 18:07:13 | ⇒ | 2018-06-11 18:07:14 |
Closed_By | joomla-cms-bot | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20719
it's not the custom element: https://github.com/joomla/joomla-cms/blob/4.0-dev/media/vendor/joomla-custom-elements/js/joomla-alert.js
it's the core.js:
joomla-cms/media/system/js/core.js
Lines 413 to 420 in 8d048ad
(type is lowercase in J4)
But it is still translatable: https://github.com/joomla/joomla-cms/blob/4.0-dev/media/system/js/core.js#L434