NPM Resource Changed b/c break PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
19 Nov 2025

Pull Request for Issue # .

Summary of Changes

For B/C we still support Joomla.JText although it is deprecated 4.0 will be removed in 7.0

This PR removes the last uses of it in core.

I think this can be done in 6.0 as a bug fix but maintainers might want to push it to 6.1

Testing Instructions

Code review or follow the same test instructions #41543

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

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 brianteeman brianteeman - open - 19 Nov 2025
avatar brianteeman brianteeman - change - 19 Nov 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Nov 2025
Category Administration com_content JavaScript Repository NPM Change Libraries
avatar laoneo
laoneo - comment - 19 Nov 2025

This here is a bc break and has to go into 7.0.

avatar brianteeman
brianteeman - comment - 19 Nov 2025
avatar laoneo
laoneo - comment - 19 Nov 2025

When an extension uses Joomla.getOptions('joomla.jtext'); it will break.

avatar HermanPeeren
HermanPeeren - comment - 19 Nov 2025

When an extension uses Joomla.getOptions('joomla.jtext'); it will break.

No, it won't. See Brian's remark. Joomla.JText will still be replaced by Joomla.Text (until 7.0).

This PR only replaces the deprecated use of joomla.jtext in the core. We don't need them.

avatar laoneo
laoneo - comment - 19 Nov 2025

This is something different, as far as I can see it. Does it still return the translation strings when you use Joomla.getOptions('joomla.jtext'); ?

avatar HermanPeeren
HermanPeeren - comment - 19 Nov 2025

This is something different, as far as I can see it. Does it still return the translation strings when you use Joomla.getOptions('joomla.jtext'); ?

Yes, no problem. Can you explain why it would be a problem, as far as you can see it? 😕

avatar Fedik
Fedik - comment - 19 Nov 2025

Please keep old key name for script options.

$doc->addScriptOptions('joomla.jtext', $strings, false);
// and 
$doc->getScriptOptions('joomla.jtext')

It will work in the core, as you did, of course .
But when some extension trying to do some fancy thing and accessing these options from PHP then their code will be broken after this changes.

avatar HermanPeeren
HermanPeeren - comment - 19 Nov 2025

Sorry, didn't look well. This PR is because of some other discussion about deprecated code in the core, but it is only the first change of Joomla.JText._ into Joomla.Text._ that we spoke about. The other changes are something different indeed...

avatar laoneo
laoneo - comment - 19 Nov 2025

This is something different, as far as I can see it. Does it still return the translation strings when you use Joomla.getOptions('joomla.jtext'); ?

Yes, no problem. Can you explain why it would be a problem, as far as you can see it? 😕

As I said, try it out and you will see it. Without the patch it returns the strings, with it not. This is clearly a bc issue for me.

avatar brianteeman brianteeman - change - 19 Nov 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-11-19 13:50:18
Closed_By brianteeman
Labels Added: NPM Resource Changed b/c break PR-6.0-dev
avatar brianteeman brianteeman - close - 19 Nov 2025

Add a Comment

Login with GitHub to post a comment