[4.0] override check in language files #43326
Replies: 16 comments
-
Hi. I was talking about this with @roland-d about this on Saturday night. Could you please explain all the type of checks you would like to see and the benefit of each. |
Beta Was this translation helpful? Give feedback.
-
What I am thinking about is a list with all the overrides (constants) with the value of the override and the current value of the variable (original text). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24952. |
Beta Was this translation helpful? Give feedback.
-
Not really the most practical thing to pull off. For templates, it's a relatively easier check to make (you can check modification timestamps, file checksums, assume source file paths based on the override file path, etc.), but because of the way Joomla "lazy" loads each language file you couldn't sanely do a post-update check of every constant in your override INI to check for changes (two immediate issues include that some strings take advantage of the fact that loading a file after another one can overwrite a constant, a quirk used in components to override certain strings from the |
Beta Was this translation helpful? Give feedback.
-
I spent quite a bit of thinking time today on this and like @mbabker I can't think of a sensible way to achieve this |
Beta Was this translation helpful? Give feedback.
-
I also thought about it and agree with @mbabker and @brianteeman for reasons which @mbabker explained above. |
Beta Was this translation helpful? Give feedback.
-
A couple of years ago I was toying with the idea of having a plugin that caches a compiled Maybe some of the work George and I did on the Framework's Language package (specifically the bits about extracting the message catalogue from the |
Beta Was this translation helpful? Give feedback.
-
I don't think you understand what I want. I don't want an automated check. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24952. |
Beta Was this translation helpful? Give feedback.
-
Ah - we misunderstood This sounds similar to #22259 Both of which seems a good idea to me although the comments from @infograf768 on that issue state that it is not possible |
Beta Was this translation helpful? Give feedback.
-
That bit runs into the problems with the load order of files and constants. It is hardcoded into the |
Beta Was this translation helpful? Give feedback.
-
Some aspects could be done for the list, after a full refactoring of the overrides. If that refactoring is done, we "could" get new ways of filtering to display in the list all overrides with a "Show All" and filter separately or not by Language, Client and even Constant. But that would not solve your expected result, i.e. get a Also the same constant may have different values depending from which component they are loaded. Example |
Beta Was this translation helpful? Give feedback.
-
Closing this due to not receiving required information to determine if this is a bug or not. If you feel this still needs review, please open a new tracker entry with as much information as possible to ensure it can be reviewed properly |
Beta Was this translation helpful? Give feedback.
-
This was not a bug report - it was a feature request |
Beta Was this translation helpful? Give feedback.
-
@brianteeman if this is a feature request from this far back and was tagged as "information Needed". Then something was missing at some point. Maybe it isnt the right status now, but no follow up as been completed and if it needs a different state then someone who felt it was a viable feature could have changed it to "confirmed" so someone can start a PR. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24952. |
Beta Was this translation helpful? Give feedback.
-
I have experience of something like this with a custom component and multiple languages. For the request here I think the solution needs a couple of tables, one for the joomla strings and one for the overrides, both with last update dates. Should this be a third party extension rather than a core feature? And is it a site specific solution - something to run after an update? Something for an Ideas page (do we have one)? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24952. |
Beta Was this translation helpful? Give feedback.
-
I would like to see a more robust language override system where I can track that the original strings were changed but also which ones are even still in use and also track changes between the languages. For example, if I have 7 languages and I change the overrides from 3 of them to have a check to change the other 4 languages as well. |
Beta Was this translation helpful? Give feedback.
-
This needs more discussion and definition what we want to achive and what can be done. Moving it to dicussion. |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce the issue
I do understand after the Dutch JoomlaDagen that there is a check on template overrides in Joomla 4 if the original item is changed.
It would be nice to have a check on language overrides also.
Expected result
Warning if the original language string is removed or changed.
Additional comments
When I do use a override to correct a (for me) wrong tramslation/english string in Joomla or an extension, I would like to know if the original string is changed, so I can decide to remove/change/keep the override.
Beta Was this translation helpful? Give feedback.
All reactions