? ? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
24 Feb 2017

Summary of Changes

Just reduces if else elseif's

Testing Instructions

Go to the backend and publush on article, publish 2 articles and publuch mire than two articles

Expected result

Should still work

Actual result

Works

Documentation Changes Required

None

avatar zero-24 zero-24 - open - 24 Feb 2017
avatar zero-24 zero-24 - change - 24 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2017
Category Language & Strings
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Feb 2017

I have tested this item successfully on 8126ae9

1 article published.
2 articles published.
3 articles published.


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 24 Feb 2017 - Tested successfully
avatar Bakual
Bakual - comment - 24 Feb 2017

Code looks fine, however you would have to do the same in the corresponding admin file.

Not sure how useful it is. It's not like the elseif here is overly complex ?

avatar infograf768
infograf768 - comment - 24 Feb 2017

it's ok as it is imho. no use to change.

avatar mbabker
mbabker - comment - 24 Feb 2017

Actually for English it should change. By default, the pluralizer already has suffixes for the count, so it can be simplified to this:

return $count > 1 ? array('MORE') : array();

(there's no need to add a second suffix to the array for the actual numbers, the logic only needs suffixes for specific pluralization rules and the resulting key ends up as something like COM_COMPONENT_STRING_MORE.

avatar zero-24 zero-24 - change - 24 Feb 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-02-24 16:00:16
Closed_By zero-24
Labels Added: ? ? ?
avatar zero-24 zero-24 - close - 24 Feb 2017

Add a Comment

Login with GitHub to post a comment