11#include <KLocalizedString>
13namespace KUnitConversion
16UnitCategory Volume::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(VolumeCategory,
i18n(
"Volume"),
i18n(
"Volume"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
25 i18nc(
"volume unit symbol",
"Ym³"),
26 i18nc(
"unit description in lists",
"cubic yottameters"),
27 i18nc(
"unit synonyms for matching user input",
"cubic yottameter;cubic yottameters;Ym³;Ym/-3;Ym^3;Ym3"),
29 ki18nc(
"amount in units (real)",
"%1 cubic yottameters"),
30 ki18ncp(
"amount in units (integer)",
"%1 cubic yottameter",
"%1 cubic yottameters")));
32 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
35 i18nc(
"volume unit symbol",
"Zm³"),
36 i18nc(
"unit description in lists",
"cubic zettameters"),
37 i18nc(
"unit synonyms for matching user input",
"cubic zettameter;cubic zettameters;Zm³;Zm/-3;Zm^3;Zm3"),
39 ki18nc(
"amount in units (real)",
"%1 cubic zettameters"),
40 ki18ncp(
"amount in units (integer)",
"%1 cubic zettameter",
"%1 cubic zettameters")));
42 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
45 i18nc(
"volume unit symbol",
"Em³"),
46 i18nc(
"unit description in lists",
"cubic exameters"),
47 i18nc(
"unit synonyms for matching user input",
"cubic exameter;cubic exameters;Em³;Em/-3;Em^3;Em3"),
49 ki18nc(
"amount in units (real)",
"%1 cubic exameters"),
50 ki18ncp(
"amount in units (integer)",
"%1 cubic exameter",
"%1 cubic exameters")));
52 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
55 i18nc(
"volume unit symbol",
"Pm³"),
56 i18nc(
"unit description in lists",
"cubic petameters"),
57 i18nc(
"unit synonyms for matching user input",
"cubic petameter;cubic petameters;Pm³;Pm/-3;Pm^3;Pm3"),
59 ki18nc(
"amount in units (real)",
"%1 cubic petameters"),
60 ki18ncp(
"amount in units (integer)",
"%1 cubic petameter",
"%1 cubic petameters")));
62 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
65 i18nc(
"volume unit symbol",
"Tm³"),
66 i18nc(
"unit description in lists",
"cubic terameters"),
67 i18nc(
"unit synonyms for matching user input",
"cubic terameter;cubic terameters;Tm³;Tm/-3;Tm^3;Tm3"),
69 ki18nc(
"amount in units (real)",
"%1 cubic terameters"),
70 ki18ncp(
"amount in units (integer)",
"%1 cubic terameter",
"%1 cubic terameters")));
72 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
75 i18nc(
"volume unit symbol",
"Gm³"),
76 i18nc(
"unit description in lists",
"cubic gigameters"),
77 i18nc(
"unit synonyms for matching user input",
"cubic gigameter;cubic gigameters;Gm³;Gm/-3;Gm^3;Gm3"),
79 ki18nc(
"amount in units (real)",
"%1 cubic gigameters"),
80 ki18ncp(
"amount in units (integer)",
"%1 cubic gigameter",
"%1 cubic gigameters")));
82 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
85 i18nc(
"volume unit symbol",
"Mm³"),
86 i18nc(
"unit description in lists",
"cubic megameters"),
87 i18nc(
"unit synonyms for matching user input",
"cubic megameter;cubic megameters;Mm³;Mm/-3;Mm^3;Mm3"),
89 ki18nc(
"amount in units (real)",
"%1 cubic megameters"),
90 ki18ncp(
"amount in units (integer)",
"%1 cubic megameter",
"%1 cubic megameters")));
92 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
95 i18nc(
"volume unit symbol",
"km³"),
96 i18nc(
"unit description in lists",
"cubic kilometers"),
97 i18nc(
"unit synonyms for matching user input",
"cubic kilometer;cubic kilometers;km³;km/-3;km^3;km3"),
99 ki18nc(
"amount in units (real)",
"%1 cubic kilometers"),
100 ki18ncp(
"amount in units (integer)",
"%1 cubic kilometer",
"%1 cubic kilometers")));
102 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
105 i18nc(
"volume unit symbol",
"hm³"),
106 i18nc(
"unit description in lists",
"cubic hectometers"),
107 i18nc(
"unit synonyms for matching user input",
"cubic hectometer;cubic hectometers;hm³;hm/-3;hm^3;hm3"),
109 ki18nc(
"amount in units (real)",
"%1 cubic hectometers"),
110 ki18ncp(
"amount in units (integer)",
"%1 cubic hectometer",
"%1 cubic hectometers")));
112 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
115 i18nc(
"volume unit symbol",
"dam³"),
116 i18nc(
"unit description in lists",
"cubic decameters"),
117 i18nc(
"unit synonyms for matching user input",
"cubic decameter;cubic decameters;dam³;dam/-3;dam^3;dam3"),
119 ki18nc(
"amount in units (real)",
"%1 cubic decameters"),
120 ki18ncp(
"amount in units (integer)",
"%1 cubic decameter",
"%1 cubic decameters")));
122 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
125 i18nc(
"volume unit symbol",
"m³"),
126 i18nc(
"unit description in lists",
"cubic meters"),
127 i18nc(
"unit synonyms for matching user input",
"cubic meter;cubic meters;m³;m/-3;m^3;m3"),
129 ki18nc(
"amount in units (real)",
"%1 cubic meters"),
130 ki18ncp(
"amount in units (integer)",
"%1 cubic meter",
"%1 cubic meters")));
132 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
135 i18nc(
"volume unit symbol",
"dm³"),
136 i18nc(
"unit description in lists",
"cubic decimeters"),
137 i18nc(
"unit synonyms for matching user input",
"cubic decimeter;cubic decimeters;dm³;dm/-3;dm^3;dm3"),
139 ki18nc(
"amount in units (real)",
"%1 cubic decimeters"),
140 ki18ncp(
"amount in units (integer)",
"%1 cubic decimeter",
"%1 cubic decimeters")));
142 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
145 i18nc(
"volume unit symbol",
"cm³"),
146 i18nc(
"unit description in lists",
"cubic centimeters"),
147 i18nc(
"unit synonyms for matching user input",
"cubic centimeter;cubic centimeters;cm³;cm/-3;cm^3;cm3"),
149 ki18nc(
"amount in units (real)",
"%1 cubic centimeters"),
150 ki18ncp(
"amount in units (integer)",
"%1 cubic centimeter",
"%1 cubic centimeters")));
152 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
155 i18nc(
"volume unit symbol",
"mm³"),
156 i18nc(
"unit description in lists",
"cubic millimeters"),
157 i18nc(
"unit synonyms for matching user input",
"cubic millimeter;cubic millimeters;mm³;mm/-3;mm^3;mm3"),
159 ki18nc(
"amount in units (real)",
"%1 cubic millimeters"),
160 ki18ncp(
"amount in units (integer)",
"%1 cubic millimeter",
"%1 cubic millimeters")));
162 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
165 i18nc(
"volume unit symbol",
"µm³"),
166 i18nc(
"unit description in lists",
"cubic micrometers"),
167 i18nc(
"unit synonyms for matching user input",
"cubic micrometer;cubic micrometers;µm³;um³;µm/-3;µm^3;µm3"),
169 ki18nc(
"amount in units (real)",
"%1 cubic micrometers"),
170 ki18ncp(
"amount in units (integer)",
"%1 cubic micrometer",
"%1 cubic micrometers")));
172 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
175 i18nc(
"volume unit symbol",
"nm³"),
176 i18nc(
"unit description in lists",
"cubic nanometers"),
177 i18nc(
"unit synonyms for matching user input",
"cubic nanometer;cubic nanometers;nm³;nm/-3;nm^3;nm3"),
179 ki18nc(
"amount in units (real)",
"%1 cubic nanometers"),
180 ki18ncp(
"amount in units (integer)",
"%1 cubic nanometer",
"%1 cubic nanometers")));
182 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
185 i18nc(
"volume unit symbol",
"pm³"),
186 i18nc(
"unit description in lists",
"cubic picometers"),
187 i18nc(
"unit synonyms for matching user input",
"cubic picometer;cubic picometers;pm³;pm/-3;pm^3;pm3"),
189 ki18nc(
"amount in units (real)",
"%1 cubic picometers"),
190 ki18ncp(
"amount in units (integer)",
"%1 cubic picometer",
"%1 cubic picometers")));
192 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
195 i18nc(
"volume unit symbol",
"fm³"),
196 i18nc(
"unit description in lists",
"cubic femtometers"),
197 i18nc(
"unit synonyms for matching user input",
"cubic femtometer;cubic femtometers;fm³;fm/-3;fm^3;fm3"),
199 ki18nc(
"amount in units (real)",
"%1 cubic femtometers"),
200 ki18ncp(
"amount in units (integer)",
"%1 cubic femtometer",
"%1 cubic femtometers")));
202 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
205 i18nc(
"volume unit symbol",
"am³"),
206 i18nc(
"unit description in lists",
"cubic attometers"),
207 i18nc(
"unit synonyms for matching user input",
"cubic attometer;cubic attometers;am³;am/-3;am^3;am3"),
209 ki18nc(
"amount in units (real)",
"%1 cubic attometers"),
210 ki18ncp(
"amount in units (integer)",
"%1 cubic attometer",
"%1 cubic attometers")));
212 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
215 i18nc(
"volume unit symbol",
"zm³"),
216 i18nc(
"unit description in lists",
"cubic zeptometers"),
217 i18nc(
"unit synonyms for matching user input",
"cubic zeptometer;cubic zeptometers;zm³;zm/-3;zm^3;zm3"),
219 ki18nc(
"amount in units (real)",
"%1 cubic zeptometers"),
220 ki18ncp(
"amount in units (integer)",
"%1 cubic zeptometer",
"%1 cubic zeptometers")));
222 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
225 i18nc(
"volume unit symbol",
"ym³"),
226 i18nc(
"unit description in lists",
"cubic yoctometers"),
227 i18nc(
"unit synonyms for matching user input",
"cubic yoctometer;cubic yoctometers;ym³;ym/-3;ym^3;ym3"),
229 ki18nc(
"amount in units (real)",
"%1 cubic yoctometers"),
230 ki18ncp(
"amount in units (integer)",
"%1 cubic yoctometer",
"%1 cubic yoctometers")));
232 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
235 i18nc(
"volume unit symbol",
"Yl"),
236 i18nc(
"unit description in lists",
"yottaliters"),
237 i18nc(
"unit synonyms for matching user input",
"yottaliter;yottaliters;Yl"),
239 ki18nc(
"amount in units (real)",
"%1 yottaliters"),
240 ki18ncp(
"amount in units (integer)",
"%1 yottaliter",
"%1 yottaliters")));
242 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
245 i18nc(
"volume unit symbol",
"Zl"),
246 i18nc(
"unit description in lists",
"zettaliters"),
247 i18nc(
"unit synonyms for matching user input",
"zettaliter;zettaliters;Zl"),
249 ki18nc(
"amount in units (real)",
"%1 zettaliters"),
250 ki18ncp(
"amount in units (integer)",
"%1 zettaliter",
"%1 zettaliters")));
252 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
255 i18nc(
"volume unit symbol",
"El"),
256 i18nc(
"unit description in lists",
"exaliters"),
257 i18nc(
"unit synonyms for matching user input",
"exaliter;exaliters;El"),
259 ki18nc(
"amount in units (real)",
"%1 exaliters"),
260 ki18ncp(
"amount in units (integer)",
"%1 exaliter",
"%1 exaliters")));
262 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
265 i18nc(
"volume unit symbol",
"Pl"),
266 i18nc(
"unit description in lists",
"petaliters"),
267 i18nc(
"unit synonyms for matching user input",
"petaliter;petaliters;Pl"),
269 ki18nc(
"amount in units (real)",
"%1 petaliters"),
270 ki18ncp(
"amount in units (integer)",
"%1 petaliter",
"%1 petaliters")));
272 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
275 i18nc(
"volume unit symbol",
"Tl"),
276 i18nc(
"unit description in lists",
"teraliters"),
277 i18nc(
"unit synonyms for matching user input",
"teraliter;teraliters;Tl"),
279 ki18nc(
"amount in units (real)",
"%1 teraliters"),
280 ki18ncp(
"amount in units (integer)",
"%1 teraliter",
"%1 teraliters")));
282 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
285 i18nc(
"volume unit symbol",
"Gl"),
286 i18nc(
"unit description in lists",
"gigaliters"),
287 i18nc(
"unit synonyms for matching user input",
"gigaliter;gigaliters;Gl"),
289 ki18nc(
"amount in units (real)",
"%1 gigaliters"),
290 ki18ncp(
"amount in units (integer)",
"%1 gigaliter",
"%1 gigaliters")));
292 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
295 i18nc(
"volume unit symbol",
"Ml"),
296 i18nc(
"unit description in lists",
"megaliters"),
297 i18nc(
"unit synonyms for matching user input",
"megaliter;megaliters;Ml"),
299 ki18nc(
"amount in units (real)",
"%1 megaliters"),
300 ki18ncp(
"amount in units (integer)",
"%1 megaliter",
"%1 megaliters")));
302 d->addDefaultUnit(UnitPrivate::makeUnit(VolumeCategory,
305 i18nc(
"volume unit symbol",
"kl"),
306 i18nc(
"unit description in lists",
"kiloliters"),
307 i18nc(
"unit synonyms for matching user input",
"kiloliter;kiloliters;kl"),
309 ki18nc(
"amount in units (real)",
"%1 kiloliters"),
310 ki18ncp(
"amount in units (integer)",
"%1 kiloliter",
"%1 kiloliters")));
312 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
315 i18nc(
"volume unit symbol",
"hl"),
316 i18nc(
"unit description in lists",
"hectoliters"),
317 i18nc(
"unit synonyms for matching user input",
"hectoliter;hectoliters;hl"),
319 ki18nc(
"amount in units (real)",
"%1 hectoliters"),
320 ki18ncp(
"amount in units (integer)",
"%1 hectoliter",
"%1 hectoliters")));
322 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
325 i18nc(
"volume unit symbol",
"dal"),
326 i18nc(
"unit description in lists",
"decaliters"),
327 i18nc(
"unit synonyms for matching user input",
"decaliter;decaliters;dal"),
329 ki18nc(
"amount in units (real)",
"%1 decaliters"),
330 ki18ncp(
"amount in units (integer)",
"%1 decaliter",
"%1 decaliters")));
332 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
335 i18nc(
"volume unit symbol",
"l"),
336 i18nc(
"unit description in lists",
"liters"),
337 i18nc(
"unit synonyms for matching user input",
"liter;liters;l"),
339 ki18nc(
"amount in units (real)",
"%1 liters"),
340 ki18ncp(
"amount in units (integer)",
"%1 liter",
"%1 liters")));
342 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
345 i18nc(
"volume unit symbol",
"dl"),
346 i18nc(
"unit description in lists",
"deciliters"),
347 i18nc(
"unit synonyms for matching user input",
"deciliter;deciliters;dl"),
349 ki18nc(
"amount in units (real)",
"%1 deciliters"),
350 ki18ncp(
"amount in units (integer)",
"%1 deciliter",
"%1 deciliters")));
352 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
355 i18nc(
"volume unit symbol",
"cl"),
356 i18nc(
"unit description in lists",
"centiliters"),
357 i18nc(
"unit synonyms for matching user input",
"centiliter;centiliters;cl"),
359 ki18nc(
"amount in units (real)",
"%1 centiliters"),
360 ki18ncp(
"amount in units (integer)",
"%1 centiliter",
"%1 centiliters")));
362 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
365 i18nc(
"volume unit symbol",
"ml"),
366 i18nc(
"unit description in lists",
"milliliters"),
367 i18nc(
"unit synonyms for matching user input",
"milliliter;milliliters;ml"),
369 ki18nc(
"amount in units (real)",
"%1 milliliters"),
370 ki18ncp(
"amount in units (integer)",
"%1 milliliter",
"%1 milliliters")));
372 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
375 i18nc(
"volume unit symbol",
"µl"),
376 i18nc(
"unit description in lists",
"microliters"),
377 i18nc(
"unit synonyms for matching user input",
"microliter;microliters;µl;ul"),
379 ki18nc(
"amount in units (real)",
"%1 microliters"),
380 ki18ncp(
"amount in units (integer)",
"%1 microliter",
"%1 microliters")));
382 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
385 i18nc(
"volume unit symbol",
"nl"),
386 i18nc(
"unit description in lists",
"nanoliters"),
387 i18nc(
"unit synonyms for matching user input",
"nanoliter;nanoliters;nl"),
389 ki18nc(
"amount in units (real)",
"%1 nanoliters"),
390 ki18ncp(
"amount in units (integer)",
"%1 nanoliter",
"%1 nanoliters")));
392 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
395 i18nc(
"volume unit symbol",
"pl"),
396 i18nc(
"unit description in lists",
"picoliters"),
397 i18nc(
"unit synonyms for matching user input",
"picoliter;picoliters;pl"),
399 ki18nc(
"amount in units (real)",
"%1 picoliters"),
400 ki18ncp(
"amount in units (integer)",
"%1 picoliter",
"%1 picoliters")));
402 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
405 i18nc(
"volume unit symbol",
"fl"),
406 i18nc(
"unit description in lists",
"femtoliters"),
407 i18nc(
"unit synonyms for matching user input",
"femtoliter;femtoliters;fl"),
409 ki18nc(
"amount in units (real)",
"%1 femtoliters"),
410 ki18ncp(
"amount in units (integer)",
"%1 femtoliter",
"%1 femtoliters")));
412 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
415 i18nc(
"volume unit symbol",
"al"),
416 i18nc(
"unit description in lists",
"attoliters"),
417 i18nc(
"unit synonyms for matching user input",
"attoliter;attoliters;al"),
419 ki18nc(
"amount in units (real)",
"%1 attoliters"),
420 ki18ncp(
"amount in units (integer)",
"%1 attoliter",
"%1 attoliters")));
422 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
425 i18nc(
"volume unit symbol",
"zl"),
426 i18nc(
"unit description in lists",
"zeptoliters"),
427 i18nc(
"unit synonyms for matching user input",
"zeptoliter;zeptoliters;zl"),
429 ki18nc(
"amount in units (real)",
"%1 zeptoliters"),
430 ki18ncp(
"amount in units (integer)",
"%1 zeptoliter",
"%1 zeptoliters")));
432 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
435 i18nc(
"volume unit symbol",
"yl"),
436 i18nc(
"unit description in lists",
"yoctoliters"),
437 i18nc(
"unit synonyms for matching user input",
"yoctoliter;yoctoliters;yl"),
439 ki18nc(
"amount in units (real)",
"%1 yoctoliters"),
440 ki18ncp(
"amount in units (integer)",
"%1 yoctoliter",
"%1 yoctoliters")));
442 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
445 i18nc(
"volume unit symbol",
"ft³"),
446 i18nc(
"unit description in lists",
"cubic feet"),
447 i18nc(
"unit synonyms for matching user input",
"cubic foot;cubic feet;ft³;cubic ft;cu foot;cu ft;cu feet;feet³"),
449 ki18nc(
"amount in units (real)",
"%1 cubic feet"),
450 ki18ncp(
"amount in units (integer)",
"%1 cubic foot",
"%1 cubic feet")));
452 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
455 i18nc(
"volume unit symbol",
"in³"),
456 i18nc(
"unit description in lists",
"cubic inches"),
457 i18nc(
"unit synonyms for matching user input",
"cubic inch;cubic inches;in³;cubic inch;cubic in;cu inches;cu inch;cu in;inch³"),
459 ki18nc(
"amount in units (real)",
"%1 cubic inches"),
460 ki18ncp(
"amount in units (integer)",
"%1 cubic inch",
"%1 cubic inches")));
462 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
465 i18nc(
"volume unit symbol",
"mi³"),
466 i18nc(
"unit description in lists",
"cubic miles"),
467 i18nc(
"unit synonyms for matching user input",
"cubic mile;cubic miles;mi³;cubic mile;cubic mi;cu miles;cu mile;cu mi;mile³"),
469 ki18nc(
"amount in units (real)",
"%1 cubic miles"),
470 ki18ncp(
"amount in units (integer)",
"%1 cubic mile",
"%1 cubic miles")));
472 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
475 i18nc(
"volume unit symbol",
"fl.oz."),
476 i18nc(
"unit description in lists",
"fluid ounces"),
477 i18nc(
"unit synonyms for matching user input",
"fluid ounce;fluid ounces;fl.oz.;oz.fl.;oz. fl.;fl. oz.;fl oz;fluid ounce"),
479 ki18nc(
"amount in units (real)",
"%1 fluid ounces"),
480 ki18ncp(
"amount in units (integer)",
"%1 fluid ounce",
"%1 fluid ounces")));
482 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
485 i18nc(
"volume unit symbol",
"cp"),
486 i18nc(
"unit description in lists",
"cups"),
487 i18nc(
"unit synonyms for matching user input",
"cup;cups;cp"),
489 ki18nc(
"amount in units (real)",
"%1 cups"),
490 ki18ncp(
"amount in units (integer)",
"%1 cup",
"%1 cups")));
492 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
495 i18nc(
"volume unit symbol",
"tsp"),
496 i18nc(
"unit description in lists",
"teaspoon"),
497 i18nc(
"unit synonyms for matching user input",
"teaspoon;teaspoons;tsp;tsps"),
499 ki18nc(
"amount in units (real)",
"%1 teaspoons"),
500 ki18ncp(
"amount in units (integer)",
"%1 teaspoon",
"%1 teaspoons")));
502 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
505 i18nc(
"volume unit symbol",
"tbsp"),
506 i18nc(
"unit description in lists",
"tablespoon"),
507 i18nc(
"unit synonyms for matching user input",
"tablespoon;tablespoons;tbsp;tbsps"),
509 ki18nc(
"amount in units (real)",
"%1 tablespoons"),
510 ki18ncp(
"amount in units (integer)",
"%1 tablespoon",
"%1 tablespoons")));
512 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
515 i18nc(
"volume unit symbol",
"gal"),
516 i18nc(
"unit description in lists",
"gallons (U.S. liquid)"),
517 i18nc(
"unit synonyms for matching user input",
"gallon (U.S. liquid);gallons (U.S. liquid);gal;gallon;gallons"),
519 ki18nc(
"amount in units (real)",
"%1 gallons (U.S. liquid)"),
520 ki18ncp(
"amount in units (integer)",
"%1 gallon (U.S. liquid)",
"%1 gallons (U.S. liquid)")));
522 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
525 i18nc(
"volume unit symbol",
"imp gal"),
526 i18nc(
"unit description in lists",
"gallons (imperial)"),
527 i18nc(
"unit synonyms for matching user input",
528 "gallon (imperial);gallons (imperial);imp gal;imp gallon;imp gallons;imperial gal;imperial gallon;imperial gallons"),
530 ki18nc(
"amount in units (real)",
"%1 gallons (imperial)"),
531 ki18ncp(
"amount in units (integer)",
"%1 gallon (imperial)",
"%1 gallons (imperial)")));
533 d->addCommonUnit(UnitPrivate::makeUnit(VolumeCategory,
536 i18nc(
"volume unit symbol",
"pt"),
537 i18nc(
"unit description in lists",
"pints (imperial)"),
538 i18nc(
"unit synonyms for matching user input",
"pint (imperial);pints (imperial);pt;pint;pints;p"),
540 ki18nc(
"amount in units (real)",
"%1 pints (imperial)"),
541 ki18ncp(
"amount in units (integer)",
"%1 pint (imperial)",
"%1 pints (imperial)")));
543 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
546 i18nc(
"volume unit symbol",
"US pt"),
547 i18nc(
"unit description in lists",
"pints (U.S. liquid)"),
548 i18nc(
"unit synonyms for matching user input",
"pint (U.S. liquid);pints (U.S. liquid);US pt;US pint;US pints;US p"),
550 ki18nc(
"amount in units (real)",
"%1 pints (U.S. liquid)"),
551 ki18ncp(
"amount in units (integer)",
"%1 pint (U.S. liquid)",
"%1 pints (U.S. liquid)")));
553 d->addUnit(UnitPrivate::makeUnit(VolumeCategory,
556 i18nc(
"volume unit symbol",
"bbl"),
557 i18nc(
"unit description in lists",
"oil barrels"),
558 i18nc(
"unit synonyms for matching user input",
"oil barrels;oil barrel;bbl"),
560 ki18nc(
"amount in units (real)",
"%1 oil barrels"),
561 ki18ncp(
"amount in units (integer)",
"%1 oil barrel",
"%1 oil barrels")));
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...)