Updates Requested PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
22 Oct 2025

Pull Request for Issue # .

Summary of Changes

Extend the existing parent language of the parent template instead of requiring to recreate the existing strings on the child template

Testing Instructions

  • on the existing cassiopeia_extended create the language override:
Screenshot 2026-01-25 at 11 51 55 AM
  • edit the file templates/cassiopeia_extended/language/en-GB/tpl_cassiopeia_extended.ini and add CASSIOPEIA_TEST="Correct String"
Screenshot 2026-01-25 at 11 53 27 AM
  • edit the file templates/cassiopeia_extended/index.php and add
echo Joomla\CMS\Language\Text::_('CASSIOPEIA_TEST');
echo '<br>';
echo Joomla\CMS\Language\Text::_('CASSIOPEIA');
Screenshot 2026-01-25 at 11 55 40 AM
  • Make sure that Cassiopeia Extended is the default template (should have the yellow star)
Screenshot 2026-01-25 at 11 56 49 AM
  • Visit the site, should see (with the PR applied)
Screenshot 2026-01-25 at 11 57 59 AM

Actual result BEFORE applying this Pull Request

Screenshot 2026-01-25 at 11 57 59 AM

Expected result AFTER applying this Pull Request

Screenshot 2026-01-25 at 11 57 59 AM

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar dgrammatiko dgrammatiko - open - 22 Oct 2025
avatar dgrammatiko dgrammatiko - change - 22 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2025
Category Libraries
avatar HLeithner
HLeithner - comment - 22 Oct 2025

please simplify the if statements, the else is not needed and maybe you find out why we load the language files twice?

avatar dgrammatiko dgrammatiko - change - 22 Oct 2025
Labels Added: PR-6.0-dev
avatar dgrammatiko
dgrammatiko - comment - 22 Oct 2025

maybe you find out why we load the language files twice

Probably has to do with the other document types (the HtmlDocument class is loading the language files I have to check the other ones)

avatar RickR2H
RickR2H - comment - 14 Nov 2025

@dgrammatiko could you please add some test instructions?

avatar dgrammatiko dgrammatiko - change - 15 Nov 2025
Title
[6.0] Child templates language override
[6.0] Child templates extend language instead of override
avatar dgrammatiko dgrammatiko - edited - 15 Nov 2025
avatar dgrammatiko dgrammatiko - change - 15 Nov 2025
The description was changed
avatar dgrammatiko dgrammatiko - edited - 15 Nov 2025
avatar exlemor
exlemor - comment - 7 Dec 2025

Hi @dgrammatiko,

I have tried following the Testing Instructions to the letter so either it's not working, or I misunderstood something or there's a step missing?

Image shows the folder/file structure with Child Template for PR46353, index.php copied and Language Folders en-GB and fr-FR emptied
ScreenFloat Shot of ForkLift on 2025-12-07 at 14-00-26

Image shows Child Template for PR46353 selected (wasn't mentioned in Testing Instructions but assumed that was needed)
ScreenFloat Shot of Safari on 2025-12-07 at 13-58-01

PR NOT Applied, yet Back to Top showing and not TPL_CASSIOPEIA_BACKTOTOP
ScreenFloat Shot of Safari on 2025-12-07 at 13-57-40

HELP? ;)

avatar dgrammatiko
dgrammatiko - comment - 7 Dec 2025

You shouldn’t empty the folders but the files (.ini). Ie files should exist but with no content

avatar exlemor
exlemor - comment - 7 Dec 2025

You shouldn’t empty the folders but the files (.ini). Ie files should exist but with no content

Ah, ok. Let me try that - thanks. That's a lot of files to empty lol, on it.

Thankfully, a bit of command line magic will do that trick:

for file in *.ini; do > "$file"; done

avatar exlemor
exlemor - comment - 7 Dec 2025

Unfortunately, @dgrammatiko, even after emptying the .ini files (while keeping them there), and NOT applying the PR, I still get Back to Top vs TPL_CASSIOPEIA_BACKTOTOP

Image showing .ini files present but 0 bytes...
ScreenFloat Shot of ForkLift on 2025-12-07 at 14-28-39
(the rest of the .ini files in that folder are 0 bytes also as well as the .ini files in /fr-FR/ folder for other language on multi-lingual test site).

avatar Bodge-IT
Bodge-IT - comment - 10 Dec 2025

@dgrammatiko could you please update your instructions to make the steps clearer? That should help with tests.

avatar dgrammatiko
dgrammatiko - comment - 10 Dec 2025

Will try to do it after work

avatar tecpromotion
tecpromotion - comment - 23 Jan 2026

Will try to do it after work

Hi @dgrammatiko
I've assigned you to this PR, maybe you'll get around to it and then I'd like to label it with pbf.

avatar dgrammatiko dgrammatiko - change - 25 Jan 2026
Labels Added: Updates Requested
avatar dgrammatiko dgrammatiko - change - 25 Jan 2026
The description was changed
avatar dgrammatiko dgrammatiko - edited - 25 Jan 2026
avatar dgrammatiko dgrammatiko - change - 25 Jan 2026
Title
[6.0] Child templates extend language instead of override
[6.1] Child templates extend language instead of override
avatar dgrammatiko dgrammatiko - edited - 25 Jan 2026
avatar dgrammatiko dgrammatiko - change - 25 Jan 2026
Labels Added: PR-6.1-dev
avatar dgrammatiko dgrammatiko - change - 25 Jan 2026
Labels Removed: PR-6.0-dev
avatar richard67
richard67 - comment - 25 Jan 2026

maybe you find out why we load the language files twice

Probably has to do with the other document types (the HtmlDocument class is loading the language files I have to check the other ones)

I remember having seen another PR or issue about that, but I am not sure, maybe I mix something up.

avatar dgrammatiko
dgrammatiko - comment - 25 Jan 2026

I remember having seen another PR or issue about that, but I am not sure, maybe I mix something up.

You mean #46518 but that was specific to the com_templates. Also this PR is doing something fundamentally different and now I have to do another PR to align that code with this one...

avatar richard67
richard67 - comment - 25 Jan 2026

I remember having seen another PR or issue about that, but I am not sure, maybe I mix something up.

You mean #46518 but that was specific to the com_templates. Also this PR is doing something fundamentally different and now I have to do another PR to align that code with this one...

@dgrammatiko No, not that one. It was something with double load or double render or rendered twice.

avatar exlemor exlemor - test_item - 30 Jan 2026 - Tested unsuccessfully
avatar exlemor
exlemor - comment - 30 Jan 2026

I have tested this item 🔴 unsuccessfully on 20e1768

Tested this during PBF, with Olivier watching, I have followed your instructions and matched each screen shot EXCEPT that the BEFORE PR condition shows:
Correct String
Cassiopeia Site template

and the version with the PR applied shows the same thing 😭 - sorry.


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

avatar idefax
idefax - comment - 30 Jan 2026

I agree with @exlemor

I got the same result.


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

avatar drankwiler
drankwiler - comment - 30 Jan 2026

Getting the same result as exlemor and idefax.


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

avatar idefax
idefax - comment - 30 Jan 2026

I did retest on my own environment with still the same result.

Are the testing instructions correct?

avatar dgrammatiko
dgrammatiko - comment - 30 Jan 2026

Both before and after should be the same, my bad!

avatar idefax
idefax - comment - 31 Jan 2026

OK, in this case my testing was succsessful!


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

avatar idefax idefax - test_item - 31 Jan 2026 - Tested successfully
avatar idefax
idefax - comment - 31 Jan 2026

I have tested this item ✅ successfully on 20e1768


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

avatar exlemor
exlemor - comment - 31 Jan 2026

Both before and after should be the same, my bad!

Hi @dgrammatiko, could you update the Testing Instructions so that it clears up the issue - if the results are SUPPOSED to be the same BEFORE and AFTER PR, then I can re-test as successful :)

avatar dgrammatiko dgrammatiko - change - 31 Jan 2026
The description was changed
avatar dgrammatiko dgrammatiko - edited - 31 Jan 2026
avatar drankwiler drankwiler - test_item - 31 Jan 2026 - Tested successfully
avatar drankwiler
drankwiler - comment - 31 Jan 2026

I have tested this item ✅ successfully on 20e1768


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

avatar exlemor exlemor - test_item - 31 Jan 2026 - Tested successfully
avatar exlemor
exlemor - comment - 31 Jan 2026

I have tested this item ✅ successfully on 20e1768

Thank you @dgrammatiko for updating the Testing Instructions - since now the BEFORE and AFTER results are the same, I have been able to test this successfully! 💪👍


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

Add a Comment

Login with GitHub to post a comment