From 3db48eac4f18578f97d042d733af320045f9b55b Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:09:53 +0100 Subject: [PATCH 01/13] Update python_toolbox.cpp --- apps/code/python_toolbox.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/code/python_toolbox.cpp b/apps/code/python_toolbox.cpp index 55989b01d..2b82bfec9 100644 --- a/apps/code/python_toolbox.cpp +++ b/apps/code/python_toolbox.cpp @@ -167,12 +167,21 @@ const ToolboxMessageTree TurtleModuleChildren[] = { ToolboxMessageTree::Leaf(I18n::Message::PythonTurtleCommandGrey, I18n::Message::PythonTurtleGrey, false) }; +const ToolboxMessageTree timeModuleChildren[] = { + ToolboxMessageTree::Leaf(I18n::Message::PythonTimeCommandImportFrom, I18n::Message::PythonTimeFromImport, false), + ToolboxMessageTree::Leaf(I18n::Message::PythonCommandImportTime, I18n::Message::PythonTimeImport, false), + ToolboxMessageTree::Leaf(I18n::Message::PythonCommandTimeFunction, I18n::Message::PythonTimePrefix, false), + ToolboxMessageTree::Leaf(I18n::Message::PythonTimeCommandSleepDemo, I18n::Message::PythonTimeSleep, false, I18n::Message::PythonTimeCommandSleep), + ToolboxMessageTree::Leaf(I18n::Message::PythonTimeCommandMonotonic, I18n::Message::PythonTimeMonotonic, false) +}; + const ToolboxMessageTree modulesChildren[] = { ToolboxMessageTree::Node(I18n::Message::MathModule, MathModuleChildren), ToolboxMessageTree::Node(I18n::Message::CmathModule, CMathModuleChildren), ToolboxMessageTree::Node(I18n::Message::RandomModule, RandomModuleChildren), ToolboxMessageTree::Node(I18n::Message::TurtleModule, TurtleModuleChildren), - ToolboxMessageTree::Node(I18n::Message::KandinskyModule, KandinskyModuleChildren) + ToolboxMessageTree::Node(I18n::Message::KandinskyModule, KandinskyModuleChildren), + ToolboxMessageTree::Node(I18n::Message::PythonTimeModule, timeModuleChildren) }; const ToolboxMessageTree catalogChildren[] = { From 9348ba9e56e8cdff78ccbcd42faf75596e190927 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:10:25 +0100 Subject: [PATCH 02/13] Update catalog.universal.i18n --- apps/code/catalog.universal.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.universal.i18n b/apps/code/catalog.universal.i18n index 24f35baba..4958b49d1 100644 --- a/apps/code/catalog.universal.i18n +++ b/apps/code/catalog.universal.i18n @@ -141,3 +141,9 @@ PythonTurtleCommandShowturtle = "showturtle()" PythonTurtleCommandSpeed = "speed(x)" PythonTurtleCommandWhite = "'white'" PythonTurtleCommandYellow = "'yellow'" +PythonTimeCommandImportFrom = "from time import *" +PythonCommandImportTime = "import time" +PythonCommandTimeFunction = "time.function" +PythonTimeCommandSleep = "sleep()" +PythonTimeCommandSleepDemo = "sleep(n)" +PythonTimeCommandMonotonic = "monotonic()" From 1e4d97e323ebfad356e506679e95a03aaf7cfcdb Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:10:56 +0100 Subject: [PATCH 03/13] Update catalog.de.i18n --- apps/code/catalog.de.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.de.i18n b/apps/code/catalog.de.i18n index fa6a0999d..8a2cf7dc9 100644 --- a/apps/code/catalog.de.i18n +++ b/apps/code/catalog.de.i18n @@ -128,3 +128,9 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" +PythonTimeModule = "Time" +PythonTimeFromImport = "Import time module" +PythonTimeImport = "Import time module" +PythonTimePrefix = "time module function prefix" +PythonTimeSleep = "Warten Sie n Sekunden lang" +PythonTimeMonotonic = "Monotone Zeit zurückgeben" From 49b5c6c22d5ba267a9c3208f37a767d212bfffe3 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:11:20 +0100 Subject: [PATCH 04/13] Update catalog.en.i18n --- apps/code/catalog.en.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.en.i18n b/apps/code/catalog.en.i18n index 312851e59..6e5feecd2 100644 --- a/apps/code/catalog.en.i18n +++ b/apps/code/catalog.en.i18n @@ -128,3 +128,9 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" +PythonTimeModule = "Time" +PythonTimeFromImport = "Import time module" +PythonTimeImport = "Import time module" +PythonTimePrefix = "time module function prefix" +PythonTimeSleep = "Wait for n second" +PythonTimeMonotonic = "Return monotonic time" From 3ad3ef6be45a701634401c9e05f1ea88c3019157 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:11:51 +0100 Subject: [PATCH 05/13] Update catalog.es.i18n --- apps/code/catalog.es.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.es.i18n b/apps/code/catalog.es.i18n index 312851e59..efd4ae58e 100644 --- a/apps/code/catalog.es.i18n +++ b/apps/code/catalog.es.i18n @@ -128,3 +128,9 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" +PythonTimeModule = "Time" +PythonTimeFromImport = "Import time module" +PythonTimeImport = "Import time module" +PythonTimePrefix = "time module function prefix" +PythonTimeSleep = "Esperar n segundos" +PythonTimeMonotonic = "Tiempo monótono de retorno" From 78e66620f7895e9b3f9c93d6986e3d7ba9a3d108 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:12:16 +0100 Subject: [PATCH 06/13] Update catalog.fr.i18n --- apps/code/catalog.fr.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.fr.i18n b/apps/code/catalog.fr.i18n index 847a45b43..5efc654bd 100644 --- a/apps/code/catalog.fr.i18n +++ b/apps/code/catalog.fr.i18n @@ -128,3 +128,9 @@ PythonTurtleSpeed = "Vitesse du tracé entre 0 et 10" PythonTurtleWhite = "Couleur blanche" PythonTurtleYellow = "Couleur jaune" PythonUniform = "Nombre décimal dans [a,b]" +PythonTimeModule = "Time" +PythonTimeFromImport = "Importation du module temps" +PythonTimeImport = "Importation du module temps" +PythonTimePrefix = "Préfixe fonction du module temps" +PythonTimeSleep = "Attendre n secondes" +PythonTimeMonotonic = "Retorune le temps monotonic" From 5ce621b7c50da9e8852fe4fd8216236744c364f9 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 10:12:37 +0100 Subject: [PATCH 07/13] Update catalog.pt.i18n --- apps/code/catalog.pt.i18n | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/code/catalog.pt.i18n b/apps/code/catalog.pt.i18n index e77aaf28b..3eb667383 100644 --- a/apps/code/catalog.pt.i18n +++ b/apps/code/catalog.pt.i18n @@ -128,3 +128,9 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" +PythonTimeModule = "Time" +PythonTimeFromImport = "Import time module" +PythonTimeImport = "Import time module" +PythonTimePrefix = "time module function prefix" +PythonTimeSleep = "Aguardar n segundos" +PythonTimeMonotonic = "Retornar tempo monotônico" From ac6e60e2ebf0cadf01616804163018e93d2e2d40 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:50:15 +0100 Subject: [PATCH 08/13] Update catalog.de.i18n --- apps/code/catalog.de.i18n | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/code/catalog.de.i18n b/apps/code/catalog.de.i18n index 8a2cf7dc9..d7425f15a 100644 --- a/apps/code/catalog.de.i18n +++ b/apps/code/catalog.de.i18n @@ -128,7 +128,6 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" -PythonTimeModule = "Time" PythonTimeFromImport = "Import time module" PythonTimeImport = "Import time module" PythonTimePrefix = "time module function prefix" From bc9f5d964a61ce1ef905c41353f480bc642b8b20 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:51:27 +0100 Subject: [PATCH 09/13] Update catalog.en.i18n --- apps/code/catalog.en.i18n | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/code/catalog.en.i18n b/apps/code/catalog.en.i18n index 6e5feecd2..150277610 100644 --- a/apps/code/catalog.en.i18n +++ b/apps/code/catalog.en.i18n @@ -128,7 +128,6 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" -PythonTimeModule = "Time" PythonTimeFromImport = "Import time module" PythonTimeImport = "Import time module" PythonTimePrefix = "time module function prefix" From ab8ecd767ab6431567c9c99947e2d87e79b4c365 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:52:06 +0100 Subject: [PATCH 10/13] Update catalog.es.i18n --- apps/code/catalog.es.i18n | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/code/catalog.es.i18n b/apps/code/catalog.es.i18n index efd4ae58e..fbd41a5ed 100644 --- a/apps/code/catalog.es.i18n +++ b/apps/code/catalog.es.i18n @@ -128,7 +128,6 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" -PythonTimeModule = "Time" PythonTimeFromImport = "Import time module" PythonTimeImport = "Import time module" PythonTimePrefix = "time module function prefix" From f2a79e9970f6f11bc0d44122ef207a22f8914691 Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:52:34 +0100 Subject: [PATCH 11/13] Update catalog.fr.i18n --- apps/code/catalog.fr.i18n | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/code/catalog.fr.i18n b/apps/code/catalog.fr.i18n index 5efc654bd..99d42f55b 100644 --- a/apps/code/catalog.fr.i18n +++ b/apps/code/catalog.fr.i18n @@ -128,7 +128,6 @@ PythonTurtleSpeed = "Vitesse du tracé entre 0 et 10" PythonTurtleWhite = "Couleur blanche" PythonTurtleYellow = "Couleur jaune" PythonUniform = "Nombre décimal dans [a,b]" -PythonTimeModule = "Time" PythonTimeFromImport = "Importation du module temps" PythonTimeImport = "Importation du module temps" PythonTimePrefix = "Préfixe fonction du module temps" From 83a89a0151bd55897c09455ccc16ec68fa50710a Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:52:50 +0100 Subject: [PATCH 12/13] Update catalog.pt.i18n --- apps/code/catalog.pt.i18n | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/code/catalog.pt.i18n b/apps/code/catalog.pt.i18n index 3eb667383..ad3f43d97 100644 --- a/apps/code/catalog.pt.i18n +++ b/apps/code/catalog.pt.i18n @@ -128,7 +128,6 @@ PythonTurtleSpeed = "Drawing speed between 0 and 10" PythonTurtleWhite = "White color" PythonTurtleYellow = "Yellow color" PythonUniform = "Floating point number in [a,b]" -PythonTimeModule = "Time" PythonTimeFromImport = "Import time module" PythonTimeImport = "Import time module" PythonTimePrefix = "time module function prefix" From e3da9507044596e0fd3ca057fffa72e7efdfd84f Mon Sep 17 00:00:00 2001 From: redgl0w <43498612+RedGl0w@users.noreply.github.com> Date: Sat, 2 Nov 2019 15:53:09 +0100 Subject: [PATCH 13/13] Update catalog.universal.i18n --- apps/code/catalog.universal.i18n | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/code/catalog.universal.i18n b/apps/code/catalog.universal.i18n index 4958b49d1..e331df515 100644 --- a/apps/code/catalog.universal.i18n +++ b/apps/code/catalog.universal.i18n @@ -141,6 +141,7 @@ PythonTurtleCommandShowturtle = "showturtle()" PythonTurtleCommandSpeed = "speed(x)" PythonTurtleCommandWhite = "'white'" PythonTurtleCommandYellow = "'yellow'" +PythonTimeModule = "time" PythonTimeCommandImportFrom = "from time import *" PythonCommandImportTime = "import time" PythonCommandTimeFunction = "time.function"