| 10 | namespace Parsing { |
| 11 | |
| 12 | QString constantGroupsToString(ConstantGroups group) { |
| 13 | switch (group) { |
| 14 | case ConstantGroups::ProgrammingConstants: |
| 15 | return i18n("Programming constants"); |
| 16 | case ConstantGroups::MathematicalConstants: |
| 17 | return i18n("Mathematical constants"); |
| 18 | case ConstantGroups::FundamentalConstants: |
| 19 | return i18n("Fundamental constants"); |
| 20 | case ConstantGroups::AstronomyAndAstrophysics: |
| 21 | return i18n("Astronomy and Astrophysics"); |
| 22 | case ConstantGroups::AtomicAndNuclearPhysics: |
| 23 | return i18n("Atomic and Nuclear Physics"); |
| 24 | case ConstantGroups::MeasurementOfTime: |
| 25 | return i18n("Measurement of Time"); |
| 26 | case ConstantGroups::ImperialUnits: |
| 27 | return i18n("Imperial Units"); |
| 28 | case ConstantGroups::SpeedAndNauticalUnits: |
| 29 | return i18n("Speed and Nautical Units"); |
| 30 | case ConstantGroups::PrintersUnits: |
| 31 | return i18n("Printers Units"); |
| 32 | case ConstantGroups::VolumeAreaAndLength: |
| 33 | return i18n("Volume, Area and Length"); |
| 34 | case ConstantGroups::MassAndWeight: |
| 35 | return i18n("Mass and Weight"); |
| 36 | case ConstantGroups::ThermalEnergyAndPower: |
| 37 | return i18n("Thermal Energy and Power"); |
| 38 | case ConstantGroups::Pressure: |
| 39 | return i18n("Pressure"); |
| 40 | case ConstantGroups::Viscosity: |
| 41 | return i18n("Viscosity"); |
| 42 | case ConstantGroups::LightAndIllumination: |
| 43 | return i18n("Light and Illumination"); |
| 44 | case ConstantGroups::Radioactivity: |
| 45 | return i18n("Radioactivity"); |
| 46 | case ConstantGroups::ForceAndEnergy: |
| 47 | return i18n("Force and Energy"); |
| 48 | case ConstantGroups::END: |
| 49 | break; |
| 50 | } |
| 51 | return i18n("Unknown Constant"); |
| 52 | } |
| 53 | |
| 54 | // clang-format off |
| 55 | |