@@ -144,36 +144,80 @@ private void CreateRussian()
144
144
// Note: For units with multiple abbreviations, the first one is used in GetDefaultAbbreviation().
145
145
MapUnitToAbbreviation ( Unit . Undefined , "(нет ед.изм.)" ) ;
146
146
147
+ // Length
148
+ MapUnitToAbbreviation ( Unit . Kilometer , "км" ) ;
149
+ MapUnitToAbbreviation ( Unit . Meter , "м" ) ;
150
+ MapUnitToAbbreviation ( Unit . Decimeter , "дм" ) ;
151
+ MapUnitToAbbreviation ( Unit . Centimeter , "см" ) ;
152
+ MapUnitToAbbreviation ( Unit . Millimeter , "мм" ) ;
153
+ MapUnitToAbbreviation ( Unit . Micrometer , "мкм" ) ;
154
+ MapUnitToAbbreviation ( Unit . Nanometer , "нм" ) ;
155
+
147
156
// Masses
157
+ MapUnitToAbbreviation ( Unit . Megatonne , "Мт" ) ;
158
+ MapUnitToAbbreviation ( Unit . Kilotonne , "кт" ) ;
159
+ MapUnitToAbbreviation ( Unit . Tonne , "т" ) ;
148
160
MapUnitToAbbreviation ( Unit . Kilogram , "кг" ) ;
161
+ MapUnitToAbbreviation ( Unit . Hectogram , "гг" ) ;
162
+ MapUnitToAbbreviation ( Unit . Decagram , "даг" ) ;
149
163
MapUnitToAbbreviation ( Unit . Gram , "г" ) ;
164
+ MapUnitToAbbreviation ( Unit . Decigram , "дг" ) ;
165
+ MapUnitToAbbreviation ( Unit . Centigram , "сг" ) ;
150
166
MapUnitToAbbreviation ( Unit . Milligram , "мг" ) ;
151
167
168
+ // Pressures
169
+ MapUnitToAbbreviation ( Unit . Pascal , "Па" ) ;
170
+ MapUnitToAbbreviation ( Unit . KiloPascal , "кПа" ) ;
171
+ MapUnitToAbbreviation ( Unit . MegaPascal , "МПа" ) ;
172
+ MapUnitToAbbreviation ( Unit . KilogramForcePerSquareCentimeter , "кгс/см²" ) ;
173
+ MapUnitToAbbreviation ( Unit . Psi , "psi" ) ;
174
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareCentimeter , "Н/см²" ) ;
175
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareMillimeter , "Н/мм²" ) ;
176
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareMeter , "Н/м²" ) ;
177
+ MapUnitToAbbreviation ( Unit . Bar , "бар" ) ;
178
+ MapUnitToAbbreviation ( Unit . TechnicalAtmosphere , "ат" ) ;
179
+ MapUnitToAbbreviation ( Unit . Atmosphere , "атм" ) ;
180
+ MapUnitToAbbreviation ( Unit . Torr , "торр" ) ;
181
+
152
182
// Forces
153
183
MapUnitToAbbreviation ( Unit . Kilonewton , "кН" ) ;
154
184
MapUnitToAbbreviation ( Unit . Newton , "Н" ) ;
185
+ MapUnitToAbbreviation ( Unit . KilogramForce , "кгс" ) ;
186
+ MapUnitToAbbreviation ( Unit . Dyn , "дин" ) ;
155
187
156
- // Torque
157
- MapUnitToAbbreviation ( Unit . Newtonmeter , "Нм" ) ;
188
+ // Area
189
+ MapUnitToAbbreviation ( Unit . SquareKilometer , "км²" ) ;
190
+ MapUnitToAbbreviation ( Unit . SquareMeter , "м²" ) ;
191
+ MapUnitToAbbreviation ( Unit . SquareDecimeter , "дм²" ) ;
192
+ MapUnitToAbbreviation ( Unit . SquareCentimeter , "см²" ) ;
193
+ MapUnitToAbbreviation ( Unit . SquareMillimeter , "мм²" ) ;
158
194
159
- // Distances
160
- MapUnitToAbbreviation ( Unit . Meter , "м " ) ;
161
- MapUnitToAbbreviation ( Unit . Centimeter , "см " ) ;
162
- MapUnitToAbbreviation ( Unit . Millimeter , "мм " ) ;
195
+ // Angle
196
+ MapUnitToAbbreviation ( Unit . Degree , "° " ) ;
197
+ MapUnitToAbbreviation ( Unit . Radian , "рад " ) ;
198
+ MapUnitToAbbreviation ( Unit . Gradian , "g " ) ;
163
199
164
200
// Volumes
201
+ MapUnitToAbbreviation ( Unit . CubicKilometer , "км³" ) ;
202
+ MapUnitToAbbreviation ( Unit . CubicMeter , "м³" ) ;
203
+ MapUnitToAbbreviation ( Unit . CubicDecimeter , "дм³" ) ;
204
+ MapUnitToAbbreviation ( Unit . CubicCentimeter , "см³" ) ;
205
+ MapUnitToAbbreviation ( Unit . CubicMillimeter , "мм³" ) ;
206
+ MapUnitToAbbreviation ( Unit . Hectoliter , "гл" ) ;
165
207
MapUnitToAbbreviation ( Unit . Liter , "л" ) ;
208
+ MapUnitToAbbreviation ( Unit . Deciliter , "дл" ) ;
209
+ MapUnitToAbbreviation ( Unit . Centiliter , "сл" ) ;
166
210
MapUnitToAbbreviation ( Unit . Milliliter , "мл" ) ;
167
211
168
- // Other units
169
- MapUnitToAbbreviation ( Unit . Volt , "В" ) ;
212
+ // Torque
213
+ MapUnitToAbbreviation ( Unit . Newtonmeter , "Н·м" ) ;
214
+
215
+ // Generic / Other
216
+ MapUnitToAbbreviation ( Unit . Piece , "штук" ) ;
170
217
MapUnitToAbbreviation ( Unit . Percent , "%" ) ;
171
218
172
- // Pressures
173
- MapUnitToAbbreviation ( Unit . Pascal , "Па" ) ;
174
- MapUnitToAbbreviation ( Unit . KiloPascal , "кПа" ) ;
175
- MapUnitToAbbreviation ( Unit . MegaPascal , "МПа" ) ;
176
- MapUnitToAbbreviation ( Unit . KilogramForcePerSquareCentimeter , "кгс/см²" ) ;
219
+ // Electric potential
220
+ MapUnitToAbbreviation ( Unit . Volt , "В" ) ;
177
221
178
222
// Times
179
223
MapUnitToAbbreviation ( Unit . Nanosecond , "нс" ) ;
@@ -184,6 +228,10 @@ private void CreateRussian()
184
228
MapUnitToAbbreviation ( Unit . Hour , "ч" ) ;
185
229
MapUnitToAbbreviation ( Unit . Day , "д" ) ;
186
230
231
+ // Cooking units
232
+ MapUnitToAbbreviation ( Unit . Tablespoon , "столовая ложка" ) ;
233
+ MapUnitToAbbreviation ( Unit . Teaspoon , "чайная ложка" ) ;
234
+
187
235
// Flow
188
236
MapUnitToAbbreviation ( Unit . CubicMeterPerSecond , "м³/с" ) ;
189
237
MapUnitToAbbreviation ( Unit . CubicMeterPerHour , "м³/ч" ) ;
@@ -199,40 +247,94 @@ private void CreateCultureInvariants()
199
247
// Note: For units with multiple abbreviations, the first one is used in GetDefaultAbbreviation().
200
248
MapUnitToAbbreviation ( Unit . Undefined , "(no unit)" ) ;
201
249
202
- // Masses
203
- MapUnitToAbbreviation ( Unit . Kilogram , "kg" ) ;
204
- MapUnitToAbbreviation ( Unit . Hectogram , "hg" ) ;
205
- MapUnitToAbbreviation ( Unit . Gram , "g" ) ;
206
- MapUnitToAbbreviation ( Unit . Milligram , "mg" ) ;
207
-
208
- // Forces
209
- MapUnitToAbbreviation ( Unit . Kilonewton , "kN" ) ;
210
- MapUnitToAbbreviation ( Unit . Newton , "N" ) ;
211
-
212
- // Torque
213
- MapUnitToAbbreviation ( Unit . Newtonmeter , "Nm" ) ;
250
+ // Length
251
+ MapUnitToAbbreviation ( Unit . Kilometer , "km" ) ;
252
+ MapUnitToAbbreviation ( Unit . Meter , "m" ) ;
253
+ MapUnitToAbbreviation ( Unit . Decimeter , "dm" ) ;
254
+ MapUnitToAbbreviation ( Unit . Centimeter , "cm" ) ;
255
+ MapUnitToAbbreviation ( Unit . Millimeter , "mm" ) ;
256
+ MapUnitToAbbreviation ( Unit . Micrometer , "μm" ) ;
257
+ MapUnitToAbbreviation ( Unit . Nanometer , "nm" ) ;
214
258
215
- // Distances
216
- MapUnitToAbbreviation ( Unit . Meter , "m" ) ;
217
- MapUnitToAbbreviation ( Unit . Centimeter , "cm" ) ;
218
- MapUnitToAbbreviation ( Unit . Millimeter , "mm" ) ;
219
-
220
- // Volumes
221
- MapUnitToAbbreviation ( Unit . Liter , "l" , "L" ) ;
222
- MapUnitToAbbreviation ( Unit . Deciliter , "dl" , "dL" ) ;
223
- MapUnitToAbbreviation ( Unit . Centiliter , "cl" , "cL" ) ;
224
- MapUnitToAbbreviation ( Unit . Milliliter , "ml" , "mL" ) ;
225
-
226
- // Other units
227
- MapUnitToAbbreviation ( Unit . Volt , "V" ) ;
228
- MapUnitToAbbreviation ( Unit . Percent , "%" ) ;
229
- MapUnitToAbbreviation ( Unit . Second , "s" ) ;
259
+ // Masses
260
+ MapUnitToAbbreviation ( Unit . Megatonne , "Mt" ) ;
261
+ MapUnitToAbbreviation ( Unit . Kilotonne , "kt" ) ;
262
+ MapUnitToAbbreviation ( Unit . Tonne , "t" ) ;
263
+ MapUnitToAbbreviation ( Unit . Kilogram , "kg" ) ;
264
+ MapUnitToAbbreviation ( Unit . Hectogram , "hg" ) ;
265
+ MapUnitToAbbreviation ( Unit . Decagram , "dag" ) ;
266
+ MapUnitToAbbreviation ( Unit . Gram , "g" ) ;
267
+ MapUnitToAbbreviation ( Unit . Decigram , "dg" ) ;
268
+ MapUnitToAbbreviation ( Unit . Centigram , "cg" ) ;
269
+ MapUnitToAbbreviation ( Unit . Milligram , "mg" ) ;
230
270
231
271
// Pressures
232
272
MapUnitToAbbreviation ( Unit . Pascal , "Pa" ) ;
233
273
MapUnitToAbbreviation ( Unit . KiloPascal , "kPa" ) ;
234
274
MapUnitToAbbreviation ( Unit . MegaPascal , "MPa" ) ;
235
275
MapUnitToAbbreviation ( Unit . KilogramForcePerSquareCentimeter , "kgf/cm²" ) ;
276
+ MapUnitToAbbreviation ( Unit . Psi , "psi" ) ;
277
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareCentimeter , "N/cm²" ) ;
278
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareMillimeter , "N/mm²" ) ;
279
+ MapUnitToAbbreviation ( Unit . NewtonPerSquareMeter , "N/m²" ) ;
280
+ MapUnitToAbbreviation ( Unit . Bar , "bar" ) ;
281
+ MapUnitToAbbreviation ( Unit . TechnicalAtmosphere , "at" ) ;
282
+ MapUnitToAbbreviation ( Unit . Atmosphere , "atm" ) ;
283
+ MapUnitToAbbreviation ( Unit . Torr , "Torr" ) ;
284
+
285
+ // Forces
286
+ MapUnitToAbbreviation ( Unit . Kilonewton , "kN" ) ;
287
+ MapUnitToAbbreviation ( Unit . Newton , "N" ) ;
288
+ MapUnitToAbbreviation ( Unit . KilogramForce , "kgf" ) ;
289
+ MapUnitToAbbreviation ( Unit . Dyn , "dyn" ) ;
290
+
291
+ // Area
292
+ MapUnitToAbbreviation ( Unit . SquareKilometer , "km²" ) ;
293
+ MapUnitToAbbreviation ( Unit . SquareMeter , "m²" ) ;
294
+ MapUnitToAbbreviation ( Unit . SquareDecimeter , "dm²" ) ;
295
+ MapUnitToAbbreviation ( Unit . SquareCentimeter , "cm²" ) ;
296
+ MapUnitToAbbreviation ( Unit . SquareMillimeter , "mm²" ) ;
297
+
298
+ // Angle
299
+ MapUnitToAbbreviation ( Unit . Degree , "°" ) ;
300
+ MapUnitToAbbreviation ( Unit . Radian , "rad" ) ;
301
+ MapUnitToAbbreviation ( Unit . Gradian , "g" ) ;
302
+
303
+ // Volumes
304
+ MapUnitToAbbreviation ( Unit . CubicKilometer , "km³" ) ;
305
+ MapUnitToAbbreviation ( Unit . CubicMeter , "m³" ) ;
306
+ MapUnitToAbbreviation ( Unit . CubicDecimeter , "dm³" ) ;
307
+ MapUnitToAbbreviation ( Unit . CubicCentimeter , "cm³" ) ;
308
+ MapUnitToAbbreviation ( Unit . CubicMillimeter , "mm³" ) ;
309
+ MapUnitToAbbreviation ( Unit . Hectoliter , "hl" ) ;
310
+ MapUnitToAbbreviation ( Unit . Liter , "l" ) ;
311
+ MapUnitToAbbreviation ( Unit . Deciliter , "dl" ) ;
312
+ MapUnitToAbbreviation ( Unit . Centiliter , "cl" ) ;
313
+ MapUnitToAbbreviation ( Unit . Milliliter , "ml" ) ;
314
+
315
+ // Torque
316
+ MapUnitToAbbreviation ( Unit . Newtonmeter , "N·m" ) ;
317
+
318
+ // Generic / Other
319
+ MapUnitToAbbreviation ( Unit . Piece , "piece" ) ;
320
+ MapUnitToAbbreviation ( Unit . Percent , "%" ) ;
321
+
322
+ // Electric potential
323
+ MapUnitToAbbreviation ( Unit . Volt , "V" ) ;
324
+
325
+ // Times
326
+ MapUnitToAbbreviation ( Unit . Nanosecond , "ns" ) ;
327
+ MapUnitToAbbreviation ( Unit . Microsecond , "μs" ) ;
328
+ MapUnitToAbbreviation ( Unit . Millisecond , "ms" ) ;
329
+ MapUnitToAbbreviation ( Unit . Second , "s" ) ;
330
+ MapUnitToAbbreviation ( Unit . Minute , "min" ) ;
331
+ MapUnitToAbbreviation ( Unit . Hour , "h" ) ;
332
+ MapUnitToAbbreviation ( Unit . Day , "d" ) ;
333
+ MapUnitToAbbreviation ( Unit . Week , "week" ) ;
334
+
335
+ // Cooking units
336
+ MapUnitToAbbreviation ( Unit . Tablespoon , "tbsp." ) ;
337
+ MapUnitToAbbreviation ( Unit . Teaspoon , "tsp." ) ;
236
338
237
339
// Flow
238
340
MapUnitToAbbreviation ( Unit . CubicMeterPerSecond , "m³/s" ) ;
0 commit comments