File indexing completed on 2024-04-14 03:56:12
0001 /* 0002 * SPDX-FileCopyrightText: 2010 Petri Damstén <damu@iki.fi> 0003 * SPDX-FileCopyrightText: 2014 John Layt <jlayt@kde.org> 0004 * SPDX-FileCopyrightText: 2014 Garret Wassermann <gwasser@gmail.com> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #include "thermal_flux_p.h" 0010 #include "unit_p.h" 0011 0012 #include <KLocalizedString> 0013 0014 namespace KUnitConversion 0015 { 0016 UnitCategory ThermalFlux::makeCategory() 0017 { 0018 auto c = UnitCategoryPrivate::makeCategory(ThermalFluxCategory, i18n("Thermal Flux Density"), i18n("Thermal Flux Density")); 0019 auto d = UnitCategoryPrivate::get(c); 0020 KLocalizedString symbolString = ki18nc("%1 value, %2 unit symbol (thermal flux density)", "%1 %2"); 0021 0022 d->addDefaultUnit(UnitPrivate::makeUnit(ThermalFluxCategory, 0023 WattPerSquareMeter, 0024 1, 0025 i18nc("thermal flux unit symbol", "W/m²"), 0026 i18nc("unit description in lists", "watt per square meter"), 0027 i18nc("unit synonyms for matching user input", "watt per square meter;W/m2;W/m^2"), 0028 symbolString, 0029 ki18nc("amount in units (real)", "%1 watts per square meter"), 0030 ki18ncp("amount in units (integer)", "%1 watt per square meter", "%1 watts per square meter"))); 0031 0032 d->addCommonUnit(UnitPrivate::makeUnit(ThermalFluxCategory, 0033 BtuPerHourPerSquareFoot, 0034 0.3169986, 0035 i18nc("thermal flux unit symbol", "Btu/hr/ft²"), 0036 i18nc("unit description in lists", "btu per hour per square foot"), 0037 i18nc("unit synonyms for matching user input", "btu per hour per square foot;Btu/hr/ft2;Btu/hr/ft^2;Btu/ft^2/hr;Btu/ft2/hr"), 0038 symbolString, 0039 ki18nc("amount in units (real)", "%1 btu per hour per square foot"), 0040 ki18ncp("amount in units (integer)", "%1 btu per hour per square foot", "%1 btu per hour per square foot"))); 0041 0042 return c; 0043 } 0044 0045 } // KUnitConversion namespace