PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
21 Aug 2023

Summary of Changes

Following the dictat that core should not be using any deprecated code this pr replaces all remaining uses of Factory::getLanguage() with its replacement Factory::getApplication()->getLanguage()

Testing Instructions

  1. enable debug lang and navigate the site and check that the languages load and the debug plugin reports no errors
  2. change <rtl>0</rtl> to <rtl>1<rtl> in langmetadata.xml and repeat

Actual result BEFORE applying this Pull Request

deprecated code is used

Expected result AFTER applying this Pull Request

no deprecated code and everything still works as expected

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
    i assume no documentation is needed for this

avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2023
Category Administration com_admin com_associations com_categories com_config com_contact com_content com_contenthistory com_fields com_finder
avatar brianteeman brianteeman - open - 21 Aug 2023
avatar brianteeman brianteeman - change - 21 Aug 2023
Status New Pending
avatar HLeithner
HLeithner - comment - 22 Aug 2023

Thanks, I'm not merging this for alpha 4 because there are some lines that should be improved for example if we already have $app or if you it's called twice within some lines of code

avatar brianteeman brianteeman - change - 22 Aug 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-08-22 09:49:04
Closed_By brianteeman
Labels Added: PR-5.0-dev
avatar brianteeman brianteeman - close - 22 Aug 2023
avatar HLeithner
HLeithner - comment - 22 Aug 2023

can you reopen it please? I just want to do a code review and my add some lines as suggestion.

avatar brianteeman brianteeman - change - 12 Sep 2023
Status Closed New
Closed_Date 2023-08-22 09:49:04
Closed_By brianteeman
avatar brianteeman brianteeman - change - 12 Sep 2023
Status New Pending
avatar brianteeman brianteeman - reopen - 12 Sep 2023
avatar brianteeman
brianteeman - comment - 12 Sep 2023

re-opened as requested

avatar brianteeman
brianteeman - comment - 12 Sep 2023

closing - conflicts

avatar brianteeman brianteeman - close - 12 Sep 2023
avatar brianteeman brianteeman - change - 12 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-12 20:33:06
Closed_By brianteeman
avatar mavrosxristoforos
mavrosxristoforos - comment - 29 Dec 2023

Hi Brian! Should this one reopen? There is still deprecated code, at least at one location that I spotted.
https://github.com/joomla/joomla-cms/blob/5.0-dev/libraries/src/Language/Text.php#L69C40-L69C40

Add a Comment

Login with GitHub to post a comment