Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFix pluralization logic III #6810
Open
Comments
This comment has been minimized.
This comment has been minimized.
Uploaded on GCI Dashboard |
This comment has been minimized.
This comment has been minimized.
Published |
This comment has been minimized.
This comment has been minimized.
can I claim this? |
This comment has been minimized.
This comment has been minimized.
Hi @1405043-kd This issue is reserved for GCI students. Please do any other issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please note we are preparing to participate in Google Code-in, and have reserved this issue for GCI participants - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.
First Time?
This is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you💝
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.
The problem
The pluralization in the screenshot above is incorrect (ie. should be "1 person" not "1 people")
Solution
This is a simple one -- lets find the relevant line of code first:
plots2/app/views/tag/_profileCard.html.erb
Line 7 in a5d3392
As you can see, this line has no conditional and "people" will always just be plural.
Let's correct this: - Rails gives us a really convenient way to resolve it through the pluralize method.
Update the inner
a
tag to use the method like so:Thanks!!
Step by Step
commit your changes to your branch and start a pull request (see contributing to Public Lab software) but mark it as "in progress" if you have questions or if you haven't finished
Please keep us updated
If this happens to you, don't sweat it! Grab another open issue.
If you need any help - here are some options: