Feature Conflicting Files bug PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
10 Apr 2023

in addittion to #40355 and #40309

Summary of Changes

Most of the plugins wasting a time for loading their language, while it may never used.
I have reviewed some system plugins, and changed $autoloadLanguage to manual loading, on specific event.

It still need some work, but need to wait when #40216 will be merged and upmerged :)

Testing Instructions

Apply patch, make sure the plugins translations still works.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org: IDK
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: IDK
  • No documentation changes for manual.joomla.org needed
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2023
Category Front End Plugins
avatar Fedik Fedik - open - 10 Apr 2023
avatar Fedik Fedik - change - 10 Apr 2023
Status New Pending
avatar Fedik Fedik - change - 18 Apr 2023
Title
Plugins: load language manually, only when plugin it really needed. Performance optimisation.
Plugins: load language only when plugin it really needed. Performance optimisation.
avatar Fedik Fedik - edited - 18 Apr 2023
avatar Fedik Fedik - change - 23 Apr 2023
Title
Plugins: load language only when plugin it really needed. Performance optimisation.
[5.0] Plugins: load language only when plugin it really needed. Performance optimisation.
avatar Fedik Fedik - edited - 23 Apr 2023
avatar Fedik Fedik - change - 22 May 2023
Labels Added: Feature PR-5.0-dev
avatar Fedik Fedik - change - 22 May 2023
The description was changed
avatar Fedik Fedik - edited - 22 May 2023
avatar Fedik Fedik - change - 22 May 2023
The description was changed
avatar Fedik Fedik - edited - 22 May 2023
avatar Fedik Fedik - change - 6 Aug 2023
The description was changed
avatar Fedik Fedik - edited - 6 Aug 2023
avatar ceford
ceford - comment - 14 Sep 2023

I installed German, logged in to Admin with German selected, applied patch and got this:

Die zu ändernde Datei existiert nicht: plugins/system/logrotation/src/Extension/LogRotation.php

Same with English, with Patchtester the patch won't apply - error message:

The file marked for modification does not exist: plugins/system/logrotation/src/Extension/LogRotation.php


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40356.

avatar brianteeman
brianteeman - comment - 14 Sep 2023
avatar Fedik Fedik - change - 14 Sep 2023
Labels Added: Conflicting Files bug
avatar HLeithner HLeithner - change - 17 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-17 17:37:40
Closed_By HLeithner
avatar HLeithner HLeithner - close - 17 Sep 2023
avatar HLeithner HLeithner - merge - 17 Sep 2023
avatar HLeithner
HLeithner - comment - 17 Sep 2023

I merge this since it seems a useful optimization and could be better tested in beta2 and easily fixed or reverted if a translation is missing.

thanks

Add a Comment

Login with GitHub to post a comment