12#include <KLocalizedString>
14namespace KUnitConversion
16UnitCategory Voltage::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(VoltageCategory,
i18n(
"Voltage"),
i18n(
"Voltage"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
25 i18nc(
"voltage unit symbol",
"YV"),
26 i18nc(
"unit description in lists",
"yottavolts"),
27 i18nc(
"unit synonyms for matching user input",
"yottavolt;yottavolts;YV"),
29 ki18nc(
"amount in units (real)",
"%1 yottavolts"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottavolt",
"%1 yottavolts")));
32 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
35 i18nc(
"voltage unit symbol",
"ZV"),
36 i18nc(
"unit description in lists",
"zettavolts"),
37 i18nc(
"unit synonyms for matching user input",
"zettavolt;zettavolts;ZV"),
39 ki18nc(
"amount in units (real)",
"%1 zettavolts"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettavolt",
"%1 zettavolts")));
42 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
45 i18nc(
"voltage unit symbol",
"EV"),
46 i18nc(
"unit description in lists",
"exavolts"),
47 i18nc(
"unit synonyms for matching user input",
"exavolt;exavolts;EV"),
49 ki18nc(
"amount in units (real)",
"%1 exavolts"),
50 ki18ncp(
"amount in units (integer)",
"%1 exavolt",
"%1 exavolts")));
52 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
55 i18nc(
"voltage unit symbol",
"PV"),
56 i18nc(
"unit description in lists",
"petavolts"),
57 i18nc(
"unit synonyms for matching user input",
"petavolt;petavolts;PV"),
59 ki18nc(
"amount in units (real)",
"%1 petavolts"),
60 ki18ncp(
"amount in units (integer)",
"%1 petavolt",
"%1 petavolts")));
62 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
65 i18nc(
"voltage unit symbol",
"TV"),
66 i18nc(
"unit description in lists",
"teravolts"),
67 i18nc(
"unit synonyms for matching user input",
"teravolt;teravolts;TV"),
69 ki18nc(
"amount in units (real)",
"%1 teravolts"),
70 ki18ncp(
"amount in units (integer)",
"%1 teravolt",
"%1 teravolts")));
72 d->addCommonUnit(UnitPrivate::makeUnit(VoltageCategory,
75 i18nc(
"voltage unit symbol",
"GV"),
76 i18nc(
"unit description in lists",
"gigavolts"),
77 i18nc(
"unit synonyms for matching user input",
"gigavolt;gigavolts;GV"),
79 ki18nc(
"amount in units (real)",
"%1 gigavolts"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigavolt",
"%1 gigavolts")));
82 d->addCommonUnit(UnitPrivate::makeUnit(VoltageCategory,
85 i18nc(
"voltage unit symbol",
"MV"),
86 i18nc(
"unit description in lists",
"megavolts"),
87 i18nc(
"unit synonyms for matching user input",
"megavolt;megavolts;MV"),
89 ki18nc(
"amount in units (real)",
"%1 megavolts"),
90 ki18ncp(
"amount in units (integer)",
"%1 megavolt",
"%1 megavolts")));
92 d->addCommonUnit(UnitPrivate::makeUnit(VoltageCategory,
95 i18nc(
"voltage unit symbol",
"kV"),
96 i18nc(
"unit description in lists",
"kilovolts"),
97 i18nc(
"unit synonyms for matching user input",
"kilovolt;kilovolts;kV"),
99 ki18nc(
"amount in units (real)",
"%1 kilovolts"),
100 ki18ncp(
"amount in units (integer)",
"%1 kilovolt",
"%1 kilovolts")));
102 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
105 i18nc(
"voltage unit symbol",
"hV"),
106 i18nc(
"unit description in lists",
"hectovolts"),
107 i18nc(
"unit synonyms for matching user input",
"hectovolt;hectovolts;hV"),
109 ki18nc(
"amount in units (real)",
"%1 hectovolts"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectovolt",
"%1 hectovolts")));
112 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
115 i18nc(
"voltage unit symbol",
"daV"),
116 i18nc(
"unit description in lists",
"decavolts"),
117 i18nc(
"unit synonyms for matching user input",
"decavolt;decavolts;daV"),
119 ki18nc(
"amount in units (real)",
"%1 decavolts"),
120 ki18ncp(
"amount in units (integer)",
"%1 decavolt",
"%1 decavolts")));
122 d->addDefaultUnit(UnitPrivate::makeUnit(VoltageCategory,
125 i18nc(
"voltage unit symbol",
"V"),
126 i18nc(
"unit description in lists",
"volts"),
127 i18nc(
"unit synonyms for matching user input",
"volt;volts;V"),
129 ki18nc(
"amount in units (real)",
"%1 volts"),
130 ki18ncp(
"amount in units (integer)",
"%1 volt",
"%1 volts")));
132 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
135 i18nc(
"voltage unit symbol",
"dV"),
136 i18nc(
"unit description in lists",
"decivolts"),
137 i18nc(
"unit synonyms for matching user input",
"decivolt;decivolts;dV"),
139 ki18nc(
"amount in units (real)",
"%1 decivolts"),
140 ki18ncp(
"amount in units (integer)",
"%1 decivolt",
"%1 decivolts")));
142 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
145 i18nc(
"voltage unit symbol",
"cV"),
146 i18nc(
"unit description in lists",
"centivolts"),
147 i18nc(
"unit synonyms for matching user input",
"centivolt;centivolts;cV"),
149 ki18nc(
"amount in units (real)",
"%1 centivolts"),
150 ki18ncp(
"amount in units (integer)",
"%1 centivolt",
"%1 centivolts")));
152 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
155 i18nc(
"voltage unit symbol",
"mV"),
156 i18nc(
"unit description in lists",
"millivolts"),
157 i18nc(
"unit synonyms for matching user input",
"millivolt;millivolts;mV"),
159 ki18nc(
"amount in units (real)",
"%1 millivolts"),
160 ki18ncp(
"amount in units (integer)",
"%1 millivolt",
"%1 millivolts")));
162 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
165 i18nc(
"voltage unit symbol",
"µV"),
166 i18nc(
"unit description in lists",
"microvolts"),
167 i18nc(
"unit synonyms for matching user input",
"microvolt;microvolts;µV;uV"),
169 ki18nc(
"amount in units (real)",
"%1 microvolts"),
170 ki18ncp(
"amount in units (integer)",
"%1 microvolt",
"%1 microvolts")));
172 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
175 i18nc(
"voltage unit symbol",
"nV"),
176 i18nc(
"unit description in lists",
"nanovolts"),
177 i18nc(
"unit synonyms for matching user input",
"nanovolt;nanovolts;nV"),
179 ki18nc(
"amount in units (real)",
"%1 nanovolts"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanovolt",
"%1 nanovolts")));
182 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
185 i18nc(
"voltage unit symbol",
"pV"),
186 i18nc(
"unit description in lists",
"picovolts"),
187 i18nc(
"unit synonyms for matching user input",
"picovolt;picovolts;pV"),
189 ki18nc(
"amount in units (real)",
"%1 picovolts"),
190 ki18ncp(
"amount in units (integer)",
"%1 picovolt",
"%1 picovolts")));
192 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
195 i18nc(
"voltage unit symbol",
"fV"),
196 i18nc(
"unit description in lists",
"femtovolts"),
197 i18nc(
"unit synonyms for matching user input",
"femtovolt;femtovolts;fV"),
199 ki18nc(
"amount in units (real)",
"%1 femtovolts"),
200 ki18ncp(
"amount in units (integer)",
"%1 femtovolt",
"%1 femtovolts")));
202 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
205 i18nc(
"voltage unit symbol",
"aV"),
206 i18nc(
"unit description in lists",
"attovolts"),
207 i18nc(
"unit synonyms for matching user input",
"attovolt;attovolts;aV"),
209 ki18nc(
"amount in units (real)",
"%1 attovolts"),
210 ki18ncp(
"amount in units (integer)",
"%1 attovolt",
"%1 attovolts")));
212 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
215 i18nc(
"voltage unit symbol",
"zV"),
216 i18nc(
"unit description in lists",
"zeptovolts"),
217 i18nc(
"unit synonyms for matching user input",
"zeptovolt;zeptovolts;zV"),
219 ki18nc(
"amount in units (real)",
"%1 zeptovolts"),
220 ki18ncp(
"amount in units (integer)",
"%1 zeptovolt",
"%1 zeptovolts")));
222 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
225 i18nc(
"voltage unit symbol",
"yV"),
226 i18nc(
"unit description in lists",
"yoctovolts"),
227 i18nc(
"unit synonyms for matching user input",
"yoctovolt;yoctovolts;yV"),
229 ki18nc(
"amount in units (real)",
"%1 yoctovolts"),
230 ki18ncp(
"amount in units (integer)",
"%1 yoctovolt",
"%1 yoctovolts")));
232 d->addUnit(UnitPrivate::makeUnit(VoltageCategory,
235 i18nc(
"voltage unit symbol",
"stV"),
236 i18nc(
"unit description in lists",
"statvolts"),
237 i18nc(
"unit synonyms for matching user input",
"statvolt;statvolts;stV"),
239 ki18nc(
"amount in units (real)",
"%1 statvolts"),
240 ki18ncp(
"amount in units (integer)",
"%1 statvolt",
"%1 statvolts")));
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...)