9#include "electrical_current_p.h"
12#include <KLocalizedString>
14namespace KUnitConversion
16UnitCategory ElectricalCurrent::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(ElectricalCurrentCategory,
i18n(
"ElectricalCurrent"),
i18n(
"ElectricalCurrent"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
25 i18nc(
"electrical current unit symbol",
"YA"),
26 i18nc(
"unit description in lists",
"yottaamperes"),
27 i18nc(
"unit synonyms for matching user input",
"yottaampere;yottaamperes;YA"),
29 ki18nc(
"amount in units (real)",
"%1 yottaamperes"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottaampere",
"%1 yottaamperes")));
32 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
35 i18nc(
"electrical current unit symbol",
"ZA"),
36 i18nc(
"unit description in lists",
"zettaamperes"),
37 i18nc(
"unit synonyms for matching user input",
"zettaampere;zettaamperes;ZA"),
39 ki18nc(
"amount in units (real)",
"%1 zettaamperes"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettaampere",
"%1 zettaamperes")));
42 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
45 i18nc(
"electrical current unit symbol",
"EA"),
46 i18nc(
"unit description in lists",
"exaamperes"),
47 i18nc(
"unit synonyms for matching user input",
"exaampere;exaamperes;EA"),
49 ki18nc(
"amount in units (real)",
"%1 exaamperes"),
50 ki18ncp(
"amount in units (integer)",
"%1 exaampere",
"%1 exaamperes")));
52 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
55 i18nc(
"electrical current unit symbol",
"PA"),
56 i18nc(
"unit description in lists",
"petaamperes"),
57 i18nc(
"unit synonyms for matching user input",
"petaampere;petaamperes;PA"),
59 ki18nc(
"amount in units (real)",
"%1 petaamperes"),
60 ki18ncp(
"amount in units (integer)",
"%1 petaampere",
"%1 petaamperes")));
62 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
65 i18nc(
"electrical current unit symbol",
"TA"),
66 i18nc(
"unit description in lists",
"teraamperes"),
67 i18nc(
"unit synonyms for matching user input",
"teraampere;teraamperes;TA"),
69 ki18nc(
"amount in units (real)",
"%1 teraamperes"),
70 ki18ncp(
"amount in units (integer)",
"%1 teraampere",
"%1 teraamperes")));
72 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
75 i18nc(
"electrical current unit symbol",
"GA"),
76 i18nc(
"unit description in lists",
"gigaamperes"),
77 i18nc(
"unit synonyms for matching user input",
"gigaampere;gigaamperes;GA"),
79 ki18nc(
"amount in units (real)",
"%1 gigaamperes"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigaampere",
"%1 gigaamperes")));
82 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
85 i18nc(
"electrical current unit symbol",
"MA"),
86 i18nc(
"unit description in lists",
"megaamperes"),
87 i18nc(
"unit synonyms for matching user input",
"megaampere;megaamperes;MA"),
89 ki18nc(
"amount in units (real)",
"%1 megaamperes"),
90 ki18ncp(
"amount in units (integer)",
"%1 megaampere",
"%1 megaamperes")));
92 d->addCommonUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
95 i18nc(
"electrical current unit symbol",
"kA"),
96 i18nc(
"unit description in lists",
"kiloamperes"),
97 i18nc(
"unit synonyms for matching user input",
"kiloampere;kiloamperes;kA"),
99 ki18nc(
"amount in units (real)",
"%1 kiloamperes"),
100 ki18ncp(
"amount in units (integer)",
"%1 kiloampere",
"%1 kiloamperes")));
102 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
105 i18nc(
"electrical current unit symbol",
"hA"),
106 i18nc(
"unit description in lists",
"hectoamperes"),
107 i18nc(
"unit synonyms for matching user input",
"hectoampere;hectoamperes;hA"),
109 ki18nc(
"amount in units (real)",
"%1 hectoamperes"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectoampere",
"%1 hectoamperes")));
112 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
115 i18nc(
"electrical current unit symbol",
"daA"),
116 i18nc(
"unit description in lists",
"decaamperes"),
117 i18nc(
"unit synonyms for matching user input",
"decaampere;decaamperes;daA"),
119 ki18nc(
"amount in units (real)",
"%1 decaamperes"),
120 ki18ncp(
"amount in units (integer)",
"%1 decaampere",
"%1 decaamperes")));
122 d->addDefaultUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
125 i18nc(
"electrical current unit symbol",
"A"),
126 i18nc(
"unit description in lists",
"amperes"),
127 i18nc(
"unit synonyms for matching user input",
"amp;amps;ampere;amperes;A"),
129 ki18nc(
"amount in units (real)",
"%1 amperes"),
130 ki18ncp(
"amount in units (integer)",
"%1 ampere",
"%1 amperes")));
132 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
135 i18nc(
"electrical current unit symbol",
"dA"),
136 i18nc(
"unit description in lists",
"deciamperes"),
137 i18nc(
"unit synonyms for matching user input",
"deciampere;deciamperes;dA"),
139 ki18nc(
"amount in units (real)",
"%1 deciamperes"),
140 ki18ncp(
"amount in units (integer)",
"%1 deciampere",
"%1 deciamperes")));
142 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
145 i18nc(
"electrical current unit symbol",
"cA"),
146 i18nc(
"unit description in lists",
"centiamperes"),
147 i18nc(
"unit synonyms for matching user input",
"centiampere;centiamperes;cA"),
149 ki18nc(
"amount in units (real)",
"%1 centiamperes"),
150 ki18ncp(
"amount in units (integer)",
"%1 centiampere",
"%1 centiamperes")));
152 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
155 i18nc(
"electrical current unit symbol",
"mA"),
156 i18nc(
"unit description in lists",
"milliamperes"),
157 i18nc(
"unit synonyms for matching user input",
"milliamp;milliamps;milliampere;milliamperes;mA"),
159 ki18nc(
"amount in units (real)",
"%1 milliamperes"),
160 ki18ncp(
"amount in units (integer)",
"%1 milliampere",
"%1 milliamperes")));
162 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
165 i18nc(
"electrical current unit symbol",
"µA"),
166 i18nc(
"unit description in lists",
"microamperes"),
167 i18nc(
"unit synonyms for matching user input",
"microamp;microamps;microampere;microamperes;µA;uA"),
169 ki18nc(
"amount in units (real)",
"%1 microamperes"),
170 ki18ncp(
"amount in units (integer)",
"%1 microampere",
"%1 microamperes")));
172 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
175 i18nc(
"electrical current unit symbol",
"nA"),
176 i18nc(
"unit description in lists",
"nanoamperes"),
177 i18nc(
"unit synonyms for matching user input",
"nanoamp;nanoamps;nanoampere;nanoamperes;nA"),
179 ki18nc(
"amount in units (real)",
"%1 nanoamperes"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanoampere",
"%1 nanoamperes")));
182 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
185 i18nc(
"electrical current unit symbol",
"pA"),
186 i18nc(
"unit description in lists",
"picoamperes"),
187 i18nc(
"unit synonyms for matching user input",
"picoamp;picoamps;picoampere;picoamperes;pA"),
189 ki18nc(
"amount in units (real)",
"%1 picoamperes"),
190 ki18ncp(
"amount in units (integer)",
"%1 picoampere",
"%1 picoamperes")));
192 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
195 i18nc(
"electrical current unit symbol",
"fA"),
196 i18nc(
"unit description in lists",
"femtoamperes"),
197 i18nc(
"unit synonyms for matching user input",
"femtoampere;femtoamperes;fA"),
199 ki18nc(
"amount in units (real)",
"%1 femtoamperes"),
200 ki18ncp(
"amount in units (integer)",
"%1 femtoampere",
"%1 femtoamperes")));
202 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
205 i18nc(
"electrical current unit symbol",
"aA"),
206 i18nc(
"unit description in lists",
"attoamperes"),
207 i18nc(
"unit synonyms for matching user input",
"attoampere;attoamperes;aA"),
209 ki18nc(
"amount in units (real)",
"%1 attoamperes"),
210 ki18ncp(
"amount in units (integer)",
"%1 attoampere",
"%1 attoamperes")));
212 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
215 i18nc(
"electrical current unit symbol",
"zA"),
216 i18nc(
"unit description in lists",
"zeptoamperes"),
217 i18nc(
"unit synonyms for matching user input",
"zeptoampere;zeptoamperes;zA"),
219 ki18nc(
"amount in units (real)",
"%1 zeptoamperes"),
220 ki18ncp(
"amount in units (integer)",
"%1 zeptoampere",
"%1 zeptoamperes")));
222 d->addUnit(UnitPrivate::makeUnit(ElectricalCurrentCategory,
225 i18nc(
"electrical current unit symbol",
"yA"),
226 i18nc(
"unit description in lists",
"yoctoamperes"),
227 i18nc(
"unit synonyms for matching user input",
"yoctoampere;yoctoamperes;yA"),
229 ki18nc(
"amount in units (real)",
"%1 yoctoamperes"),
230 ki18ncp(
"amount in units (integer)",
"%1 yoctoampere",
"%1 yoctoamperes")));
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...)