Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
4 votes
2 answers
296 views

I've created the following data model: import Foundation struct Effort { let amount: Int let unit: String var text: String { "\(amount) \(unit)" } var ...
0 votes
2 answers
476 views

Rails provides a built-in pluralization method for String, e.g., "apple".pluralize returns "apples" and "apple".pluralize(1) does "apple" (see this question). ...
5 votes
1 answer
1k views

In stringsdict it was possible to define a format separately from the translation so you could do something like "picker.days" which you could pass in an integer and it would return you only ...
0 votes
1 answer
153 views

Has anyone successfully gotten plurals to preview in SwiftUI? Apple uses a .stringsdict file for handling pluralization. However, when attempting to render that string in a preview, for example: Text(&...
3 votes
1 answer
228 views

I know I can use Intl.DisplayNames to get the singular form (e.g. US Dollar). const currencyNameEnUs = new Intl.DisplayNames( 'en-US', { type: 'currency' } ); const currencyCode = 'USD'; console.log( ...
-1 votes
1 answer
40 views

Trying to get the following to pass my pipeline it is failing to pluralize. The rest of the change passed the pipeline just can't seem to get the pennies to pass. Help with this would be greatly ...
-1 votes
1 answer
160 views

I want to write some code to determine if I need to write "Quarter" or "Quarters" depending on the amount. Up to now I have the following code: fun main(args: Array<String>) {...
Lynn's user avatar
  • 31
0 votes
0 answers
64 views

I'm starting to learn JS and one of my tasks is to create a simple code to give the system time. I also wanted to increment it so it would give hour or hours based on what value the variable had (if ...
0 votes
0 answers
90 views

I'm trying to pluralize a word in the subject of a rails mailer : these two don't working : subject: "Réservation pour #{pluralize(@step.number_of_people.to_i, "personne")}" ...
Ben's user avatar
  • 712
1 vote
1 answer
685 views

trying to output the correct plural value in Django template when count is more than 1. <p>{{ review.markers.helpful.count }} person{{ reviews.markers.helpful.count|length|pluralize }} found ...
0 votes
0 answers
219 views

I have a number input controlled by (+) and (-) buttons. I added a unit label after the number with a span following the input, but now am having trouble figuring out how to pluralize the unit when ...
1 vote
0 answers
148 views

When scaffolding an existing DB Model there are several table names that end with an s. Like SaleOrderPos beeing pos short for position. I want to pluralize the DBSet but keep intanct the original ...
-1 votes
3 answers
394 views

I would like to combine these two function but I'm on trouble how to do it. Could anyone help me please? fun String?.pluralize(count: Int): String? { return if (count != 1) { this + 's' ...
John's user avatar
  • 75
0 votes
0 answers
216 views

Edit: The issue isn't related to pluralize. See comment. How do I make pluralize to display 0? In the database are 2 book listings ('books'), 6 physical copies ('book_instances'), and 0 available for ...
YCode's user avatar
  • 1,282
3 votes
2 answers
1k views

I am trying out weblate self hosting package (MaxOs Docker, to test it out) to manage my translations for an iOS and Android app. I see that pluralisation is possible, but I haven't found a way to add ...

15 30 50 per page
1
2 3 4 5
...
10

AltStyle によって変換されたページ (->オリジナル) /