9#include "electrical_resistance_p.h"
12#include <KLocalizedString>
14namespace KUnitConversion
16UnitCategory ElectricalResistance::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(ElectricalResistanceCategory,
i18n(
"Resistance"),
i18n(
"Resistance"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
25 i18nc(
"electrical resistance unit symbol",
"YΩ"),
26 i18nc(
"unit description in lists",
"yottaohms"),
27 i18nc(
"unit synonyms for matching user input",
"yottaohm;yottaohms;YΩ"),
29 ki18nc(
"amount in units (real)",
"%1 yottaohms"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottaohm",
"%1 yottaohms")));
32 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
35 i18nc(
"electrical resistance unit symbol",
"ZΩ"),
36 i18nc(
"unit description in lists",
"zettaohms"),
37 i18nc(
"unit synonyms for matching user input",
"zettaohm;zettaohms;ZΩ"),
39 ki18nc(
"amount in units (real)",
"%1 zettaohms"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettaohm",
"%1 zettaohms")));
42 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
45 i18nc(
"electrical resistance unit symbol",
"EΩ"),
46 i18nc(
"unit description in lists",
"exaohms"),
47 i18nc(
"unit synonyms for matching user input",
"exaohm;exaohms;EΩ"),
49 ki18nc(
"amount in units (real)",
"%1 exaohms"),
50 ki18ncp(
"amount in units (integer)",
"%1 exaohm",
"%1 exaohms")));
52 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
55 i18nc(
"electrical resistance unit symbol",
"PΩ"),
56 i18nc(
"unit description in lists",
"petaohms"),
57 i18nc(
"unit synonyms for matching user input",
"petaohm;petaohms;PΩ"),
59 ki18nc(
"amount in units (real)",
"%1 petaohms"),
60 ki18ncp(
"amount in units (integer)",
"%1 petaohm",
"%1 petaohms")));
62 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
65 i18nc(
"electrical resistance unit symbol",
"TΩ"),
66 i18nc(
"unit description in lists",
"teraohms"),
67 i18nc(
"unit synonyms for matching user input",
"teraohm;teraohms;TΩ"),
69 ki18nc(
"amount in units (real)",
"%1 teraohms"),
70 ki18ncp(
"amount in units (integer)",
"%1 teraohm",
"%1 teraohms")));
72 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
75 i18nc(
"electrical resistance unit symbol",
"GΩ"),
76 i18nc(
"unit description in lists",
"gigaohms"),
77 i18nc(
"unit synonyms for matching user input",
"gigaohm;gigaohms;GΩ"),
79 ki18nc(
"amount in units (real)",
"%1 gigaohms"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigaohm",
"%1 gigaohms")));
82 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
85 i18nc(
"electrical resistance unit symbol",
"MΩ"),
86 i18nc(
"unit description in lists",
"megaohms"),
87 i18nc(
"unit synonyms for matching user input",
"megaohm;megaohms;MΩ"),
89 ki18nc(
"amount in units (real)",
"%1 megaohms"),
90 ki18ncp(
"amount in units (integer)",
"%1 megaohm",
"%1 megaohms")));
92 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
95 i18nc(
"electrical resistance unit symbol",
"kΩ"),
96 i18nc(
"unit description in lists",
"kiloohms"),
97 i18nc(
"unit synonyms for matching user input",
"kiloohm;kiloohms;kΩ"),
99 ki18nc(
"amount in units (real)",
"%1 kiloohms"),
100 ki18ncp(
"amount in units (integer)",
"%1 kiloohm",
"%1 kiloohms")));
102 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
105 i18nc(
"electrical resistance unit symbol",
"hΩ"),
106 i18nc(
"unit description in lists",
"hectoohms"),
107 i18nc(
"unit synonyms for matching user input",
"hectoohm;hectoohms;hΩ"),
109 ki18nc(
"amount in units (real)",
"%1 hectoohms"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectoohm",
"%1 hectoohms")));
112 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
115 i18nc(
"electrical resistance unit symbol",
"daΩ"),
116 i18nc(
"unit description in lists",
"decaohms"),
117 i18nc(
"unit synonyms for matching user input",
"decaohm;decaohms;daΩ"),
119 ki18nc(
"amount in units (real)",
"%1 decaohms"),
120 ki18ncp(
"amount in units (integer)",
"%1 decaohm",
"%1 decaohms")));
122 d->addDefaultUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
125 i18nc(
"electrical resistance unit symbol",
"Ω"),
126 i18nc(
"unit description in lists",
"ohms"),
127 i18nc(
"unit synonyms for matching user input",
"ohm;ohms;Ω"),
129 ki18nc(
"amount in units (real)",
"%1 ohms"),
130 ki18ncp(
"amount in units (integer)",
"%1 ohm",
"%1 ohms")));
132 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
135 i18nc(
"electrical resistance unit symbol",
"dΩ"),
136 i18nc(
"unit description in lists",
"deciohms"),
137 i18nc(
"unit synonyms for matching user input",
"deciohm;deciohms;dΩ"),
139 ki18nc(
"amount in units (real)",
"%1 deciohms"),
140 ki18ncp(
"amount in units (integer)",
"%1 deciohm",
"%1 deciohms")));
142 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
145 i18nc(
"electrical resistance unit symbol",
"cΩ"),
146 i18nc(
"unit description in lists",
"centiohms"),
147 i18nc(
"unit synonyms for matching user input",
"centiohm;centiohms;cΩ"),
149 ki18nc(
"amount in units (real)",
"%1 centiohms"),
150 ki18ncp(
"amount in units (integer)",
"%1 centiohm",
"%1 centiohms")));
152 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
155 i18nc(
"electrical resistance unit symbol",
"mΩ"),
156 i18nc(
"unit description in lists",
"milliohms"),
157 i18nc(
"unit synonyms for matching user input",
"milliohm;milliohms;mΩ"),
159 ki18nc(
"amount in units (real)",
"%1 milliohms"),
160 ki18ncp(
"amount in units (integer)",
"%1 milliohm",
"%1 milliohms")));
162 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
165 i18nc(
"electrical resistance unit symbol",
"µΩ"),
166 i18nc(
"unit description in lists",
"microohms"),
167 i18nc(
"unit synonyms for matching user input",
"microohm;microohms;µΩ;uΩ"),
169 ki18nc(
"amount in units (real)",
"%1 microohms"),
170 ki18ncp(
"amount in units (integer)",
"%1 microohm",
"%1 microohms")));
172 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
175 i18nc(
"electrical resistance unit symbol",
"nΩ"),
176 i18nc(
"unit description in lists",
"nanoohms"),
177 i18nc(
"unit synonyms for matching user input",
"nanoohm;nanoohms;nΩ"),
179 ki18nc(
"amount in units (real)",
"%1 nanoohms"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanoohm",
"%1 nanoohms")));
182 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
185 i18nc(
"electrical resistance unit symbol",
"pΩ"),
186 i18nc(
"unit description in lists",
"picoohms"),
187 i18nc(
"unit synonyms for matching user input",
"picoohm;picoohms;pΩ"),
189 ki18nc(
"amount in units (real)",
"%1 picoohms"),
190 ki18ncp(
"amount in units (integer)",
"%1 picoohm",
"%1 picoohms")));
192 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
195 i18nc(
"electrical resistance unit symbol",
"fΩ"),
196 i18nc(
"unit description in lists",
"femtoohms"),
197 i18nc(
"unit synonyms for matching user input",
"femtoohm;femtoohms;fΩ"),
199 ki18nc(
"amount in units (real)",
"%1 femtoohms"),
200 ki18ncp(
"amount in units (integer)",
"%1 femtoohm",
"%1 femtoohms")));
202 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
205 i18nc(
"electrical resistance unit symbol",
"aΩ"),
206 i18nc(
"unit description in lists",
"attoohms"),
207 i18nc(
"unit synonyms for matching user input",
"attoohm;attoohms;aΩ"),
209 ki18nc(
"amount in units (real)",
"%1 attoohms"),
210 ki18ncp(
"amount in units (integer)",
"%1 attoohm",
"%1 attoohms")));
212 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
215 i18nc(
"electrical resistance unit symbol",
"zΩ"),
216 i18nc(
"unit description in lists",
"zeptoohms"),
217 i18nc(
"unit synonyms for matching user input",
"zeptoohm;zeptoohms;zΩ"),
219 ki18nc(
"amount in units (real)",
"%1 zeptoohms"),
220 ki18ncp(
"amount in units (integer)",
"%1 zeptoohm",
"%1 zeptoohms")));
222 d->addUnit(UnitPrivate::makeUnit(ElectricalResistanceCategory,
225 i18nc(
"electrical resistance unit symbol",
"yΩ"),
226 i18nc(
"unit description in lists",
"yoctoohms"),
227 i18nc(
"unit synonyms for matching user input",
"yoctoohm;yoctoohms;yΩ"),
229 ki18nc(
"amount in units (real)",
"%1 yoctoohms"),
230 ki18ncp(
"amount in units (integer)",
"%1 yoctoohm",
"%1 yoctoohms")));
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KLocalizedString KI18N_EXPORT ki18ncp(const char *context, const char *singular, const char *plural)
KLocalizedString KI18N_EXPORT ki18nc(const char *context, const char *text)
QString i18n(const char *text, const TYPE &arg...)