11#include <KLocalizedString>
13namespace KUnitConversion
16UnitCategory Area::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(AreaCategory,
19 i18nc(
"Unit Category: two dimensional size of a surface",
"Area"),
20 i18nc(
"Unit Category: two dimensional size of a surface",
"Area"));
21 auto d = UnitCategoryPrivate::get(c);
25 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
29 i18nc(
"area unit symbol",
"Ym²"),
33 i18nc(
"unit description in lists",
"square yottameters"),
40 i18nc(
"unit synonyms for matching user input",
"square yottameter;square yottameters;Ym²;Ym/-2;Ym^2;Ym2"),
44 ki18nc(
"amount in units (real)",
"%1 square yottameters"),
47 ki18ncp(
"amount in units (integer)",
"%1 square yottameter",
"%1 square yottameters")));
49 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
52 i18nc(
"area unit symbol",
"Zm²"),
53 i18nc(
"unit description in lists",
"square zettameters"),
54 i18nc(
"unit synonyms for matching user input",
"square zettameter;square zettameters;Zm²;Zm/-2;Zm^2;Zm2"),
56 ki18nc(
"amount in units (real)",
"%1 square zettameters"),
57 ki18ncp(
"amount in units (integer)",
"%1 square zettameter",
"%1 square zettameters")));
59 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
62 i18nc(
"area unit symbol",
"Em²"),
63 i18nc(
"unit description in lists",
"square exameters"),
64 i18nc(
"unit synonyms for matching user input",
"square exameter;square exameters;Em²;Em/-2;Em^2;Em2"),
66 ki18nc(
"amount in units (real)",
"%1 square exameters"),
67 ki18ncp(
"amount in units (integer)",
"%1 square exameter",
"%1 square exameters")));
69 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
72 i18nc(
"area unit symbol",
"Pm²"),
73 i18nc(
"unit description in lists",
"square petameters"),
74 i18nc(
"unit synonyms for matching user input",
"square petameter;square petameters;Pm²;Pm/-2;Pm^2;Pm2"),
76 ki18nc(
"amount in units (real)",
"%1 square petameters"),
77 ki18ncp(
"amount in units (integer)",
"%1 square petameter",
"%1 square petameters")));
79 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
82 i18nc(
"area unit symbol",
"Tm²"),
83 i18nc(
"unit description in lists",
"square terameters"),
84 i18nc(
"unit synonyms for matching user input",
"square terameter;square terameters;Tm²;Tm/-2;Tm^2;Tm2"),
86 ki18nc(
"amount in units (real)",
"%1 square terameters"),
87 ki18ncp(
"amount in units (integer)",
"%1 square terameter",
"%1 square terameters")));
89 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
92 i18nc(
"area unit symbol",
"Gm²"),
93 i18nc(
"unit description in lists",
"square gigameters"),
94 i18nc(
"unit synonyms for matching user input",
"square gigameter;square gigameters;Gm²;Gm/-2;Gm^2;Gm2"),
96 ki18nc(
"amount in units (real)",
"%1 square gigameters"),
97 ki18ncp(
"amount in units (integer)",
"%1 square gigameter",
"%1 square gigameters")));
99 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
102 i18nc(
"area unit symbol",
"Mm²"),
103 i18nc(
"unit description in lists",
"square megameters"),
104 i18nc(
"unit synonyms for matching user input",
"square megameter;square megameters;Mm²;Mm/-2;Mm^2;Mm2"),
106 ki18nc(
"amount in units (real)",
"%1 square megameters"),
107 ki18ncp(
"amount in units (integer)",
"%1 square megameter",
"%1 square megameters")));
109 d->addCommonUnit(UnitPrivate::makeUnit(AreaCategory,
112 i18nc(
"area unit symbol",
"km²"),
113 i18nc(
"unit description in lists",
"square kilometers"),
114 i18nc(
"unit synonyms for matching user input",
"square kilometer;square kilometers;sq km;km²;km/-2;km^2;km2"),
116 ki18nc(
"amount in units (real)",
"%1 square kilometers"),
117 ki18ncp(
"amount in units (integer)",
"%1 square kilometer",
"%1 square kilometers")));
119 d->addCommonUnit(UnitPrivate::makeUnit(AreaCategory,
122 i18nc(
"area unit symbol",
"hm²"),
123 i18nc(
"unit description in lists",
"square hectometers"),
124 i18nc(
"unit synonyms for matching user input",
"square hectometer;square hectometers;hm²;hm/-2;hm^2;hm2;hectare;hectares"),
126 ki18nc(
"amount in units (real)",
"%1 square hectometers"),
127 ki18ncp(
"amount in units (integer)",
"%1 square hectometer",
"%1 square hectometers")));
129 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
132 i18nc(
"area unit symbol",
"dam²"),
133 i18nc(
"unit description in lists",
"square decameters"),
134 i18nc(
"unit synonyms for matching user input",
"square decameter;square decameters;dam²;dam/-2;dam^2;dam2"),
136 ki18nc(
"amount in units (real)",
"%1 square decameters"),
137 ki18ncp(
"amount in units (integer)",
"%1 square decameter",
"%1 square decameters")));
139 d->addDefaultUnit(UnitPrivate::makeUnit(AreaCategory,
142 i18nc(
"area unit symbol",
"m²"),
143 i18nc(
"unit description in lists",
"square meters"),
144 i18nc(
"unit synonyms for matching user input",
"square meter;square meters;sq m;m²;m/-2;m^2;m2"),
146 ki18nc(
"amount in units (real)",
"%1 square meters"),
147 ki18ncp(
"amount in units (integer)",
"%1 square meter",
"%1 square meters")));
149 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
152 i18nc(
"area unit symbol",
"dm²"),
153 i18nc(
"unit description in lists",
"square decimeters"),
154 i18nc(
"unit synonyms for matching user input",
"square decimeter;square decimeters;dm²;dm/-2;dm^2;dm2"),
156 ki18nc(
"amount in units (real)",
"%1 square decimeters"),
157 ki18ncp(
"amount in units (integer)",
"%1 square decimeter",
"%1 square decimeters")));
159 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
162 i18nc(
"area unit symbol",
"cm²"),
163 i18nc(
"unit description in lists",
"square centimeters"),
164 i18nc(
"unit synonyms for matching user input",
"square centimeter;square centimeters;sq cm;cm²;cm/-2;cm^2;cm2"),
166 ki18nc(
"amount in units (real)",
"%1 square centimeters"),
167 ki18ncp(
"amount in units (integer)",
"%1 square centimeter",
"%1 square centimeters")));
169 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
172 i18nc(
"area unit symbol",
"mm²"),
173 i18nc(
"unit description in lists",
"square millimeters"),
174 i18nc(
"unit synonyms for matching user input",
"square millimeter;square millimeters;sq mm;mm²;mm/-2;mm^2;mm2"),
176 ki18nc(
"amount in units (real)",
"%1 square millimeters"),
177 ki18ncp(
"amount in units (integer)",
"%1 square millimeter",
"%1 square millimeters")));
179 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
182 i18nc(
"area unit symbol",
"µm²"),
183 i18nc(
"unit description in lists",
"square micrometers"),
184 i18nc(
"unit synonyms for matching user input",
"square micrometer;square micrometers;µm²;um²;µm/-2;µm^2;µm2"),
186 ki18nc(
"amount in units (real)",
"%1 square micrometers"),
187 ki18ncp(
"amount in units (integer)",
"%1 square micrometer",
"%1 square micrometers")));
189 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
192 i18nc(
"area unit symbol",
"nm²"),
193 i18nc(
"unit description in lists",
"square nanometers"),
194 i18nc(
"unit synonyms for matching user input",
"square nanometer;square nanometers;nm²;nm/-2;nm^2;nm2"),
196 ki18nc(
"amount in units (real)",
"%1 square nanometers"),
197 ki18ncp(
"amount in units (integer)",
"%1 square nanometer",
"%1 square nanometers")));
199 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
202 i18nc(
"area unit symbol",
"pm²"),
203 i18nc(
"unit description in lists",
"square picometers"),
204 i18nc(
"unit synonyms for matching user input",
"square picometer;square picometers;pm²;pm/-2;pm^2;pm2"),
206 ki18nc(
"amount in units (real)",
"%1 square picometers"),
207 ki18ncp(
"amount in units (integer)",
"%1 square picometer",
"%1 square picometers")));
209 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
212 i18nc(
"area unit symbol",
"fm²"),
213 i18nc(
"unit description in lists",
"square femtometers"),
214 i18nc(
"unit synonyms for matching user input",
"square femtometer;square femtometers;fm²;fm/-2;fm^2;fm2"),
216 ki18nc(
"amount in units (real)",
"%1 square femtometers"),
217 ki18ncp(
"amount in units (integer)",
"%1 square femtometer",
"%1 square femtometers")));
219 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
222 i18nc(
"area unit symbol",
"am²"),
223 i18nc(
"unit description in lists",
"square attometers"),
224 i18nc(
"unit synonyms for matching user input",
"square attometer;square attometers;am²;am/-2;am^2;am2"),
226 ki18nc(
"amount in units (real)",
"%1 square attometers"),
227 ki18ncp(
"amount in units (integer)",
"%1 square attometer",
"%1 square attometers")));
229 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
232 i18nc(
"area unit symbol",
"zm²"),
233 i18nc(
"unit description in lists",
"square zeptometers"),
234 i18nc(
"unit synonyms for matching user input",
"square zeptometer;square zeptometers;zm²;zm/-2;zm^2;zm2"),
236 ki18nc(
"amount in units (real)",
"%1 square zeptometers"),
237 ki18ncp(
"amount in units (integer)",
"%1 square zeptometer",
"%1 square zeptometers")));
239 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
242 i18nc(
"area unit symbol",
"ym²"),
243 i18nc(
"unit description in lists",
"square yoctometers"),
244 i18nc(
"unit synonyms for matching user input",
"square yoctometer;square yoctometers;ym²;ym/-2;ym^2;ym2"),
246 ki18nc(
"amount in units (real)",
"%1 square yoctometers"),
247 ki18ncp(
"amount in units (integer)",
"%1 square yoctometer",
"%1 square yoctometers")));
249 d->addCommonUnit(UnitPrivate::makeUnit(AreaCategory,
252 i18nc(
"area unit symbol",
"acre"),
253 i18nc(
"unit description in lists",
"acres"),
254 i18nc(
"unit synonyms for matching user input",
"acre;acres"),
256 ki18nc(
"amount in units (real)",
"%1 acres"),
257 ki18ncp(
"amount in units (integer)",
"%1 acre",
"%1 acres")));
259 d->addCommonUnit(UnitPrivate::makeUnit(AreaCategory,
262 i18nc(
"area unit symbol",
"ft²"),
263 i18nc(
"unit description in lists",
"square feet"),
264 i18nc(
"unit synonyms for matching user input",
"square foot;square feet;ft²;square ft;sq foot;sq ft;sq feet;feet²"),
266 ki18nc(
"amount in units (real)",
"%1 square feet"),
267 ki18ncp(
"amount in units (integer)",
"%1 square foot",
"%1 square feet")));
269 d->addUnit(UnitPrivate::makeUnit(AreaCategory,
272 i18nc(
"area unit symbol",
"in²"),
273 i18nc(
"unit description in lists",
"square inches"),
274 i18nc(
"unit synonyms for matching user input",
"square inch;square inches;in²;square inch;square in;sq inches;sq inch;sq in;inch²"),
276 ki18nc(
"amount in units (real)",
"%1 square inches"),
277 ki18ncp(
"amount in units (integer)",
"%1 square inch",
"%1 square inches")));
279 d->addCommonUnit(UnitPrivate::makeUnit(AreaCategory,
282 i18nc(
"area unit symbol",
"mi²"),
283 i18nc(
"unit description in lists",
"square miles"),
284 i18nc(
"unit synonyms for matching user input",
"square mile;square miles;mi²;square mi;sq miles;sq mile;sq mi;mile²"),
286 ki18nc(
"amount in units (real)",
"%1 square miles"),
287 ki18ncp(
"amount in units (integer)",
"%1 square mile",
"%1 square miles")));
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)