11#include <KLocalizedString>
13namespace KUnitConversion
16UnitCategory Length::makeCategory()
18 auto c = UnitCategoryPrivate::makeCategory(LengthCategory,
i18n(
"Length"),
i18n(
"Length"));
19 auto d = UnitCategoryPrivate::get(c);
22 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
25 i18nc(
"length unit symbol",
"Ym"),
26 i18nc(
"unit description in lists",
"yottameters"),
27 i18nc(
"unit synonyms for matching user input",
"yottameter;yottameters;Ym"),
29 ki18nc(
"amount in units (real)",
"%1 yottameters"),
30 ki18ncp(
"amount in units (integer)",
"%1 yottameter",
"%1 yottameters")));
32 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
35 i18nc(
"length unit symbol",
"Zm"),
36 i18nc(
"unit description in lists",
"zettameters"),
37 i18nc(
"unit synonyms for matching user input",
"zettameter;zettameters;Zm"),
39 ki18nc(
"amount in units (real)",
"%1 zettameters"),
40 ki18ncp(
"amount in units (integer)",
"%1 zettameter",
"%1 zettameters")));
42 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
45 i18nc(
"length unit symbol",
"Em"),
46 i18nc(
"unit description in lists",
"exameters"),
47 i18nc(
"unit synonyms for matching user input",
"exameter;exameters;Em"),
49 ki18nc(
"amount in units (real)",
"%1 exameters"),
50 ki18ncp(
"amount in units (integer)",
"%1 exameter",
"%1 exameters")));
52 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
55 i18nc(
"length unit symbol",
"Pm"),
56 i18nc(
"unit description in lists",
"petameters"),
57 i18nc(
"unit synonyms for matching user input",
"petameter;petameters;Pm"),
59 ki18nc(
"amount in units (real)",
"%1 petameters"),
60 ki18ncp(
"amount in units (integer)",
"%1 petameter",
"%1 petameters")));
62 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
65 i18nc(
"length unit symbol",
"Tm"),
66 i18nc(
"unit description in lists",
"terameters"),
67 i18nc(
"unit synonyms for matching user input",
"terameter;terameters;Tm"),
69 ki18nc(
"amount in units (real)",
"%1 terameters"),
70 ki18ncp(
"amount in units (integer)",
"%1 terameter",
"%1 terameters")));
72 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
75 i18nc(
"length unit symbol",
"Gm"),
76 i18nc(
"unit description in lists",
"gigameters"),
77 i18nc(
"unit synonyms for matching user input",
"gigameter;gigameters;Gm"),
79 ki18nc(
"amount in units (real)",
"%1 gigameters"),
80 ki18ncp(
"amount in units (integer)",
"%1 gigameter",
"%1 gigameters")));
82 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
85 i18nc(
"length unit symbol",
"Mm"),
86 i18nc(
"unit description in lists",
"megameters"),
87 i18nc(
"unit synonyms for matching user input",
"megameter;megameters;Mm"),
89 ki18nc(
"amount in units (real)",
"%1 megameters"),
90 ki18ncp(
"amount in units (integer)",
"%1 megameter",
"%1 megameters")));
92 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
95 i18nc(
"length unit symbol",
"km"),
96 i18nc(
"unit description in lists",
"kilometers"),
97 i18nc(
"unit synonyms for matching user input",
"kilometer;kilometers;km"),
99 ki18nc(
"amount in units (real)",
"%1 kilometers"),
100 ki18ncp(
"amount in units (integer)",
"%1 kilometer",
"%1 kilometers")));
102 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
105 i18nc(
"length unit symbol",
"hm"),
106 i18nc(
"unit description in lists",
"hectometers"),
107 i18nc(
"unit synonyms for matching user input",
"hectometer;hectometers;hm"),
109 ki18nc(
"amount in units (real)",
"%1 hectometers"),
110 ki18ncp(
"amount in units (integer)",
"%1 hectometer",
"%1 hectometers")));
112 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
115 i18nc(
"length unit symbol",
"dam"),
116 i18nc(
"unit description in lists",
"decameters"),
117 i18nc(
"unit synonyms for matching user input",
"decameter;decameters;dam"),
119 ki18nc(
"amount in units (real)",
"%1 decameters"),
120 ki18ncp(
"amount in units (integer)",
"%1 decameter",
"%1 decameters")));
122 d->addDefaultUnit(UnitPrivate::makeUnit(LengthCategory,
125 i18nc(
"length unit symbol",
"m"),
126 i18nc(
"unit description in lists",
"meters"),
127 i18nc(
"unit synonyms for matching user input",
"meter;meters;m"),
129 ki18nc(
"amount in units (real)",
"%1 meters"),
130 ki18ncp(
"amount in units (integer)",
"%1 meter",
"%1 meters")));
132 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
135 i18nc(
"length unit symbol",
"dm"),
136 i18nc(
"unit description in lists",
"decimeters"),
137 i18nc(
"unit synonyms for matching user input",
"decimeter;decimeters;dm"),
139 ki18nc(
"amount in units (real)",
"%1 decimeters"),
140 ki18ncp(
"amount in units (integer)",
"%1 decimeter",
"%1 decimeters")));
142 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
145 i18nc(
"length unit symbol",
"cm"),
146 i18nc(
"unit description in lists",
"centimeters"),
147 i18nc(
"unit synonyms for matching user input",
"centimeter;centimeters;cm"),
149 ki18nc(
"amount in units (real)",
"%1 centimeters"),
150 ki18ncp(
"amount in units (integer)",
"%1 centimeter",
"%1 centimeters")));
152 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
155 i18nc(
"length unit symbol",
"mm"),
156 i18nc(
"unit description in lists",
"millimeters"),
157 i18nc(
"unit synonyms for matching user input",
"millimeter;millimeters;mm"),
159 ki18nc(
"amount in units (real)",
"%1 millimeters"),
160 ki18ncp(
"amount in units (integer)",
"%1 millimeter",
"%1 millimeters")));
162 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
165 i18nc(
"length unit symbol",
"µm"),
166 i18nc(
"unit description in lists",
"micrometers"),
167 i18nc(
"unit synonyms for matching user input",
"micrometer;micrometers;µm;um"),
169 ki18nc(
"amount in units (real)",
"%1 micrometers"),
170 ki18ncp(
"amount in units (integer)",
"%1 micrometer",
"%1 micrometers")));
172 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
175 i18nc(
"length unit symbol",
"nm"),
176 i18nc(
"unit description in lists",
"nanometers"),
177 i18nc(
"unit synonyms for matching user input",
"nanometer;nanometers;nm"),
179 ki18nc(
"amount in units (real)",
"%1 nanometers"),
180 ki18ncp(
"amount in units (integer)",
"%1 nanometer",
"%1 nanometers")));
182 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
185 i18nc(
"length unit symbol",
"Å"),
186 i18nc(
"unit description in lists",
"Ångström"),
187 i18nc(
"unit synonyms for matching user input",
"Ångström;Ångstrom;Angström;Angstrom;Ångströms;Ångstroms;Angströms;Angstroms;Å"),
189 ki18nc(
"amount in units (real)",
"%1 Ångströms"),
190 ki18ncp(
"amount in units (integer)",
"%1 Ångström",
"%1 Ångströms")));
192 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
195 i18nc(
"length unit symbol",
"pm"),
196 i18nc(
"unit description in lists",
"picometers"),
197 i18nc(
"unit synonyms for matching user input",
"picometer;picometers;pm"),
199 ki18nc(
"amount in units (real)",
"%1 picometers"),
200 ki18ncp(
"amount in units (integer)",
"%1 picometer",
"%1 picometers")));
202 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
205 i18nc(
"length unit symbol",
"fm"),
206 i18nc(
"unit description in lists",
"femtometers"),
207 i18nc(
"unit synonyms for matching user input",
"femtometer;femtometers;fm"),
209 ki18nc(
"amount in units (real)",
"%1 femtometers"),
210 ki18ncp(
"amount in units (integer)",
"%1 femtometer",
"%1 femtometers")));
212 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
215 i18nc(
"length unit symbol",
"am"),
216 i18nc(
"unit description in lists",
"attometers"),
217 i18nc(
"unit synonyms for matching user input",
"attometer;attometers;am"),
219 ki18nc(
"amount in units (real)",
"%1 attometers"),
220 ki18ncp(
"amount in units (integer)",
"%1 attometer",
"%1 attometers")));
222 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
225 i18nc(
"length unit symbol",
"zm"),
226 i18nc(
"unit description in lists",
"zeptometers"),
227 i18nc(
"unit synonyms for matching user input",
"zeptometer;zeptometers;zm"),
229 ki18nc(
"amount in units (real)",
"%1 zeptometers"),
230 ki18ncp(
"amount in units (integer)",
"%1 zeptometer",
"%1 zeptometers")));
232 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
235 i18nc(
"length unit symbol",
"ym"),
236 i18nc(
"unit description in lists",
"yoctometers"),
237 i18nc(
"unit synonyms for matching user input",
"yoctometer;yoctometers;ym"),
239 ki18nc(
"amount in units (real)",
"%1 yoctometers"),
240 ki18ncp(
"amount in units (integer)",
"%1 yoctometer",
"%1 yoctometers")));
242 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
245 i18nc(
"length unit symbol",
"in"),
246 i18nc(
"unit description in lists",
"inches"),
247 i18nc(
"unit synonyms for matching user input",
"inch;inches;in;\""),
249 ki18nc(
"amount in units (real)",
"%1 inches"),
250 ki18ncp(
"amount in units (integer)",
"%1 inch",
"%1 inches")));
252 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
255 i18nc(
"length unit symbol",
"thou"),
256 i18nc(
"unit description in lists",
"thousandths of an inch"),
257 i18nc(
"unit synonyms for matching user input",
"thou;mil;point;thousandth of an inch;thousandths of an inch"),
259 ki18nc(
"amount in units (real)",
"%1 thousandths of an inch"),
260 ki18ncp(
"amount in units (integer)",
"%1 thousandth of an inch",
"%1 thousandths of an inch")));
262 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
265 i18nc(
"length unit symbol",
"ft"),
266 i18nc(
"unit description in lists",
"feet"),
267 i18nc(
"unit synonyms for matching user input",
"foot;feet;ft"),
269 ki18nc(
"amount in units (real)",
"%1 feet"),
270 ki18ncp(
"amount in units (integer)",
"%1 foot",
"%1 feet")));
272 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
275 i18nc(
"length unit symbol",
"yd"),
276 i18nc(
"unit description in lists",
"yards"),
277 i18nc(
"unit synonyms for matching user input",
"yard;yards;yd"),
279 ki18nc(
"amount in units (real)",
"%1 yards"),
280 ki18ncp(
"amount in units (integer)",
"%1 yard",
"%1 yards")));
282 d->addCommonUnit(UnitPrivate::makeUnit(LengthCategory,
285 i18nc(
"length unit symbol",
"mi"),
286 i18nc(
"unit description in lists",
"miles"),
287 i18nc(
"unit synonyms for matching user input",
"mile;miles;mi"),
289 ki18nc(
"amount in units (real)",
"%1 miles"),
290 ki18ncp(
"amount in units (integer)",
"%1 mile",
"%1 miles")));
292 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
295 i18nc(
"length unit symbol",
"nmi"),
296 i18nc(
"unit description in lists",
"nautical miles"),
297 i18nc(
"unit synonyms for matching user input",
"nautical mile;nautical miles;nmi"),
299 ki18nc(
"amount in units (real)",
"%1 nautical miles"),
300 ki18ncp(
"amount in units (integer)",
"%1 nautical mile",
"%1 nautical miles")));
302 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
305 i18nc(
"length unit symbol",
"ly"),
306 i18nc(
"unit description in lists",
"light-years"),
307 i18nc(
"unit synonyms for matching user input",
"light-year;light-years;ly;lightyear;lightyears"),
309 ki18nc(
"amount in units (real)",
"%1 light-years"),
310 ki18ncp(
"amount in units (integer)",
"%1 light-year",
"%1 light-years")));
312 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
315 i18nc(
"length unit symbol",
"pc"),
316 i18nc(
"unit description in lists",
"parsecs"),
317 i18nc(
"unit synonyms for matching user input",
"parsec;parsecs;pc"),
319 ki18nc(
"amount in units (real)",
"%1 parsecs"),
320 ki18ncp(
"amount in units (integer)",
"%1 parsec",
"%1 parsecs")));
322 d->addUnit(UnitPrivate::makeUnit(LengthCategory,
325 i18nc(
"length unit symbol",
"au"),
326 i18nc(
"unit description in lists",
"astronomical units"),
327 i18nc(
"unit synonyms for matching user input",
"astronomical unit;astronomical units;au"),
329 ki18nc(
"amount in units (real)",
"%1 astronomical units"),
330 ki18ncp(
"amount in units (integer)",
"%1 astronomical unit",
"%1 astronomical units")));
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...)