11#include <KLocalizedString>
13namespace KUnitConversion
15UnitCategory Pressure::makeCategory()
17 auto c = UnitCategoryPrivate::makeCategory(PressureCategory,
i18n(
"Pressure"),
i18n(
"Pressure"));
18 auto d = UnitCategoryPrivate::get(c);
21 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
24 i18nc(
"pressure unit symbol",
"YPa"),
25 i18nc(
"unit description in lists",
"yottapascals"),
26 i18nc(
"unit synonyms for matching user input",
"yottapascal;yottapascals;YPa"),
28 ki18nc(
"amount in units (real)",
"%1 yottapascals"),
29 ki18ncp(
"amount in units (integer)",
"%1 yottapascal",
"%1 yottapascals")));
31 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
34 i18nc(
"pressure unit symbol",
"ZPa"),
35 i18nc(
"unit description in lists",
"zettapascals"),
36 i18nc(
"unit synonyms for matching user input",
"zettapascal;zettapascals;ZPa"),
38 ki18nc(
"amount in units (real)",
"%1 zettapascals"),
39 ki18ncp(
"amount in units (integer)",
"%1 zettapascal",
"%1 zettapascals")));
41 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
44 i18nc(
"pressure unit symbol",
"EPa"),
45 i18nc(
"unit description in lists",
"exapascals"),
46 i18nc(
"unit synonyms for matching user input",
"exapascal;exapascals;EPa"),
48 ki18nc(
"amount in units (real)",
"%1 exapascals"),
49 ki18ncp(
"amount in units (integer)",
"%1 exapascal",
"%1 exapascals")));
51 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
54 i18nc(
"pressure unit symbol",
"PPa"),
55 i18nc(
"unit description in lists",
"petapascals"),
56 i18nc(
"unit synonyms for matching user input",
"petapascal;petapascals;PPa"),
58 ki18nc(
"amount in units (real)",
"%1 petapascals"),
59 ki18ncp(
"amount in units (integer)",
"%1 petapascal",
"%1 petapascals")));
61 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
64 i18nc(
"pressure unit symbol",
"TPa"),
65 i18nc(
"unit description in lists",
"terapascals"),
66 i18nc(
"unit synonyms for matching user input",
"terapascal;terapascals;TPa"),
68 ki18nc(
"amount in units (real)",
"%1 terapascals"),
69 ki18ncp(
"amount in units (integer)",
"%1 terapascal",
"%1 terapascals")));
71 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
74 i18nc(
"pressure unit symbol",
"GPa"),
75 i18nc(
"unit description in lists",
"gigapascals"),
76 i18nc(
"unit synonyms for matching user input",
"gigapascal;gigapascals;GPa"),
78 ki18nc(
"amount in units (real)",
"%1 gigapascals"),
79 ki18ncp(
"amount in units (integer)",
"%1 gigapascal",
"%1 gigapascals")));
81 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
84 i18nc(
"pressure unit symbol",
"MPa"),
85 i18nc(
"unit description in lists",
"megapascals"),
86 i18nc(
"unit synonyms for matching user input",
"megapascal;megapascals;MPa"),
88 ki18nc(
"amount in units (real)",
"%1 megapascals"),
89 ki18ncp(
"amount in units (integer)",
"%1 megapascal",
"%1 megapascals")));
91 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
94 i18nc(
"pressure unit symbol",
"kPa"),
95 i18nc(
"unit description in lists",
"kilopascals"),
96 i18nc(
"unit synonyms for matching user input",
"kilopascal;kilopascals;kPa"),
98 ki18nc(
"amount in units (real)",
"%1 kilopascals"),
99 ki18ncp(
"amount in units (integer)",
"%1 kilopascal",
"%1 kilopascals")));
101 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
104 i18nc(
"pressure unit symbol",
"hPa"),
105 i18nc(
"unit description in lists",
"hectopascals"),
106 i18nc(
"unit synonyms for matching user input",
"hectopascal;hectopascals;hPa"),
108 ki18nc(
"amount in units (real)",
"%1 hectopascals"),
109 ki18ncp(
"amount in units (integer)",
"%1 hectopascal",
"%1 hectopascals")));
111 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
114 i18nc(
"pressure unit symbol",
"daPa"),
115 i18nc(
"unit description in lists",
"decapascals"),
116 i18nc(
"unit synonyms for matching user input",
"decapascal;decapascals;daPa"),
118 ki18nc(
"amount in units (real)",
"%1 decapascals"),
119 ki18ncp(
"amount in units (integer)",
"%1 decapascal",
"%1 decapascals")));
121 d->addDefaultUnit(UnitPrivate::makeUnit(PressureCategory,
124 i18nc(
"pressure unit symbol",
"Pa"),
125 i18nc(
"unit description in lists",
"pascals"),
126 i18nc(
"unit synonyms for matching user input",
"pascal;pascals;Pa"),
128 ki18nc(
"amount in units (real)",
"%1 pascals"),
129 ki18ncp(
"amount in units (integer)",
"%1 pascal",
"%1 pascals")));
131 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
134 i18nc(
"pressure unit symbol",
"dPa"),
135 i18nc(
"unit description in lists",
"decipascals"),
136 i18nc(
"unit synonyms for matching user input",
"decipascal;decipascals;dPa"),
138 ki18nc(
"amount in units (real)",
"%1 decipascals"),
139 ki18ncp(
"amount in units (integer)",
"%1 decipascal",
"%1 decipascals")));
141 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
144 i18nc(
"pressure unit symbol",
"cPa"),
145 i18nc(
"unit description in lists",
"centipascals"),
146 i18nc(
"unit synonyms for matching user input",
"centipascal;centipascals;cPa"),
148 ki18nc(
"amount in units (real)",
"%1 centipascals"),
149 ki18ncp(
"amount in units (integer)",
"%1 centipascal",
"%1 centipascals")));
151 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
154 i18nc(
"pressure unit symbol",
"mPa"),
155 i18nc(
"unit description in lists",
"millipascals"),
156 i18nc(
"unit synonyms for matching user input",
"millipascal;millipascals;mPa"),
158 ki18nc(
"amount in units (real)",
"%1 millipascals"),
159 ki18ncp(
"amount in units (integer)",
"%1 millipascal",
"%1 millipascals")));
161 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
164 i18nc(
"pressure unit symbol",
"µPa"),
165 i18nc(
"unit description in lists",
"micropascals"),
166 i18nc(
"unit synonyms for matching user input",
"micropascal;micropascals;µPa;uPa"),
168 ki18nc(
"amount in units (real)",
"%1 micropascals"),
169 ki18ncp(
"amount in units (integer)",
"%1 micropascal",
"%1 micropascals")));
171 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
174 i18nc(
"pressure unit symbol",
"nPa"),
175 i18nc(
"unit description in lists",
"nanopascals"),
176 i18nc(
"unit synonyms for matching user input",
"nanopascal;nanopascals;nPa"),
178 ki18nc(
"amount in units (real)",
"%1 nanopascals"),
179 ki18ncp(
"amount in units (integer)",
"%1 nanopascal",
"%1 nanopascals")));
181 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
184 i18nc(
"pressure unit symbol",
"pPa"),
185 i18nc(
"unit description in lists",
"picopascals"),
186 i18nc(
"unit synonyms for matching user input",
"picopascal;picopascals;pPa"),
188 ki18nc(
"amount in units (real)",
"%1 picopascals"),
189 ki18ncp(
"amount in units (integer)",
"%1 picopascal",
"%1 picopascals")));
191 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
194 i18nc(
"pressure unit symbol",
"fPa"),
195 i18nc(
"unit description in lists",
"femtopascals"),
196 i18nc(
"unit synonyms for matching user input",
"femtopascal;femtopascals;fPa"),
198 ki18nc(
"amount in units (real)",
"%1 femtopascals"),
199 ki18ncp(
"amount in units (integer)",
"%1 femtopascal",
"%1 femtopascals")));
201 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
204 i18nc(
"pressure unit symbol",
"aPa"),
205 i18nc(
"unit description in lists",
"attopascals"),
206 i18nc(
"unit synonyms for matching user input",
"attopascal;attopascals;aPa"),
208 ki18nc(
"amount in units (real)",
"%1 attopascals"),
209 ki18ncp(
"amount in units (integer)",
"%1 attopascal",
"%1 attopascals")));
211 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
214 i18nc(
"pressure unit symbol",
"zPa"),
215 i18nc(
"unit description in lists",
"zeptopascals"),
216 i18nc(
"unit synonyms for matching user input",
"zeptopascal;zeptopascals;zPa"),
218 ki18nc(
"amount in units (real)",
"%1 zeptopascals"),
219 ki18ncp(
"amount in units (integer)",
"%1 zeptopascal",
"%1 zeptopascals")));
221 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
224 i18nc(
"pressure unit symbol",
"yPa"),
225 i18nc(
"unit description in lists",
"yoctopascals"),
226 i18nc(
"unit synonyms for matching user input",
"yoctopascal;yoctopascals;yPa"),
228 ki18nc(
"amount in units (real)",
"%1 yoctopascals"),
229 ki18ncp(
"amount in units (integer)",
"%1 yoctopascal",
"%1 yoctopascals")));
231 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
234 i18nc(
"pressure unit symbol",
"bar"),
235 i18nc(
"unit description in lists",
"bars"),
236 i18nc(
"unit synonyms for matching user input",
"bar;bars;bar"),
238 ki18nc(
"amount in units (real)",
"%1 bars"),
239 ki18ncp(
"amount in units (integer)",
"%1 bar",
"%1 bars")));
241 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
244 i18nc(
"pressure unit symbol",
"mbar"),
245 i18nc(
"unit description in lists",
"millibars"),
246 i18nc(
"unit synonyms for matching user input",
"millibar;millibars;mbar;mb"),
248 ki18nc(
"amount in units (real)",
"%1 millibars"),
249 ki18ncp(
"amount in units (integer)",
"%1 millibar",
"%1 millibars")));
251 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
254 i18nc(
"pressure unit symbol",
"dbar"),
255 i18nc(
"unit description in lists",
"decibars"),
256 i18nc(
"unit synonyms for matching user input",
"decibar;decibars;dbar"),
258 ki18nc(
"amount in units (real)",
"%1 decibars"),
259 ki18ncp(
"amount in units (integer)",
"%1 decibar",
"%1 decibars")));
261 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
264 i18nc(
"pressure unit symbol",
"Torr"),
265 i18nc(
"unit description in lists",
"Torr"),
266 i18nc(
"unit synonyms for matching user input",
"Torr"),
268 ki18nc(
"amount in units (real)",
"%1 torr"),
269 ki18ncp(
"amount in units (integer)",
"%1 torr",
"%1 torr")));
271 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
274 i18nc(
"pressure unit symbol",
"at"),
275 i18nc(
"unit description in lists",
"technical atmospheres"),
276 i18nc(
"unit synonyms for matching user input",
"technical atmosphere;technical atmospheres;at"),
278 ki18nc(
"amount in units (real)",
"%1 technical atmospheres"),
279 ki18ncp(
"amount in units (integer)",
"%1 technical atmosphere",
"%1 technical atmospheres")));
281 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
284 i18nc(
"pressure unit symbol",
"atm"),
285 i18nc(
"unit description in lists",
"atmospheres"),
286 i18nc(
"unit synonyms for matching user input",
"atmosphere;atmospheres;atm"),
288 ki18nc(
"amount in units (real)",
"%1 atmospheres"),
289 ki18ncp(
"amount in units (integer)",
"%1 atmosphere",
"%1 atmospheres")));
291 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
292 PoundForcePerSquareInch,
294 i18nc(
"pressure unit symbol",
"psi"),
295 i18nc(
"unit description in lists",
"pound-force per square inch"),
296 i18nc(
"unit synonyms for matching user input",
"pound-force per square inch;pound-force per square inches;psi"),
298 ki18nc(
"amount in units (real)",
"%1 pound-force per square inches"),
299 ki18ncp(
"amount in units (integer)",
"%1 pound-force per square inch",
"%1 pound-force per square inch")));
302 d->addCommonUnit(UnitPrivate::makeUnit(PressureCategory,
305 i18nc(
"pressure unit symbol",
"inHg"),
306 i18nc(
"unit description in lists",
"inches of mercury"),
307 i18nc(
"unit synonyms for matching user input",
"inch of mercury;inches of mercury;inHg;in\""),
309 ki18nc(
"amount in units (real)",
"%1 inches of mercury"),
310 ki18ncp(
"amount in units (integer)",
"%1 inches of mercury",
"%1 inches of mercury")));
313 d->addUnit(UnitPrivate::makeUnit(PressureCategory,
314 MillimetersOfMercury,
316 i18nc(
"pressure unit symbol",
"mmHg"),
317 i18nc(
"unit description in lists",
"millimeters of mercury"),
318 i18nc(
"unit synonyms for matching user input",
"millimeter of mercury;millimeters of mercury;mmHg"),
320 ki18nc(
"amount in units (real)",
"%1 millimeters of mercury"),
321 ki18ncp(
"amount in units (integer)",
"%1 millimeters of mercury",
"%1 millimeters of mercury")));
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...)