J4 Issue ?
avatar brianteeman
brianteeman
13 Sep 2019

Preamble

This is referring to the english values in the strings not any translation
This is not about changing any language constants
This is about consistency in the english used (if it was any other language it would not even be discussed as we would not know about it)

Issue

We have at least THREE different ways that singular strings are written in english

COM_REDIRECT_N_ITEMS_ARCHIVED="%d links archived."
COM_REDIRECT_N_ITEMS_ARCHIVED_1="Link archived."

COM_CONTACT_N_ITEMS_ARCHIVED="%d contacts archived."
COM_CONTACT_N_ITEMS_ARCHIVED_1="%d contact archived."

COM_USERS_USERS_N_ITEMS_DELETED="%d users deleted."
COM_USERS_USERS_N_ITEMS_DELETED_1="1 user deleted."

Language strings should be consistent in style and language. This is not only important for consistency and creating a professional impression it is also import for accessibility.

providing consistent labels for the repeated components reduces the cognitive load of users with cognitive disabilities

Proposal

All the values to be updated to one single format and the enGB style guide updated so that singular strings are

COM_REDIRECT_N_ITEMS_ARCHIVED="%d links archived."
COM_REDIRECT_N_ITEMS_ARCHIVED_1="Link archived."

COM_CONTACT_N_ITEMS_ARCHIVED="%d contacts archived."
COM_CONTACT_N_ITEMS_ARCHIVED_1="Contact archived."

COM_USERS_USERS_N_ITEMS_DELETED="%d users deleted."
COM_USERS_USERS_N_ITEMS_DELETED_1="User deleted."

avatar brianteeman brianteeman - open - 13 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Sep 2019
avatar brianteeman brianteeman - change - 13 Sep 2019
Title
RFC Plural strings
[4.0] RFC Plural strings
avatar brianteeman brianteeman - edited - 13 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Sep 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 13 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Sep 2019
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 13 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2019
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 13 Sep 2019
avatar wilsonge
wilsonge - comment - 13 Sep 2019

So i guess %d contact archived is actually the same (in the end for the user) as 1 user deleted so would involve less work to convert to that format for consistency.

However agree with you proposal as that's the "correct" English way I think.

avatar brianteeman
brianteeman - comment - 13 Sep 2019

Thanks - PR incoming

avatar infograf768
infograf768 - comment - 13 Sep 2019

So i guess %d contact archived is actually the same (in the end for the user) as 1 user deleted so would involve less work to convert to that format for consistency.

Not really for some languages as the variable may still be necessary in code when the same wording is used for 1 and another figure.

EDIT: I meant we still need to Count in code.

avatar wilsonge
wilsonge - comment - 13 Sep 2019

@infograf768 Text::plural will still pass that variable in. Just in english language files we choose not to use it. Totally agree the option for language packs still needs to be there

avatar brianteeman
brianteeman - comment - 13 Sep 2019

Just deleted my reply after seeing the edit

This is nothing to do with the code - I was very explicit writing what it referred to at the very beginning of the proposal

avatar infograf768
infograf768 - comment - 13 Sep 2019

I was mostly referring to

so would involve less work to convert to that format for consistency

As it will be the opposite as TTs will see these strings modified in en-GB and have to confirm or will feel obliged to modify them.
But this is an old debate and I was never followed on this, so just forget me.

avatar brianteeman brianteeman - change - 13 Sep 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-09-13 08:56:22
Closed_By brianteeman
avatar brianteeman brianteeman - close - 13 Sep 2019

Add a Comment

Login with GitHub to post a comment