8#include "frequency_p.h"
11#include <KLocalizedString>
13namespace KUnitConversion
16UnitCategory Frequency::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(FrequencyCategory,
i18n(
"Frequency"),
i18n(
"Frequency"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
25 i18nc(
"frequency unit symbol",
"YHz"),
26 i18nc(
"unit description in lists",
"yottahertzs"),
27 i18nc(
"unit synonyms for matching user input",
"yottahertz;yottahertzs;YHz"),
29 ki18nc(
"amount in units (real)",
"%1 yottahertzs"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottahertz",
"%1 yottahertzs")));
32 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
35 i18nc(
"frequency unit symbol",
"ZHz"),
36 i18nc(
"unit description in lists",
"zettahertzs"),
37 i18nc(
"unit synonyms for matching user input",
"zettahertz;zettahertzs;ZHz"),
39 ki18nc(
"amount in units (real)",
"%1 zettahertzs"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettahertz",
"%1 zettahertzs")));
42 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
45 i18nc(
"frequency unit symbol",
"EHz"),
46 i18nc(
"unit description in lists",
"exahertzs"),
47 i18nc(
"unit synonyms for matching user input",
"exahertz;exahertzs;EHz"),
49 ki18nc(
"amount in units (real)",
"%1 exahertzs"),
50 ki18ncp(
"amount in units (integer)",
"%1 exahertz",
"%1 exahertzs")));
52 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
55 i18nc(
"frequency unit symbol",
"PHz"),
56 i18nc(
"unit description in lists",
"petahertzs"),
57 i18nc(
"unit synonyms for matching user input",
"petahertz;petahertzs;PHz"),
59 ki18nc(
"amount in units (real)",
"%1 petahertzs"),
60 ki18ncp(
"amount in units (integer)",
"%1 petahertz",
"%1 petahertzs")));
62 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
65 i18nc(
"frequency unit symbol",
"THz"),
66 i18nc(
"unit description in lists",
"terahertzs"),
67 i18nc(
"unit synonyms for matching user input",
"terahertz;terahertzs;THz"),
69 ki18nc(
"amount in units (real)",
"%1 terahertzs"),
70 ki18ncp(
"amount in units (integer)",
"%1 terahertz",
"%1 terahertzs")));
72 d->addCommonUnit(UnitPrivate::makeUnit(FrequencyCategory,
75 i18nc(
"frequency unit symbol",
"GHz"),
76 i18nc(
"unit description in lists",
"gigahertzs"),
77 i18nc(
"unit synonyms for matching user input",
"gigahertz;gigahertzs;GHz"),
79 ki18nc(
"amount in units (real)",
"%1 gigahertzs"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigahertz",
"%1 gigahertzs")));
82 d->addCommonUnit(UnitPrivate::makeUnit(FrequencyCategory,
85 i18nc(
"frequency unit symbol",
"MHz"),
86 i18nc(
"unit description in lists",
"megahertzs"),
87 i18nc(
"unit synonyms for matching user input",
"megahertz;megahertzs;MHz"),
89 ki18nc(
"amount in units (real)",
"%1 megahertzs"),
90 ki18ncp(
"amount in units (integer)",
"%1 megahertz",
"%1 megahertzs")));
92 d->addCommonUnit(UnitPrivate::makeUnit(FrequencyCategory,
95 i18nc(
"frequency unit symbol",
"kHz"),
96 i18nc(
"unit description in lists",
"kilohertzs"),
97 i18nc(
"unit synonyms for matching user input",
"kilohertz;kilohertzs;kHz"),
99 ki18nc(
"amount in units (real)",
"%1 kilohertzs"),
100 ki18ncp(
"amount in units (integer)",
"%1 kilohertz",
"%1 kilohertzs")));
102 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
105 i18nc(
"frequency unit symbol",
"hHz"),
106 i18nc(
"unit description in lists",
"hectohertzs"),
107 i18nc(
"unit synonyms for matching user input",
"hectohertz;hectohertzs;hHz"),
109 ki18nc(
"amount in units (real)",
"%1 hectohertzs"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectohertz",
"%1 hectohertzs")));
112 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
115 i18nc(
"frequency unit symbol",
"daHz"),
116 i18nc(
"unit description in lists",
"decahertzs"),
117 i18nc(
"unit synonyms for matching user input",
"decahertz;decahertzs;daHz"),
119 ki18nc(
"amount in units (real)",
"%1 decahertzs"),
120 ki18ncp(
"amount in units (integer)",
"%1 decahertz",
"%1 decahertzs")));
122 d->addDefaultUnit(UnitPrivate::makeUnit(FrequencyCategory,
125 i18nc(
"frequency unit symbol",
"Hz"),
126 i18nc(
"unit description in lists",
"hertzs"),
127 i18nc(
"unit synonyms for matching user input",
"hertz;hertzs;Hz"),
129 ki18nc(
"amount in units (real)",
"%1 hertzs"),
130 ki18ncp(
"amount in units (integer)",
"%1 hertz",
"%1 hertzs")));
132 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
135 i18nc(
"frequency unit symbol",
"dHz"),
136 i18nc(
"unit description in lists",
"decihertzs"),
137 i18nc(
"unit synonyms for matching user input",
"decihertz;decihertzs;dHz"),
139 ki18nc(
"amount in units (real)",
"%1 decihertzs"),
140 ki18ncp(
"amount in units (integer)",
"%1 decihertz",
"%1 decihertzs")));
142 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
145 i18nc(
"frequency unit symbol",
"cHz"),
146 i18nc(
"unit description in lists",
"centihertzs"),
147 i18nc(
"unit synonyms for matching user input",
"centihertz;centihertzs;cHz"),
149 ki18nc(
"amount in units (real)",
"%1 centihertzs"),
150 ki18ncp(
"amount in units (integer)",
"%1 centihertz",
"%1 centihertzs")));
152 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
155 i18nc(
"frequency unit symbol",
"mHz"),
156 i18nc(
"unit description in lists",
"millihertzs"),
157 i18nc(
"unit synonyms for matching user input",
"millihertz;millihertzs;mHz"),
159 ki18nc(
"amount in units (real)",
"%1 millihertzs"),
160 ki18ncp(
"amount in units (integer)",
"%1 millihertz",
"%1 millihertzs")));
162 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
165 i18nc(
"frequency unit symbol",
"µHz"),
166 i18nc(
"unit description in lists",
"microhertzs"),
167 i18nc(
"unit synonyms for matching user input",
"microhertz;microhertzs;µHz;uHz"),
169 ki18nc(
"amount in units (real)",
"%1 microhertzs"),
170 ki18ncp(
"amount in units (integer)",
"%1 microhertz",
"%1 microhertzs")));
172 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
175 i18nc(
"frequency unit symbol",
"nHz"),
176 i18nc(
"unit description in lists",
"nanohertzs"),
177 i18nc(
"unit synonyms for matching user input",
"nanohertz;nanohertzs;nHz"),
179 ki18nc(
"amount in units (real)",
"%1 nanohertzs"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanohertz",
"%1 nanohertzs")));
182 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
185 i18nc(
"frequency unit symbol",
"pHz"),
186 i18nc(
"unit description in lists",
"picohertzs"),
187 i18nc(
"unit synonyms for matching user input",
"picohertz;picohertzs;pHz"),
189 ki18nc(
"amount in units (real)",
"%1 picohertzs"),
190 ki18ncp(
"amount in units (integer)",
"%1 picohertz",
"%1 picohertzs")));
192 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
195 i18nc(
"frequency unit symbol",
"fHz"),
196 i18nc(
"unit description in lists",
"femtohertzs"),
197 i18nc(
"unit synonyms for matching user input",
"femtohertz;femtohertzs;fHz"),
199 ki18nc(
"amount in units (real)",
"%1 femtohertzs"),
200 ki18ncp(
"amount in units (integer)",
"%1 femtohertz",
"%1 femtohertzs")));
202 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
205 i18nc(
"frequency unit symbol",
"aHz"),
206 i18nc(
"unit description in lists",
"attohertzs"),
207 i18nc(
"unit synonyms for matching user input",
"attohertz;attohertzs;aHz"),
209 ki18nc(
"amount in units (real)",
"%1 attohertzs"),
210 ki18ncp(
"amount in units (integer)",
"%1 attohertz",
"%1 attohertzs")));
212 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
215 i18nc(
"frequency unit symbol",
"zHz"),
216 i18nc(
"unit description in lists",
"zeptohertzs"),
217 i18nc(
"unit synonyms for matching user input",
"zeptohertz;zeptohertzs;zHz"),
219 ki18nc(
"amount in units (real)",
"%1 zeptohertzs"),
220 ki18ncp(
"amount in units (integer)",
"%1 zeptohertz",
"%1 zeptohertzs")));
222 d->addUnit(UnitPrivate::makeUnit(FrequencyCategory,
225 i18nc(
"frequency unit symbol",
"yHz"),
226 i18nc(
"unit description in lists",
"yoctohertzs"),
227 i18nc(
"unit synonyms for matching user input",
"yoctohertz;yoctohertzs;yHz"),
229 ki18nc(
"amount in units (real)",
"%1 yoctohertzs"),
230 ki18ncp(
"amount in units (integer)",
"%1 yoctohertz",
"%1 yoctohertzs")));
232 d->addCommonUnit(UnitPrivate::makeUnit(FrequencyCategory,
235 i18nc(
"frequency unit symbol",
"RPM"),
236 i18nc(
"unit description in lists",
"revolutions per minute"),
237 i18nc(
"unit synonyms for matching user input",
"revolutions per minute;revolution per minute;RPM"),
239 ki18nc(
"amount in units (real)",
"%1 revolutions per minute"),
240 ki18ncp(
"amount in units (integer)",
"%1 revolution per minute",
"%1 revolutions per minute")));
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...)