Browsed by
Category: PluralNet

PluralNet: Pluralization for your .Net application

PluralNet: Pluralization for your .Net application

Intro: http://www.rudyhuyn.com/blog/2016/09/28/pluralization-the-missing-part-of-net/ I created a new library named PluralNet, managing plural forms for you, very easy to use and compatible with RESW files as well as RESX files. Contrary to other ios/android libraries, this one will also manage decimal numbers, the code is a little more complex but very useful. How to use it? A Nuget package named PluralNet is available, so install it from Visual Studio or using the following command line: Install-Package PluralNet How to manage plural forms in…

Read More Read More

Pluralization: the missing part of .Net

Pluralization: the missing part of .Net

Plural forms are a lot more complex than we think, there is no generic rules to manage plurals, each languages have their specific rules. A lazy way is to ignore them: 3 item(s) in your cart As a designer, I hate that, it’s laziness. So a lot of applications write a code similar to this one: if(numberOfItem == 1) return SINGULAR; else return PLURAL; It’s better but still wrong, except if you only support english, did you know that this rule is…

Read More Read More