12#include <KLocalizedString>
14namespace KUnitConversion
16UnitCategory Mass::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(MassCategory,
i18n(
"Mass"),
i18n(
"Mass"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(MassCategory,
25 i18nc(
"mass unit symbol",
"Yg"),
26 i18nc(
"unit description in lists",
"yottagrams"),
27 i18nc(
"unit synonyms for matching user input",
"yottagram;yottagrams;Yg"),
29 ki18nc(
"amount in units (real)",
"%1 yottagrams"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottagram",
"%1 yottagrams")));
32 d->addUnit(UnitPrivate::makeUnit(MassCategory,
35 i18nc(
"mass unit symbol",
"Zg"),
36 i18nc(
"unit description in lists",
"zettagrams"),
37 i18nc(
"unit synonyms for matching user input",
"zettagram;zettagrams;Zg"),
39 ki18nc(
"amount in units (real)",
"%1 zettagrams"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettagram",
"%1 zettagrams")));
42 d->addUnit(UnitPrivate::makeUnit(MassCategory,
45 i18nc(
"mass unit symbol",
"Eg"),
46 i18nc(
"unit description in lists",
"exagrams"),
47 i18nc(
"unit synonyms for matching user input",
"exagram;exagrams;Eg"),
49 ki18nc(
"amount in units (real)",
"%1 exagrams"),
50 ki18ncp(
"amount in units (integer)",
"%1 exagram",
"%1 exagrams")));
52 d->addUnit(UnitPrivate::makeUnit(MassCategory,
55 i18nc(
"mass unit symbol",
"Pg"),
56 i18nc(
"unit description in lists",
"petagrams"),
57 i18nc(
"unit synonyms for matching user input",
"petagram;petagrams;Pg"),
59 ki18nc(
"amount in units (real)",
"%1 petagrams"),
60 ki18ncp(
"amount in units (integer)",
"%1 petagram",
"%1 petagrams")));
62 d->addUnit(UnitPrivate::makeUnit(MassCategory,
65 i18nc(
"mass unit symbol",
"Tg"),
66 i18nc(
"unit description in lists",
"teragrams"),
67 i18nc(
"unit synonyms for matching user input",
"teragram;teragrams;Tg"),
69 ki18nc(
"amount in units (real)",
"%1 teragrams"),
70 ki18ncp(
"amount in units (integer)",
"%1 teragram",
"%1 teragrams")));
72 d->addUnit(UnitPrivate::makeUnit(MassCategory,
75 i18nc(
"mass unit symbol",
"Gg"),
76 i18nc(
"unit description in lists",
"gigagrams"),
77 i18nc(
"unit synonyms for matching user input",
"gigagram;gigagrams;Gg"),
79 ki18nc(
"amount in units (real)",
"%1 gigagrams"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigagram",
"%1 gigagrams")));
82 d->addUnit(UnitPrivate::makeUnit(MassCategory,
85 i18nc(
"mass unit symbol",
"Mg"),
86 i18nc(
"unit description in lists",
"megagrams"),
87 i18nc(
"unit synonyms for matching user input",
"megagram;megagrams;Mg"),
89 ki18nc(
"amount in units (real)",
"%1 megagrams"),
90 ki18ncp(
"amount in units (integer)",
"%1 megagram",
"%1 megagrams")));
92 d->addDefaultUnit(UnitPrivate::makeUnit(MassCategory,
95 i18nc(
"mass unit symbol",
"kg"),
96 i18nc(
"unit description in lists",
"kilograms"),
97 i18nc(
"unit synonyms for matching user input",
"kilogram;kilograms;kg"),
99 ki18nc(
"amount in units (real)",
"%1 kilograms"),
100 ki18ncp(
"amount in units (integer)",
"%1 kilogram",
"%1 kilograms")));
102 d->addUnit(UnitPrivate::makeUnit(MassCategory,
105 i18nc(
"mass unit symbol",
"hg"),
106 i18nc(
"unit description in lists",
"hectograms"),
107 i18nc(
"unit synonyms for matching user input",
"hectogram;hectograms;hg"),
109 ki18nc(
"amount in units (real)",
"%1 hectograms"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectogram",
"%1 hectograms")));
112 d->addUnit(UnitPrivate::makeUnit(MassCategory,
115 i18nc(
"mass unit symbol",
"dag"),
116 i18nc(
"unit description in lists",
"decagrams"),
117 i18nc(
"unit synonyms for matching user input",
"decagram;decagrams;dag"),
119 ki18nc(
"amount in units (real)",
"%1 decagrams"),
120 ki18ncp(
"amount in units (integer)",
"%1 decagram",
"%1 decagrams")));
122 d->addCommonUnit(UnitPrivate::makeUnit(MassCategory,
125 i18nc(
"mass unit symbol",
"g"),
126 i18nc(
"unit description in lists",
"grams"),
127 i18nc(
"unit synonyms for matching user input",
"gram;grams;g"),
129 ki18nc(
"amount in units (real)",
"%1 grams"),
130 ki18ncp(
"amount in units (integer)",
"%1 gram",
"%1 grams")));
132 d->addUnit(UnitPrivate::makeUnit(MassCategory,
135 i18nc(
"mass unit symbol",
"dg"),
136 i18nc(
"unit description in lists",
"decigrams"),
137 i18nc(
"unit synonyms for matching user input",
"decigram;decigrams;dg"),
139 ki18nc(
"amount in units (real)",
"%1 decigrams"),
140 ki18ncp(
"amount in units (integer)",
"%1 decigram",
"%1 decigrams")));
142 d->addUnit(UnitPrivate::makeUnit(MassCategory,
145 i18nc(
"mass unit symbol",
"cg"),
146 i18nc(
"unit description in lists",
"centigrams"),
147 i18nc(
"unit synonyms for matching user input",
"centigram;centigrams;cg"),
149 ki18nc(
"amount in units (real)",
"%1 centigrams"),
150 ki18ncp(
"amount in units (integer)",
"%1 centigram",
"%1 centigrams")));
152 d->addCommonUnit(UnitPrivate::makeUnit(MassCategory,
155 i18nc(
"mass unit symbol",
"mg"),
156 i18nc(
"unit description in lists",
"milligrams"),
157 i18nc(
"unit synonyms for matching user input",
"milligram;milligrams;mg"),
159 ki18nc(
"amount in units (real)",
"%1 milligrams"),
160 ki18ncp(
"amount in units (integer)",
"%1 milligram",
"%1 milligrams")));
162 d->addUnit(UnitPrivate::makeUnit(MassCategory,
165 i18nc(
"mass unit symbol",
"µg"),
166 i18nc(
"unit description in lists",
"micrograms"),
167 i18nc(
"unit synonyms for matching user input",
"microgram;micrograms;µg;ug"),
169 ki18nc(
"amount in units (real)",
"%1 micrograms"),
170 ki18ncp(
"amount in units (integer)",
"%1 microgram",
"%1 micrograms")));
172 d->addUnit(UnitPrivate::makeUnit(MassCategory,
175 i18nc(
"mass unit symbol",
"ng"),
176 i18nc(
"unit description in lists",
"nanograms"),
177 i18nc(
"unit synonyms for matching user input",
"nanogram;nanograms;ng"),
179 ki18nc(
"amount in units (real)",
"%1 nanograms"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanogram",
"%1 nanograms")));
182 d->addUnit(UnitPrivate::makeUnit(MassCategory,
185 i18nc(
"mass unit symbol",
"pg"),
186 i18nc(
"unit description in lists",
"picograms"),
187 i18nc(
"unit synonyms for matching user input",
"picogram;picograms;pg"),
189 ki18nc(
"amount in units (real)",
"%1 picograms"),
190 ki18ncp(
"amount in units (integer)",
"%1 picogram",
"%1 picograms")));
192 d->addUnit(UnitPrivate::makeUnit(MassCategory,
195 i18nc(
"mass unit symbol",
"fg"),
196 i18nc(
"unit description in lists",
"femtograms"),
197 i18nc(
"unit synonyms for matching user input",
"femtogram;femtograms;fg"),
199 ki18nc(
"amount in units (real)",
"%1 femtograms"),
200 ki18ncp(
"amount in units (integer)",
"%1 femtogram",
"%1 femtograms")));
202 d->addUnit(UnitPrivate::makeUnit(MassCategory,
205 i18nc(
"mass unit symbol",
"ag"),
206 i18nc(
"unit description in lists",
"attograms"),
207 i18nc(
"unit synonyms for matching user input",
"attogram;attograms;ag"),
209 ki18nc(
"amount in units (real)",
"%1 attograms"),
210 ki18ncp(
"amount in units (integer)",
"%1 attogram",
"%1 attograms")));
212 d->addUnit(UnitPrivate::makeUnit(MassCategory,
215 i18nc(
"mass unit symbol",
"zg"),
216 i18nc(
"unit description in lists",
"zeptograms"),
217 i18nc(
"unit synonyms for matching user input",
"zeptogram;zeptograms;zg"),
219 ki18nc(
"amount in units (real)",
"%1 zeptograms"),
220 ki18ncp(
"amount in units (integer)",
"%1 zeptogram",
"%1 zeptograms")));
222 d->addUnit(UnitPrivate::makeUnit(MassCategory,
225 i18nc(
"mass unit symbol",
"yg"),
226 i18nc(
"unit description in lists",
"yoctograms"),
227 i18nc(
"unit synonyms for matching user input",
"yoctogram;yoctograms;yg"),
229 ki18nc(
"amount in units (real)",
"%1 yoctograms"),
230 ki18ncp(
"amount in units (integer)",
"%1 yoctogram",
"%1 yoctograms")));
232 d->addCommonUnit(UnitPrivate::makeUnit(MassCategory,
235 i18nc(
"mass unit symbol",
"t"),
236 i18nc(
"unit description in lists",
"tons"),
237 i18nc(
"unit synonyms for matching user input",
"ton;tons;t;tonne;tonnes"),
239 ki18nc(
"amount in units (real)",
"%1 tons"),
240 ki18ncp(
"amount in units (integer)",
"%1 ton",
"%1 tons")));
243 d->addUnit(UnitPrivate::makeUnit(MassCategory,
246 i18nc(
"mass unit symbol",
"CD"),
247 i18nc(
"unit description in lists",
"carats"),
248 i18nc(
"unit synonyms for matching user input",
"carat;carats;CD;ct"),
250 ki18nc(
"amount in units (real)",
"%1 carats"),
251 ki18ncp(
"amount in units (integer)",
"%1 carat",
"%1 carats")));
254 d->addCommonUnit(UnitPrivate::makeUnit(MassCategory,
257 i18nc(
"mass unit symbol",
"lb"),
258 i18nc(
"unit description in lists",
"pounds"),
259 i18nc(
"unit synonyms for matching user input",
"pound;pounds;lb;lbs"),
261 ki18nc(
"amount in units (real)",
"%1 pounds"),
262 ki18ncp(
"amount in units (integer)",
"%1 pound",
"%1 pounds")));
265 d->addCommonUnit(UnitPrivate::makeUnit(MassCategory,
268 i18nc(
"mass unit symbol",
"oz"),
269 i18nc(
"unit description in lists",
"ounces"),
270 i18nc(
"unit synonyms for matching user input",
"ounce;ounces;oz"),
272 ki18nc(
"amount in units (real)",
"%1 ounces"),
273 ki18ncp(
"amount in units (integer)",
"%1 ounce",
"%1 ounces")));
275 d->addUnit(UnitPrivate::makeUnit(MassCategory,
278 i18nc(
"mass unit symbol",
"t oz"),
279 i18nc(
"unit description in lists",
"troy ounces"),
280 i18nc(
"unit synonyms for matching user input",
"troy ounce;troy ounces;t oz"),
282 ki18nc(
"amount in units (real)",
"%1 troy ounces"),
283 ki18ncp(
"amount in units (integer)",
"%1 troy ounce",
"%1 troy ounces")));
285 d->addUnit(UnitPrivate::makeUnit(MassCategory,
288 i18nc(
"mass unit symbol",
"N"),
289 i18nc(
"unit description in lists",
"newtons"),
290 i18nc(
"unit synonyms for matching user input",
"newton;newtons;N"),
292 ki18nc(
"amount in units (real)",
"%1 newtons"),
293 ki18ncp(
"amount in units (integer)",
"%1 newton",
"%1 newtons")));
296 d->addUnit(UnitPrivate::makeUnit(MassCategory,
299 i18nc(
"mass unit symbol",
"kN"),
300 i18nc(
"unit description in lists",
"kilonewton"),
301 i18nc(
"unit synonyms for matching user input",
"kilonewton;kilonewton;kN"),
303 ki18nc(
"amount in units (real)",
"%1 kilonewton"),
304 ki18ncp(
"amount in units (integer)",
"%1 kilonewton",
"%1 kilonewton")));
306 d->addUnit(UnitPrivate::makeUnit(MassCategory,
309 i18nc(
"mass unit symbol",
"st"),
310 i18nc(
"unit description in lists",
"stone"),
311 i18nc(
"unit synonyms for matching user input",
"stone;st"),
313 ki18nc(
"amount in units (real)",
"%1 stone"),
314 ki18ncp(
"amount in units (integer)",
"%1 stone",
"%1 stone")));
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...)