As mention above, J4 has changed to name spaced class names. You should know though that J3.9+ also implements a class mapping system where the class names are interchangeable. You can use JText or Text (with the use statement) in your code.


So why should you go through the effort of changing from JText to Text? There are two reasons for doing so.


  1. You have to do it some time. At some point the old class names will become deprecated and then gone. You are going to be doing a fair amount of rewrite anyway so why not do a complete job of it from the beginning.
  2. There is a script available that will do it for you!


That's right. Someone has already done the hard work for you. Go here https://github.com/vortrixs/joomla-namespace-checker


Download and install this.


If you need to compile the checker you must set phar.readyonly = off in you php.ini file.