Skip to content

Commit 369a6a6

Browse files
authored
Density: Add pound abbreviations (#1506)
Fixes #1505 Introduces the missing `lbm` abbreviation for pounds in composed units of measurement.
1 parent 65c875b commit 369a6a6

File tree

3 files changed

+156
-12
lines changed

3 files changed

+156
-12
lines changed

Common/UnitDefinitions/Density.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"Localization": [
7777
{
7878
"Culture": "en-US",
79-
"Abbreviations": [ "lb/in³" ],
79+
"Abbreviations": [ "lb/in³", "lbm/in³" ],
8080
"AbbreviationsForPrefixes": { "Kilo": "kip/in³" }
8181
}
8282
]
@@ -94,7 +94,7 @@
9494
"Localization": [
9595
{
9696
"Culture": "en-US",
97-
"Abbreviations": [ "lb/ft³" ],
97+
"Abbreviations": [ "lb/ft³", "lbm/ft³" ],
9898
"AbbreviationsForPrefixes": { "Kilo": "kip/ft³" }
9999
}
100100
]
@@ -113,7 +113,7 @@
113113
"Localization": [
114114
{
115115
"Culture": "en-US",
116-
"Abbreviations": [ "lb/yd³" ],
116+
"Abbreviations": [ "lb/yd³", "lbm/yd³" ],
117117
"AbbreviationsForPrefixes": { "Kilo": "kip/yd³" }
118118
}
119119
]
@@ -337,7 +337,7 @@
337337
"Localization": [
338338
{
339339
"Culture": "en-US",
340-
"Abbreviations": [ "lb/m³" ]
340+
"Abbreviations": [ "lb/m³", "lbm/m³" ]
341341
}
342342
]
343343
},
@@ -353,7 +353,7 @@
353353
"Localization": [
354354
{
355355
"Culture": "en-US",
356-
"Abbreviations": [ "lb/cm³" ]
356+
"Abbreviations": [ "lb/cm³", "lbm/cm³" ]
357357
}
358358
]
359359
},
@@ -369,7 +369,7 @@
369369
"Localization": [
370370
{
371371
"Culture": "en-US",
372-
"Abbreviations": [ "lb/mm³" ]
372+
"Abbreviations": [ "lb/mm³", "lbm/mm³" ]
373373
}
374374
]
375375
},

UnitsNet.Tests/GeneratedCode/TestsBase/DensityTestsBase.g.cs

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Resources/Density.restext

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ NanogramsPerMilliliter=ng/ml
3636
PicogramsPerDeciLiter=pg/dl
3737
PicogramsPerLiter=pg/L
3838
PicogramsPerMilliliter=pg/ml
39-
PoundsPerCubicCentimeter=lb/cm³
40-
PoundsPerCubicFoot=lb/ft³
41-
PoundsPerCubicInch=lb/in³
42-
PoundsPerCubicMeter=lb/m³
43-
PoundsPerCubicMillimeter=lb/mm³
44-
PoundsPerCubicYard=lb/yd³
39+
PoundsPerCubicCentimeter=lb/cm³,lbm/cm³
40+
PoundsPerCubicFoot=lb/ft³,lbm/ft³
41+
PoundsPerCubicInch=lb/in³,lbm/in³
42+
PoundsPerCubicMeter=lb/m³,lbm/m³
43+
PoundsPerCubicMillimeter=lb/mm³,lbm/mm³
44+
PoundsPerCubicYard=lb/yd³,lbm/yd³
4545
PoundsPerImperialGallon=ppg (imp.)
4646
PoundsPerUSGallon=ppg (U.S.)
4747
SlugsPerCubicCentimeter=slug/cm³

0 commit comments

Comments
 (0)