Bug 961595

Summary: Foreman UI does not properly pluralize when more than one organization exists.
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: ProvisioningAssignee: Dominic Cleal <dcleal>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney, cbillett, dcleal
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/2495
Whiteboard:
Fixed In Version: foreman-1.1.10004-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-18 18:45:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Welton 2013-05-10 03:10:24 UTC
Description of problem:
If more than one org exists, and user goes to org view in foreman, the counter on the org view reads incorrectly.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.  Create a new org in katello, "Second_Org"
2.  Navigate to Org view in /foreman
3.  View summary box below the org list
  
Actual results:

Displaying all 2 Organization

Expected results:

Displaying all 2 Organization(s)

Additional info:

Comment 1 Dominic Cleal 2013-05-13 07:49:34 UTC
This is a recurring problem in the UI, as will_paginate (the library that provides pagination) isn't integrated into the i18n framework Foreman's using.  There are a few similar places where the noun is hardcoded in Foreman and passed into will_paginate.

Comment 2 Bryan Kearney 2013-06-04 19:58:39 UTC
http://projects.theforeman.org/issues/2495 sappears to be closed. moving to 6.0.1

Comment 3 Dominic Cleal 2013-06-04 20:03:31 UTC
Fixed upstream in:

1.2-stable: ce81cfdad1bcbb136a90cb16380068c6be631c0a
develop: 1bf7cc358e00092d2cee38cc83cb753ed31ffa89

Comment 4 Dominic Cleal 2013-09-17 20:41:28 UTC
Actually made it into MDP1 via b80e776a74b2b4afa4ec3af131f59df245b77402.