mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-14 01:02:52 -07:00
added kilowatthour to energy units (#1944)
* added kilowatthour to energy units * fixed false change * Update src/Calculator/Resources/en-US/Resources.resw Co-authored-by: Adam Sasine <adam.sasine@gmail.com> * fix: translations, description * fix: empty line --------- Co-authored-by: Adam Sasine <adam.sasine@gmail.com>
This commit is contained in:
parent
14f35d19f7
commit
264174669d
4 changed files with 21 additions and 1 deletions
|
@ -358,6 +358,13 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map<ViewMode, vector<Order
|
|||
true,
|
||||
false,
|
||||
false });
|
||||
energyUnits.push_back(OrderedUnit{ UnitConverterUnits::Energy_Kilowatthour,
|
||||
GetLocalizedStringName(L"UnitName_Kilowatthour"),
|
||||
GetLocalizedStringName(L"UnitAbbreviation_Kilowatthour"),
|
||||
166,
|
||||
true,
|
||||
false,
|
||||
false });
|
||||
energyUnits.push_back(OrderedUnit{ UnitConverterUnits::Energy_Kilocalorie,
|
||||
GetLocalizedStringName(L"UnitName_Kilocalorie"),
|
||||
GetLocalizedStringName(L"UnitAbbreviation_Kilocalorie"),
|
||||
|
@ -830,6 +837,7 @@ void UnitConverterDataLoader::GetConversionData(_In_ unordered_map<ViewMode, uno
|
|||
{ ViewMode::Energy, UnitConverterUnits::Energy_Kilocalorie, 4184 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_BritishThermalUnit, 1055.056 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_Kilojoule, 1000 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_Kilowatthour, 3600000 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_ElectronVolt, 0.0000000000000000001602176565 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_Joule, 1 },
|
||||
{ ViewMode::Energy, UnitConverterUnits::Energy_FootPound, 1.3558179483314 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue