If you look at the line
joomla-cms/plugins/actionlog/joomla/joomla.php
Lines 451 to 452 in ab62797
The translation string is not correctly converted in to a fully UPPERCASE string like
joomla-cms/plugins/actionlog/joomla/joomla.php
Lines 400 to 401 in ab62797
strtoupper()
to this onExtensionAfterUpdate()
to match the similiar functions onExtensionAfterUninstall()
and onExtensionAfterInstall()
in this class will fix this.strtoupper()
might cause the key lookup to fail.Labels |
Added:
?
|
true, but it should match the other methods/statements.
We have multiple examples of this kind of code.
$this->toc[$key] = Text::_('COM_ADMIN_HELP_' . $value);
Text::_('COM_BANNERS_FIELD_VALUE_' . $purchaseTypes[$params->get('purchase_type')])
$label = empty($fieldSet->label) ? 'COM_CONFIG_' . $name . '_FIELDSET_LABEL' : $fieldSet->label; ?>
$lang_key = 'PLG_FINDER_STATISTICS_' . str_replace(' ', '_', $type->type_title);
<?php echo Text::_('COM_PRIVACY_HEADING_REQUEST_TYPE_TYPE_' . $item->request_type); ?>
etc. etc.
if we start adding strtoupper()
to all such occurrences in core, this would add quite a work.
Welcome to propose patch.
strtoupper()
adding.Welcome to propose patch
= I dont know how to and I discovered this whilst building my first component so i need to finish that before learning something else.
true, but it should match the other methods/statements
I would remove strtoupper() from other methods (consistency and less code) if nothing fails then.
This should be closed if no one is going to create the pr
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-08 16:53:32 |
Closed_By | ⇒ | HLeithner |
This shouldn't really be an issue because related methods in language class run keys through
strtoupper()
.