Language Change ? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
16 Aug 2021

Pull Request for Issue #35122 .

Summary of Changes

This pull request (PR) fixes the wrong number of parameters in the 1st and the 3rd call to sprintf reported with issue #35122 .

The 2nd call reported in the issue is J4 only and has been already fixed with this commit in the 4.0-dev branch: 76875db

In addition this PR fixes the same mistake for the call to \JText::sprintf just above the 1st reported issue. The language sting JLIB_MAIL_INVALID_EMAIL_SENDER uses nearly the same text with the same two %s as the reported issue in both 3.10-dev and 4.0-dev.

I decided not to fix that language string JLIB_MAIL_INVALID_EMAIL_SENDER in order not to cause translation works.

Not sure if this PR fixes these issues in the best way, but it should work.

All fixes in this PR here need to be merged up into 4.0-dev after having been merged into 3.10-dev.

Testing Instructions

Code review.

Actual result BEFORE applying this Pull Request

Wrong number of parameters in calls to sprintf and \JText::sprintf.

Expected result AFTER applying this Pull Request

Right number of parameters in calls to sprintf and \JText::sprintf.

Documentation Changes Required

None.

avatar richard67 richard67 - open - 16 Aug 2021
avatar richard67 richard67 - change - 16 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2021
Category Libraries
avatar richard67 richard67 - change - 16 Aug 2021
The description was changed
avatar richard67 richard67 - edited - 16 Aug 2021
avatar richard67 richard67 - change - 17 Aug 2021
Title
[3.10] [4.0] Fix wrong number of parameters for sprintf
[3.10] [4.0] [WiP] Fix wrong number of parameters for sprintf
avatar richard67 richard67 - edited - 17 Aug 2021
avatar richard67 richard67 - change - 17 Aug 2021
The description was changed
avatar richard67 richard67 - edited - 17 Aug 2021
avatar richard67 richard67 - change - 21 Aug 2021
Labels Added: ?
avatar richard67 richard67 - change - 21 Aug 2021
Title
[3.10] [4.0] [WiP] Fix wrong number of parameters for sprintf
[3.10] [4.0] Fix wrong number of parameters for sprintf
avatar richard67 richard67 - edited - 21 Aug 2021
avatar richard67 richard67 - change - 21 Aug 2021
The description was changed
avatar richard67 richard67 - edited - 21 Aug 2021
avatar richard67
richard67 - comment - 21 Aug 2021

@ricardo1709 Done. Ready for tests/reviews.

avatar richard67
richard67 - comment - 21 Aug 2021

@ricardo1709 Unfortunately approval is nice but doesn't count like a test. Could you mark it in the issue tracker, too? Thanks in advance.

avatar ricardo1709 ricardo1709 - test_item - 21 Aug 2021 - Tested successfully
avatar ricardo1709
ricardo1709 - comment - 21 Aug 2021

I have tested this item successfully on 0278808


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

avatar richard67
richard67 - comment - 21 Aug 2021

@ricardo1709 Thanks.

avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2021
Category Libraries Administration Language & Strings Libraries
avatar richard67
richard67 - comment - 21 Aug 2021

@ricardo1709 Could you test again? Thanks in advance.

avatar ricardo1709 ricardo1709 - test_item - 21 Aug 2021 - Tested successfully
avatar ricardo1709
ricardo1709 - comment - 21 Aug 2021

I have tested this item successfully on 8bfe157


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

avatar zero-24 zero-24 - change - 21 Aug 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-08-21 12:22:00
Closed_By zero-24
Labels Added: Language Change
avatar zero-24 zero-24 - close - 21 Aug 2021
avatar zero-24 zero-24 - merge - 21 Aug 2021

Add a Comment

Login with GitHub to post a comment