?
avatar alfredojdd
alfredojdd
10 Aug 2020

Steps to reproduce the issue

in FormController set 'view_item' as 'aircraft'. To get the 'view_list' the function toPlural returns the same word 'aircraft' instead the plural form 'aircrafts'

Expected result

The plural form of 'aircraft' -> 'aircrafts'

Actual result

'aircraft' instead of 'aircrafts'

System information (as much as possible)

Laragon 4.0.16, php 7.4.7

Additional comments

Excuse my english :)

avatar alfredojdd alfredojdd - open - 10 Aug 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Aug 2020
avatar alfredojdd alfredojdd - change - 10 Aug 2020
The description was changed
avatar alfredojdd alfredojdd - edited - 10 Aug 2020
avatar SharkyKZ
SharkyKZ - comment - 10 Aug 2020

Apparently, plural form of aircraft is aircraft. So it's correct as it is. You'll have to to manually define list view name.

avatar richard67
richard67 - comment - 10 Aug 2020

@brianteeman Can you confirm this as a native English speaker? I think @SharkyKZ is right, but we both are not native English speakers.

avatar alfredojdd
alfredojdd - comment - 10 Aug 2020

Oh! Thanks….

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: SharkyKZmailto:notifications@github.com
Sent: lunes, 10 de agosto de 2020 13:17
To: joomla/joomla-cmsmailto:joomla-cms@noreply.github.com
Cc: alfredojddmailto:moto.clasica@hotmail.com; Authormailto:author@noreply.github.com
Subject: Re: [joomla/joomla-cms] \Joomla\String\Inflector::getInstance()->toPlural fails on 'aircraft' (#30332)

Apparently, plural form of aircraft is aircraft. So it's correct as it is. You'll have to to manually define list view name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub#30332 (comment), or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEIHHDYSYMFBICOOHBEMWFTR77JL3ANCNFSM4PZZ5XAQ.

avatar brianteeman
brianteeman - comment - 10 Aug 2020

confirmed - aircraft is both singular and plural

avatar richard67 richard67 - change - 10 Aug 2020
Status New ⇒ Expected Behaviour
Closed_Date 0000-00-00 00:00:00 ⇒ 2020-08-10 11:44:18
Closed_By ⇒ richard67
avatar richard67 richard67 - close - 10 Aug 2020
avatar richard67
richard67 - comment - 10 Aug 2020

Closing as expected behavior.


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

avatar richard67
richard67 - comment - 10 Aug 2020

Funny detail: I am also sure that "aircrafts" is wrong. But Google Translator offers that as a possible translation from German "Flugzeuge". So it seems to be a common mistake, so common that Google Translator has adapted to it ;-)

avatar brianteeman
brianteeman - comment - 10 Aug 2020

as the plural of airplane is airplanes that might suit your purpose easier

Add a Comment

Login with GitHub to post a comment