11#include <KLocalizedString>
13namespace KUnitConversion
15UnitCategory Force::makeCategory()
17 auto c = UnitCategoryPrivate::makeCategory(ForceCategory,
i18n(
"Force"),
i18n(
"Force"));
18 auto d = UnitCategoryPrivate::get(c);
21 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
24 i18nc(
"force unit symbol",
"YN"),
25 i18nc(
"unit description in lists",
"yottanewtons"),
26 i18nc(
"unit synonyms for matching user input",
"yottanewton;yottanewtons;YN"),
28 ki18nc(
"amount in units (real)",
"%1 yottanewtons"),
29 ki18ncp(
"amount in units (integer)",
"%1 yottanewton",
"%1 yottanewtons")));
31 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
34 i18nc(
"force unit symbol",
"ZN"),
35 i18nc(
"unit description in lists",
"zettanewtons"),
36 i18nc(
"unit synonyms for matching user input",
"zettanewton;zettanewtons;ZN"),
38 ki18nc(
"amount in units (real)",
"%1 zettanewtons"),
39 ki18ncp(
"amount in units (integer)",
"%1 zettanewton",
"%1 zettanewtons")));
41 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
44 i18nc(
"force unit symbol",
"EN"),
45 i18nc(
"unit description in lists",
"exanewtons"),
46 i18nc(
"unit synonyms for matching user input",
"exanewton;exanewtons;EN"),
48 ki18nc(
"amount in units (real)",
"%1 exanewtons"),
49 ki18ncp(
"amount in units (integer)",
"%1 exanewton",
"%1 exanewtons")));
51 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
54 i18nc(
"force unit symbol",
"PN"),
55 i18nc(
"unit description in lists",
"petanewtons"),
56 i18nc(
"unit synonyms for matching user input",
"petanewton;petanewtons;PN"),
58 ki18nc(
"amount in units (real)",
"%1 petanewtons"),
59 ki18ncp(
"amount in units (integer)",
"%1 petanewton",
"%1 petanewtons")));
61 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
64 i18nc(
"force unit symbol",
"TN"),
65 i18nc(
"unit description in lists",
"teranewtons"),
66 i18nc(
"unit synonyms for matching user input",
"teranewton;teranewtons;TN"),
68 ki18nc(
"amount in units (real)",
"%1 teranewtons"),
69 ki18ncp(
"amount in units (integer)",
"%1 teranewton",
"%1 teranewtons")));
71 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
74 i18nc(
"force unit symbol",
"GN"),
75 i18nc(
"unit description in lists",
"giganewtons"),
76 i18nc(
"unit synonyms for matching user input",
"giganewton;giganewtons;GN"),
78 ki18nc(
"amount in units (real)",
"%1 giganewtons"),
79 ki18ncp(
"amount in units (integer)",
"%1 giganewton",
"%1 giganewtons")));
81 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
84 i18nc(
"force unit symbol",
"MN"),
85 i18nc(
"unit description in lists",
"meganewtons"),
86 i18nc(
"unit synonyms for matching user input",
"meganewton;meganewtons;MN"),
88 ki18nc(
"amount in units (real)",
"%1 meganewtons"),
89 ki18ncp(
"amount in units (integer)",
"%1 meganewton",
"%1 meganewtons")));
91 d->addCommonUnit(UnitPrivate::makeUnit(ForceCategory,
94 i18nc(
"force unit symbol",
"kN"),
95 i18nc(
"unit description in lists",
"kilonewtons"),
96 i18nc(
"unit synonyms for matching user input",
"kilonewton;kilonewtons;kN"),
98 ki18nc(
"amount in units (real)",
"%1 kilonewtons"),
99 ki18ncp(
"amount in units (integer)",
"%1 kilonewton",
"%1 kilonewtons")));
101 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
104 i18nc(
"force unit symbol",
"hN"),
105 i18nc(
"unit description in lists",
"hectonewtons"),
106 i18nc(
"unit synonyms for matching user input",
"hectonewton;hectonewtons;hN"),
108 ki18nc(
"amount in units (real)",
"%1 hectonewtons"),
109 ki18ncp(
"amount in units (integer)",
"%1 hectonewton",
"%1 hectonewtons")));
111 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
114 i18nc(
"force unit symbol",
"daN"),
115 i18nc(
"unit description in lists",
"decanewtons"),
116 i18nc(
"unit synonyms for matching user input",
"decanewton;decanewtons;daN"),
118 ki18nc(
"amount in units (real)",
"%1 decanewtons"),
119 ki18ncp(
"amount in units (integer)",
"%1 decanewton",
"%1 decanewtons")));
121 d->addDefaultUnit(UnitPrivate::makeUnit(ForceCategory,
124 i18nc(
"force unit symbol",
"N"),
125 i18nc(
"unit description in lists",
"newtons"),
126 i18nc(
"unit synonyms for matching user input",
"newton;newtons;N"),
128 ki18nc(
"amount in units (real)",
"%1 newtons"),
129 ki18ncp(
"amount in units (integer)",
"%1 newton",
"%1 newtons")));
131 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
134 i18nc(
"force unit symbol",
"dN"),
135 i18nc(
"unit description in lists",
"decinewtons"),
136 i18nc(
"unit synonyms for matching user input",
"decinewton;decinewtons;dN"),
138 ki18nc(
"amount in units (real)",
"%1 decinewtons"),
139 ki18ncp(
"amount in units (integer)",
"%1 decinewton",
"%1 decinewtons")));
141 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
144 i18nc(
"force unit symbol",
"cN"),
145 i18nc(
"unit description in lists",
"centinewtons"),
146 i18nc(
"unit synonyms for matching user input",
"centinewton;centinewtons;cN"),
148 ki18nc(
"amount in units (real)",
"%1 centinewtons"),
149 ki18ncp(
"amount in units (integer)",
"%1 centinewton",
"%1 centinewtons")));
151 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
154 i18nc(
"force unit symbol",
"mN"),
155 i18nc(
"unit description in lists",
"millinewtons"),
156 i18nc(
"unit synonyms for matching user input",
"millinewton;millinewtons;mN"),
158 ki18nc(
"amount in units (real)",
"%1 millinewtons"),
159 ki18ncp(
"amount in units (integer)",
"%1 millinewton",
"%1 millinewtons")));
161 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
164 i18nc(
"force unit symbol",
"µN"),
165 i18nc(
"unit description in lists",
"micronewtons"),
166 i18nc(
"unit synonyms for matching user input",
"micronewton;micronewtons;µm;uN"),
168 ki18nc(
"amount in units (real)",
"%1 micronewtons"),
169 ki18ncp(
"amount in units (integer)",
"%1 micronewton",
"%1 micronewtons")));
171 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
174 i18nc(
"force unit symbol",
"nN"),
175 i18nc(
"unit description in lists",
"nanonewtons"),
176 i18nc(
"unit synonyms for matching user input",
"nanonewton;nanonewtons;nN"),
178 ki18nc(
"amount in units (real)",
"%1 nanonewtons"),
179 ki18ncp(
"amount in units (integer)",
"%1 nanonewton",
"%1 nanonewtons")));
181 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
184 i18nc(
"force unit symbol",
"pN"),
185 i18nc(
"unit description in lists",
"piconewtons"),
186 i18nc(
"unit synonyms for matching user input",
"piconewton;piconewtons;pN"),
188 ki18nc(
"amount in units (real)",
"%1 piconewtons"),
189 ki18ncp(
"amount in units (integer)",
"%1 piconewton",
"%1 piconewtons")));
191 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
194 i18nc(
"force unit symbol",
"fN"),
195 i18nc(
"unit description in lists",
"femtonewtons"),
196 i18nc(
"unit synonyms for matching user input",
"femtonewton;femtonewtons;fN"),
198 ki18nc(
"amount in units (real)",
"%1 femtonewtons"),
199 ki18ncp(
"amount in units (integer)",
"%1 femtonewton",
"%1 femtonewtons")));
201 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
204 i18nc(
"force unit symbol",
"aN"),
205 i18nc(
"unit description in lists",
"attonewtons"),
206 i18nc(
"unit synonyms for matching user input",
"attonewton;attonewtons;aN"),
208 ki18nc(
"amount in units (real)",
"%1 attonewtons"),
209 ki18ncp(
"amount in units (integer)",
"%1 attonewton",
"%1 attonewtons")));
211 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
214 i18nc(
"force unit symbol",
"zN"),
215 i18nc(
"unit description in lists",
"zeptonewtons"),
216 i18nc(
"unit synonyms for matching user input",
"zeptonewton;zeptonewtons;zN"),
218 ki18nc(
"amount in units (real)",
"%1 zeptonewtons"),
219 ki18ncp(
"amount in units (integer)",
"%1 zeptonewton",
"%1 zeptonewtons")));
221 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
224 i18nc(
"force unit symbol",
"yN"),
225 i18nc(
"unit description in lists",
"yoctonewtons"),
226 i18nc(
"unit synonyms for matching user input",
"yoctonewton;yoctonewtons;yN"),
228 ki18nc(
"amount in units (real)",
"%1 yoctonewtons"),
229 ki18ncp(
"amount in units (integer)",
"%1 yoctonewton",
"%1 yoctonewtons")));
232 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
235 i18nc(
"force unit symbol",
"dyn"),
236 i18nc(
"unit description in lists",
"dynes"),
237 i18nc(
"unit synonyms for matching user input",
"dyne;dynes;dyn"),
239 ki18nc(
"amount in units (real)",
"%1 dynes"),
240 ki18ncp(
"amount in units (integer)",
"%1 dyne",
"%1 dynes")));
242 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
245 i18nc(
"force unit symbol",
"kp"),
246 i18nc(
"unit description in lists",
"kiloponds"),
247 i18nc(
"unit synonyms for matching user input",
"kilogram-force;kilopond;kiloponds;kp"),
249 ki18nc(
"amount in units (real)",
"%1 kiloponds"),
250 ki18ncp(
"amount in units (integer)",
"%1 kilopond",
"%1 kiloponds")));
252 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
255 i18nc(
"force unit symbol",
"lbf"),
256 i18nc(
"unit description in lists",
"pound-force"),
257 i18nc(
"unit synonyms for matching user input",
"pound-force;lbf"),
259 ki18nc(
"amount in units (real)",
"%1 pound-force"),
260 ki18ncp(
"amount in units (integer)",
"%1 pound-force",
"%1 pound-force")));
262 d->addUnit(UnitPrivate::makeUnit(ForceCategory,
265 i18nc(
"force unit symbol",
"pdl"),
266 i18nc(
"unit description in lists",
"poundals"),
267 i18nc(
"unit synonyms for matching user input",
"poundal;poundals;pdl"),
269 ki18nc(
"amount in units (real)",
"%1 poundals"),
270 ki18ncp(
"amount in units (integer)",
"%1 poundal",
"%1 poundals")));
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...)