From 29df705b116d238686663950dbff570650356fa9 Mon Sep 17 00:00:00 2001 From: RedGl0w Date: Tue, 5 Nov 2019 07:13:56 +0100 Subject: [PATCH 1/8] Added constants --- apps/math_toolbox.cpp | 11 +++++++++-- apps/shared.universal.i18n | 3 +++ apps/toolbox.de.i18n | 4 ++++ apps/toolbox.en.i18n | 4 ++++ apps/toolbox.es.i18n | 4 ++++ apps/toolbox.fr.i18n | 4 ++++ apps/toolbox.pt.i18n | 4 ++++ 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/apps/math_toolbox.cpp b/apps/math_toolbox.cpp index 450038d48..a01af1c42 100644 --- a/apps/math_toolbox.cpp +++ b/apps/math_toolbox.cpp @@ -364,13 +364,20 @@ const ToolboxMessageTree Electromagnetism[] = { ToolboxMessageTree::Leaf(I18n::Message::CoulombTag, I18n::Message::Coulomb, false, I18n::Message::Coulomb), ToolboxMessageTree::Leaf(I18n::Message::Vacuum_permittivityTag, I18n::Message::Vacuum_permittivity, false, I18n::Message::Vacuum_permittivity), ToolboxMessageTree::Leaf(I18n::Message::Vacuum_permeabilityTag, I18n::Message::Vacuum_permeability, false, I18n::Message::Vacuum_permeability), - ToolboxMessageTree::Leaf(I18n::Message::PlanckTag, I18n::Message::Planck, false, I18n::Message::Planck) + ToolboxMessageTree::Leaf(I18n::Message::PlanckTag, I18n::Message::Planck, false, I18n::Message::Planck), + ToolboxMessageTree::Leaf(I18n::Message::ElementalChargeTag, I18n::Message::ElementalCharge, false, I18n::Message::ElementalCharge) +}; + +const ToolboxMessageTree Gravitation[] = { + ToolboxMessageTree::Leaf(I18n::Message::GAccelerationTag, I18n::Message::GAcceleration, false, I18n::Message::GAcceleration), + ToolboxMessageTree::Leaf(I18n::Message::GConstantTag, I18n::Message::GConstant, false, I18n::Message::GConstant) }; const ToolboxMessageTree Physics[] = { ToolboxMessageTree::Node(I18n::Message::UnitOfMesurement, UnitOfMesurement), ToolboxMessageTree::Node(I18n::Message::Thermodynamics, Thermodynamics), - ToolboxMessageTree::Node(I18n::Message::Electromagnetism, Electromagnetism) + ToolboxMessageTree::Node(I18n::Message::Electromagnetism, Electromagnetism), + ToolboxMessageTree::Node(I18n::Message::Gravitation, Gravitation) }; const ToolboxMessageTree menu[] = { diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index 92d5f5a44..ac518d64d 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -227,3 +227,6 @@ Planck = "6.62607015*10^-34" ElectronMass = "9.109383*10^-31" ProtonMass = "1.672649*10^-27" NeutronMass = "1.67493*10^-27" +ElementalCharge = "1,60217662·^-19" +GAcceleration = "9,80665" +GConstant = "6.674*10^-11" \ No newline at end of file diff --git a/apps/toolbox.de.i18n b/apps/toolbox.de.i18n index e9a0200e6..8704dd9ad 100644 --- a/apps/toolbox.de.i18n +++ b/apps/toolbox.de.i18n @@ -322,3 +322,7 @@ PlanckTag = "Planck - Konstante (m^2·kg·s^-1)" ElectronMassTag = "Masse eines Elektrons (kg)" ProtonMassTag = "Masse eines Protons (kg)" NeutronMassTag = "Masse eines Neutrons (kg)" +Gravitation = "Gravitation" +ElementalChargeTag = "Elementarladung (C)" +GAccelerationTag = "Beschleunigung (m·s^-2)" +GConstantTag = "Konstant (m^3·kg^-1·s^-2)" \ No newline at end of file diff --git a/apps/toolbox.en.i18n b/apps/toolbox.en.i18n index 34e51be19..00c0f8ac4 100644 --- a/apps/toolbox.en.i18n +++ b/apps/toolbox.en.i18n @@ -322,3 +322,7 @@ PlanckTag = "Planck constant (m^2·kg·s^-1)" ElectronMassTag = "Mass of an electron (kg)" ProtonMassTag = "Mass of a proton (kg)" NeutronMassTag = "Mass of a neutron (kg)" +Gravitation = "Gravitation" +ElementalChargeTag = "Elemental Charge (C)" +GAccelerationTag = "Acceleration (m·s^-2)" +GConstantTag = "Constant (m^3·kg^-1·s^-2)" \ No newline at end of file diff --git a/apps/toolbox.es.i18n b/apps/toolbox.es.i18n index 2cd19e2de..0ba807a5f 100644 --- a/apps/toolbox.es.i18n +++ b/apps/toolbox.es.i18n @@ -322,3 +322,7 @@ PlanckTag = "Constante de Planck (m^2·kg·s^-1)" ElectronMassTag = "Masa de un electrón (kg)" ProtonMassTag = "Masa de un protón (kg)" NeutronMassTag = "Masa de un neutrón (kg)" +Gravitation = "Gravitación" +ElementalChargeTag = "Carga elemental (C)" +GAccelerationTag = "Aceleración (m·s^-2)" +GConstantTag = "Constante (m^3·kg^-1·s^-2)" \ No newline at end of file diff --git a/apps/toolbox.fr.i18n b/apps/toolbox.fr.i18n index 8a6de9dbb..113bd4a10 100644 --- a/apps/toolbox.fr.i18n +++ b/apps/toolbox.fr.i18n @@ -322,3 +322,7 @@ PlanckTag = "Const de Planck (m^2·kg·s^-1)" ElectronMassTag = "Masse d'un électron (kg)" ProtonMassTag = "Masse d'un proton (kg)" NeutronMassTag = "Masse d'un neutron (kg)" +Gravitation = "Gravitation" +ElementalChargeTag = "Charge élémentaire (C)" +GAccelerationTag = "Accélération (m·s^-2)" +GConstantTag = "Constante (m^3·kg^-1·s^-2)" \ No newline at end of file diff --git a/apps/toolbox.pt.i18n b/apps/toolbox.pt.i18n index 3e5c5131a..c36ebcc06 100644 --- a/apps/toolbox.pt.i18n +++ b/apps/toolbox.pt.i18n @@ -323,3 +323,7 @@ PlanckTag = "Constante de Planck (m^2·kg·s^-1)" ElectronMassTag = "Massa de um elétron (kg)" ProtonMassTag = "Massa de um próton (kg)" NeutronMassTag = "Massa de um nêutron (kg)" +Gravitation = "Gravitação" +ElementalChargeTag = "Carga elementar (C)" +GAccelerationTag = "Aceleração (m·s^-2)" +GConstantTag = "Constante (m^3·kg^-1·s^-2)" \ No newline at end of file From 88d482af8ecc327560d77334e124871523a7861b Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:36:31 +0100 Subject: [PATCH 2/8] Update apps/shared.universal.i18n Co-Authored-By: Quentin --- apps/shared.universal.i18n | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index ac518d64d..2cf07cf80 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -224,9 +224,9 @@ Coulomb = "8.9875517887*10^9" Vacuum_permittivity = "8.8541878128*10^-12" Vacuum_permeability = "4π*10^-7" Planck = "6.62607015*10^-34" -ElectronMass = "9.109383*10^-31" +ElectronMass = "9.109383·10^-31" ProtonMass = "1.672649*10^-27" NeutronMass = "1.67493*10^-27" ElementalCharge = "1,60217662·^-19" GAcceleration = "9,80665" -GConstant = "6.674*10^-11" \ No newline at end of file +GConstant = "6.674*10^-11" From 03a201eecc842b46b0cdefebfd59acd46dee7c6e Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:36:44 +0100 Subject: [PATCH 3/8] Update apps/shared.universal.i18n Co-Authored-By: Quentin --- apps/shared.universal.i18n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index 2cf07cf80..ba0a9e043 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -227,6 +227,6 @@ Planck = "6.62607015*10^-34" ElectronMass = "9.109383·10^-31" ProtonMass = "1.672649*10^-27" NeutronMass = "1.67493*10^-27" -ElementalCharge = "1,60217662·^-19" +ElementalCharge = "1.60217662·10^-19" GAcceleration = "9,80665" GConstant = "6.674*10^-11" From b25dd3397deef0b4724b126a13d1ba691413bd92 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:36:52 +0100 Subject: [PATCH 4/8] Update apps/shared.universal.i18n Co-Authored-By: Quentin --- apps/shared.universal.i18n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index ba0a9e043..f5a302eb9 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -228,5 +228,5 @@ ElectronMass = "9.109383·10^-31" ProtonMass = "1.672649*10^-27" NeutronMass = "1.67493*10^-27" ElementalCharge = "1.60217662·10^-19" -GAcceleration = "9,80665" +GAcceleration = "9.80665" GConstant = "6.674*10^-11" From fbe0ffa924a9659e2b987d8ba74a0feccc0813d1 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:37:07 +0100 Subject: [PATCH 5/8] Update apps/shared.universal.i18n Co-Authored-By: Quentin --- apps/shared.universal.i18n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index f5a302eb9..470264240 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -225,7 +225,7 @@ Vacuum_permittivity = "8.8541878128*10^-12" Vacuum_permeability = "4π*10^-7" Planck = "6.62607015*10^-34" ElectronMass = "9.109383·10^-31" -ProtonMass = "1.672649*10^-27" +ProtonMass = "1.672649·10^-27" NeutronMass = "1.67493*10^-27" ElementalCharge = "1.60217662·10^-19" GAcceleration = "9.80665" From 405150f97866a78abc74c49c73eb52e41a34c669 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:38:05 +0100 Subject: [PATCH 6/8] Update apps/shared.universal.i18n Co-Authored-By: Quentin --- apps/shared.universal.i18n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index 470264240..c07aa490d 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -226,7 +226,7 @@ Vacuum_permeability = "4π*10^-7" Planck = "6.62607015*10^-34" ElectronMass = "9.109383·10^-31" ProtonMass = "1.672649·10^-27" -NeutronMass = "1.67493*10^-27" +NeutronMass = "1.67493·10^-27" ElementalCharge = "1.60217662·10^-19" GAcceleration = "9.80665" GConstant = "6.674*10^-11" From 0dba23eee6b095399bb40725d4fa21fc8ed7dab3 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:42:32 +0100 Subject: [PATCH 7/8] Update shared.universal.i18n --- apps/shared.universal.i18n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index c07aa490d..61041f7f1 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -229,4 +229,4 @@ ProtonMass = "1.672649·10^-27" NeutronMass = "1.67493·10^-27" ElementalCharge = "1.60217662·10^-19" GAcceleration = "9.80665" -GConstant = "6.674*10^-11" +GConstant = "6.674·10^-11" From e9ecb700ebb8a68ad401617d6278ecd643bdbe34 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:51:51 +0100 Subject: [PATCH 8/8] Update shared.universal.i18n --- apps/shared.universal.i18n | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/shared.universal.i18n b/apps/shared.universal.i18n index 61041f7f1..9b88d865d 100644 --- a/apps/shared.universal.i18n +++ b/apps/shared.universal.i18n @@ -215,15 +215,15 @@ DannySimmons = "Danny Simmons " JoachimLeFournis = "Joachim Le Fournis " JeanBaptisteBoric = "Jean-Baptiste Boric " MaximeFriess = "Maxime Friess " -SpeedOfLight = "2.998*10^8" -YearLight = "9.461*10^12" -Boltzmann = "1.38064852*10^-23" -Avogadro = "6.02214076*10^23" +SpeedOfLight = "2.998·10^8" +YearLight = "9.461·10^12" +Boltzmann = "1.38064852·10^-23" +Avogadro = "6.02214076·10^23" Gas = "8.31446261815324" -Coulomb = "8.9875517887*10^9" -Vacuum_permittivity = "8.8541878128*10^-12" -Vacuum_permeability = "4π*10^-7" -Planck = "6.62607015*10^-34" +Coulomb = "8.9875517887·10^9" +Vacuum_permittivity = "8.8541878128·10^-12" +Vacuum_permeability = "4π·10^-7" +Planck = "6.62607015·10^-34" ElectronMass = "9.109383·10^-31" ProtonMass = "1.672649·10^-27" NeutronMass = "1.67493·10^-27"