UnitsNet icon indicating copy to clipboard operation
UnitsNet copied to clipboard

Show example of en vs en-US liters preference (l/L)

Open tmilnthorp opened this issue 2 years ago • 2 comments

Example for addressing #1115

tmilnthorp avatar Feb 20 '23 21:02 tmilnthorp

I think it is a neat idea, but I am not convinced there is a strong enough correlation between the culture you are running and the user's preference for L vs l.

As a counter-example, in Norwegian we use both "l" and "L". I had no specific intuition on when to use what, but apparently our national language council recommends "L" for technical domains.

l | liter
L | liter (i teknisk språk)

https://www.sprakradet.no/sprakhjelp/Skriveregler/Forkortinger/

So if we wanted "L" for Norwegian, we would have to "translate" all liter units to Norwegian. And insert N other countries with similar behavior. I don't think it scales very well.

SI standard accepts both, so there is bound to be a mix internationally. I'm thinking we should maybe instead just make it configurable and maybe that configuration's default could be based on the culture?

Not exactly sure how to make it configurable, beyond calling some static method on startup that re-configures unit abbreviations for liter units. Maybe we can have something enumerate all units with "liter" in the unit name and replace "L" with "l" and vice versa?

angularsen avatar Mar 12 '23 12:03 angularsen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '23 07:06 stale[bot]

Related fix #1404

Closing this for now, I don't expect a big demand for this.

angularsen avatar Jul 08 '24 13:07 angularsen