system: Add reboot and shutdown buttons

This commit is contained in:
Jordan Ruthe committed 2021-01-10 14:22:18 -05:00
1 parent 0453627d40
commit 37f8a5d632
9 files changed
+241 -117

No files matched your search

+7
View File
@@ -1,5 +1,12 @@
## Changelog
#### 2021 01 10
* Added system reboot/shutdown buttons to systems panel.
#### 2021 01 09
* Better RTL support (most panels now properly support RTL)
* Fixes to install script for latest version of raspbian.
#### 2021 01 08
* Added settings panel. Invert axis and hiding macros can now be configured from within KlipperScreen
+43 -23
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-08 16:20+0000\n"
"POT-Creation-Date: 2021-01-10 19:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -21,11 +21,11 @@ msgstr ""
msgid "?"
msgstr ""
#: panels/zcalibrate.py:70
#: panels/zcalibrate.py:71
msgid "Abort"
msgstr ""
#: panels/zcalibrate.py:67
#: panels/zcalibrate.py:68
msgid "Accept"
msgstr ""
@@ -41,6 +41,14 @@ msgstr ""
msgid "Are you sure you wish to cancel this print?"
msgstr ""
#: panels/system.py:29
msgid "Are you sure you wish to reboot the system?"
msgstr ""
#: panels/system.py:32
msgid "Are you sure you wish to shutdown the system?"
msgstr ""
#: ks_includes/KlipperScreen.conf:107
msgid "Bed Level"
msgstr ""
@@ -53,7 +61,7 @@ msgstr ""
msgid "Byte Position (Default)"
msgstr ""
#: screen.py:455 panels/job_status.py:267 panels/print.py:193
#: screen.py:456 panels/job_status.py:267 panels/print.py:193
msgid "Cancel"
msgstr ""
@@ -65,13 +73,13 @@ msgstr ""
msgid "Cancel Print"
msgstr ""
#: screen.py:289
#: screen.py:290
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
#: panels/bed_mesh.py:172 panels/temperature.py:149
#: panels/bed_mesh.py:172 panels/temperature.py:150
msgid "Close"
msgstr ""
@@ -79,7 +87,7 @@ msgstr ""
msgid "Configuration"
msgstr ""
#: screen.py:454
#: screen.py:455
msgid "Continue"
msgstr ""
@@ -99,7 +107,7 @@ msgstr ""
msgid "Disable Motors"
msgstr ""
#: panels/bed_level.py:101
#: panels/bed_level.py:107
msgid "Disable XY"
msgstr ""
@@ -107,7 +115,7 @@ msgstr ""
msgid "Displayed Macros"
msgstr ""
#: panels/zcalibrate.py:63
#: panels/zcalibrate.py:64
msgid "Distance (mm)"
msgstr ""
@@ -168,11 +176,11 @@ msgstr ""
msgid "Firmware Restart"
msgstr ""
#: screen.py:284 panels/job_status.py:301
#: screen.py:285 panels/job_status.py:301
msgid "Go Back"
msgstr ""
#: panels/bed_level.py:98 panels/move.py:40 ks_includes/KlipperScreen.conf:39
#: panels/bed_level.py:104 panels/move.py:40 ks_includes/KlipperScreen.conf:39
msgid "Home All"
msgstr ""
@@ -201,7 +209,7 @@ msgid "Increase"
msgstr ""
#. self._load_panels()
#: screen.py:136
#: screen.py:137
msgid "Initializing"
msgstr ""
@@ -229,35 +237,35 @@ msgstr ""
msgid "Klipper Restart"
msgstr ""
#: panels/system.py:35
#: panels/system.py:42
msgid "Klipper Version"
msgstr ""
#: screen.py:384
#: screen.py:385
msgid "Klipper has disconnected"
msgstr ""
#: screen.py:395
#: screen.py:396
msgid ""
"Klipper has encountered an error with the micro-controller.\n"
"Please recompile and flash."
msgstr ""
#: screen.py:399
#: screen.py:400
msgid "Klipper has encountered an error."
msgstr ""
#: screen.py:391
#: screen.py:392
msgid ""
"Klipper has encountered an error.\n"
"Issue a FIRMWARE_RESTART to attempt fixing the issue."
msgstr ""
#: screen.py:417
#: screen.py:418
msgid "Klipper has shutdown"
msgstr ""
#: screen.py:413
#: screen.py:414
msgid "Klipper is attempting to start"
msgstr ""
@@ -265,7 +273,7 @@ msgstr ""
msgid "Klipper will reboot"
msgstr ""
#: panels/system.py:39
#: panels/system.py:46
msgid "KlipperScreen Version"
msgstr ""
@@ -273,7 +281,7 @@ msgstr ""
msgid "Left:"
msgstr ""
#: panels/system.py:57
#: panels/system.py:66
msgid "Load Average"
msgstr ""
@@ -297,7 +305,7 @@ msgstr ""
msgid "Move"
msgstr ""
#: panels/move.py:86
#: panels/move.py:91
msgid "Move Distance (mm)"
msgstr ""
@@ -373,7 +381,7 @@ msgstr ""
msgid "Save configuration."
msgstr ""
#: panels/bed_level.py:108
#: panels/bed_level.py:114
msgid "Screws Adjust"
msgstr ""
@@ -410,6 +418,18 @@ msgstr ""
msgid "System"
msgstr ""
#: panels/system.py:27
msgid ""
"System\n"
"Restart"
msgstr ""
#: panels/system.py:30
msgid ""
"System\n"
"Shutdown"
msgstr ""
#: panels/extrude.py:50 ks_includes/KlipperScreen.conf:84
#: ks_includes/KlipperScreen.conf:152
msgid "Temperature"
@@ -2,11 +2,11 @@
msgid "?"
msgstr ""
#: panels/zcalibrate.py:70
#: panels/zcalibrate.py:71
msgid "Abort"
msgstr "Abort"
#: panels/zcalibrate.py:67
#: panels/zcalibrate.py:68
msgid "Accept"
msgstr ""
@@ -22,6 +22,14 @@ msgstr ""
msgid "Are you sure you wish to cancel this print?"
msgstr ""
#: panels/system.py:29
msgid "Are you sure you wish to reboot the system?"
msgstr ""
#: panels/system.py:32
msgid "Are you sure you wish to shutdown the system?"
msgstr ""
#: ks_includes/KlipperScreen.conf:107
msgid "Bed Level"
msgstr ""
@@ -34,7 +42,7 @@ msgstr ""
msgid "Byte Position (Default)"
msgstr ""
#: screen.py:455 panels/job_status.py:267 panels/print.py:193
#: screen.py:456 panels/job_status.py:267 panels/print.py:193
msgid "Cancel"
msgstr ""
@@ -46,13 +54,13 @@ msgstr ""
msgid "Cancel Print"
msgstr ""
#: screen.py:289
#: screen.py:290
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
msgstr ""
#: panels/bed_mesh.py:172 panels/temperature.py:149
#: panels/bed_mesh.py:172 panels/temperature.py:150
msgid "Close"
msgstr ""
@@ -60,7 +68,7 @@ msgstr ""
msgid "Configuration"
msgstr ""
#: screen.py:454
#: screen.py:455
msgid "Continue"
msgstr ""
@@ -80,7 +88,7 @@ msgstr ""
msgid "Disable Motors"
msgstr ""
#: panels/bed_level.py:101
#: panels/bed_level.py:107
msgid "Disable XY"
msgstr ""
@@ -88,7 +96,7 @@ msgstr ""
msgid "Displayed Macros"
msgstr ""
#: panels/zcalibrate.py:63
#: panels/zcalibrate.py:64
msgid "Distance (mm)"
msgstr ""
@@ -149,11 +157,11 @@ msgstr ""
msgid "Firmware Restart"
msgstr ""
#: screen.py:284 panels/job_status.py:301
#: screen.py:285 panels/job_status.py:301
msgid "Go Back"
msgstr ""
#: panels/bed_level.py:98 panels/move.py:40 ks_includes/KlipperScreen.conf:39
#: panels/bed_level.py:104 panels/move.py:40 ks_includes/KlipperScreen.conf:39
msgid "Home All"
msgstr ""
@@ -182,7 +190,7 @@ msgid "Increase"
msgstr ""
#. self._load_panels()
#: screen.py:136
#: screen.py:137
msgid "Initializing"
msgstr ""
@@ -210,35 +218,35 @@ msgstr ""
msgid "Klipper Restart"
msgstr ""
#: panels/system.py:35
#: panels/system.py:42
msgid "Klipper Version"
msgstr ""
#: screen.py:384
#: screen.py:385
msgid "Klipper has disconnected"
msgstr ""
#: screen.py:395
#: screen.py:396
msgid ""
"Klipper has encountered an error with the micro-controller.\n"
"Please recompile and flash."
msgstr ""
#: screen.py:399
#: screen.py:400
msgid "Klipper has encountered an error."
msgstr ""
#: screen.py:391
#: screen.py:392
msgid ""
"Klipper has encountered an error.\n"
"Issue a FIRMWARE_RESTART to attempt fixing the issue."
msgstr ""
#: screen.py:417
#: screen.py:418
msgid "Klipper has shutdown"
msgstr ""
#: screen.py:413
#: screen.py:414
msgid "Klipper is attempting to start"
msgstr ""
@@ -246,7 +254,7 @@ msgstr ""
msgid "Klipper will reboot"
msgstr ""
#: panels/system.py:39
#: panels/system.py:46
msgid "KlipperScreen Version"
msgstr ""
@@ -254,7 +262,7 @@ msgstr ""
msgid "Left:"
msgstr ""
#: panels/system.py:57
#: panels/system.py:66
msgid "Load Average"
msgstr ""
@@ -278,7 +286,7 @@ msgstr ""
msgid "Move"
msgstr ""
#: panels/move.py:86
#: panels/move.py:91
msgid "Move Distance (mm)"
msgstr ""
@@ -354,7 +362,7 @@ msgstr ""
msgid "Save configuration."
msgstr ""
#: panels/bed_level.py:108
#: panels/bed_level.py:114
msgid "Screws Adjust"
msgstr ""
@@ -391,6 +399,18 @@ msgstr ""
msgid "System"
msgstr ""
#: panels/system.py:27
msgid ""
"System\n"
"Restart"
msgstr ""
#: panels/system.py:30
msgid ""
"System\n"
"Shutdown"
msgstr ""
#: panels/extrude.py:50 ks_includes/KlipperScreen.conf:84
#: ks_includes/KlipperScreen.conf:152
msgid "Temperature"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-08 16:20+0000\n"
"POT-Creation-Date: 2021-01-10 19:17+0000\n"
"PO-Revision-Date: 2021-01-03 23:18+0200\n"
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n"
"Language-Team: \n"
@@ -22,11 +22,11 @@ msgstr ""
msgid "?"
msgstr "?"
#: panels/zcalibrate.py:70
#: panels/zcalibrate.py:71
msgid "Abort"
msgstr "Annuler"
#: panels/zcalibrate.py:67
#: panels/zcalibrate.py:68
msgid "Accept"
msgstr "Accepter"
@@ -42,6 +42,16 @@ msgstr "Es tu sure de vouloir imprimer"
msgid "Are you sure you wish to cancel this print?"
msgstr "Es tu sure de vouloir annuler cette impression?"
#: panels/system.py:29
#, fuzzy
msgid "Are you sure you wish to reboot the system?"
msgstr "Es tu sure de vouloir annuler cette impression?"
#: panels/system.py:32
#, fuzzy
msgid "Are you sure you wish to shutdown the system?"
msgstr "Es tu sure de vouloir annuler cette impression?"
#: ks_includes/KlipperScreen.conf:107
msgid "Bed Level"
msgstr "Nivelage du plateau"
@@ -54,7 +64,7 @@ msgstr "Grille du plateau"
msgid "Byte Position (Default)"
msgstr ""
#: screen.py:455 panels/job_status.py:267 panels/print.py:193
#: screen.py:456 panels/job_status.py:267 panels/print.py:193
msgid "Cancel"
msgstr "Annuler"
@@ -66,7 +76,7 @@ msgstr "Annuler le changement"
msgid "Cancel Print"
msgstr "Annuler l'impression"
#: screen.py:289
#: screen.py:290
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
@@ -74,7 +84,7 @@ msgstr ""
"Verifier /tmp/KlipperScreen.log pour plus d'imformation.\n"
"SVP envoie une requte sur GITHUB pour obtenir de l'aide"
#: panels/bed_mesh.py:172 panels/temperature.py:149
#: panels/bed_mesh.py:172 panels/temperature.py:150
msgid "Close"
msgstr "Fermer"
@@ -82,7 +92,7 @@ msgstr "Fermer"
msgid "Configuration"
msgstr "Configuration"
#: screen.py:454
#: screen.py:455
msgid "Continue"
msgstr "Continuer"
@@ -102,7 +112,7 @@ msgstr "Diminuer"
msgid "Disable Motors"
msgstr "Déactiver les moteurs"
#: panels/bed_level.py:101
#: panels/bed_level.py:107
msgid "Disable XY"
msgstr "Deactiver XY"
@@ -110,7 +120,7 @@ msgstr "Deactiver XY"
msgid "Displayed Macros"
msgstr ""
#: panels/zcalibrate.py:63
#: panels/zcalibrate.py:64
msgid "Distance (mm)"
msgstr "Distance (mm)"
@@ -171,11 +181,11 @@ msgstr "Fin réglage"
msgid "Firmware Restart"
msgstr "Redemarrer le FW"
#: screen.py:284 panels/job_status.py:301
#: screen.py:285 panels/job_status.py:301
msgid "Go Back"
msgstr "Retourner"
#: panels/bed_level.py:98 panels/move.py:40 ks_includes/KlipperScreen.conf:39
#: panels/bed_level.py:104 panels/move.py:40 ks_includes/KlipperScreen.conf:39
msgid "Home All"
msgstr "Réinitialiser XYZ"
@@ -204,7 +214,7 @@ msgid "Increase"
msgstr "Augmenter"
#. self._load_panels()
#: screen.py:136
#: screen.py:137
msgid "Initializing"
msgstr "Initialisation"
@@ -233,15 +243,15 @@ msgstr "Redémarrer klipper"
msgid "Klipper Restart"
msgstr "Redémarrer klipper"
#: panels/system.py:35
#: panels/system.py:42
msgid "Klipper Version"
msgstr "Version de klipper"
#: screen.py:384
#: screen.py:385
msgid "Klipper has disconnected"
msgstr "Klipper s'est déconnecté"
#: screen.py:395
#: screen.py:396
msgid ""
"Klipper has encountered an error with the micro-controller.\n"
"Please recompile and flash."
@@ -249,22 +259,22 @@ msgstr ""
"Klipper a rencontré une erreur avec le microcontrôleur.\n"
"Veuillez recompiler et reflasher."
#: screen.py:399
#: screen.py:400
msgid "Klipper has encountered an error."
msgstr "Klipper a rencontré une erreur."
#: screen.py:391
#: screen.py:392
msgid ""
"Klipper has encountered an error.\n"
"Issue a FIRMWARE_RESTART to attempt fixing the issue."
msgstr ""
"Klipper a rencontré une erreur. Taper FIRMWARE_RESTART pour fixer l'erreur."
#: screen.py:417
#: screen.py:418
msgid "Klipper has shutdown"
msgstr "Klipper s'est arrêté"
#: screen.py:413
#: screen.py:414
msgid "Klipper is attempting to start"
msgstr "Klipper tente de démarrer"
@@ -272,7 +282,7 @@ msgstr "Klipper tente de démarrer"
msgid "Klipper will reboot"
msgstr "Klipper va redémarrer"
#: panels/system.py:39
#: panels/system.py:46
msgid "KlipperScreen Version"
msgstr "Version de KlipperScreen"
@@ -280,7 +290,7 @@ msgstr "Version de KlipperScreen"
msgid "Left:"
msgstr "Gauche:"
#: panels/system.py:57
#: panels/system.py:66
msgid "Load Average"
msgstr "Charge moyenne"
@@ -304,7 +314,7 @@ msgstr "Moyen"
msgid "Move"
msgstr "Mouvement"
#: panels/move.py:86
#: panels/move.py:91
msgid "Move Distance (mm)"
msgstr "Distance de mouvement (mm)"
@@ -380,7 +390,7 @@ msgstr "Enregistrer la config"
msgid "Save configuration."
msgstr "Enregistrer la configuration"
#: panels/bed_level.py:108
#: panels/bed_level.py:114
msgid "Screws Adjust"
msgstr "Ajuster les vis"
@@ -418,6 +428,19 @@ msgstr "Vitesse-"
msgid "System"
msgstr "Systeme"
#: panels/system.py:27
#, fuzzy
msgid ""
"System\n"
"Restart"
msgstr "Redémarrage"
#: panels/system.py:30
msgid ""
"System\n"
"Shutdown"
msgstr ""
#: panels/extrude.py:50 ks_includes/KlipperScreen.conf:84
#: ks_includes/KlipperScreen.conf:152
msgid "Temperature"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Klipperscreen\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-08 16:20+0000\n"
"POT-Creation-Date: 2021-01-10 19:17+0000\n"
"PO-Revision-Date: 2021-01-08 08:21-0500\n"
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n"
"Language-Team: \n"
@@ -24,11 +24,11 @@ msgstr ""
msgid "?"
msgstr "?"
#: panels/zcalibrate.py:70
#: panels/zcalibrate.py:71
msgid "Abort"
msgstr "בטל"
#: panels/zcalibrate.py:67
#: panels/zcalibrate.py:68
msgid "Accept"
msgstr "אשר"
@@ -44,6 +44,16 @@ msgstr "האם אתה בטוח שברצונך להדפיס"
msgid "Are you sure you wish to cancel this print?"
msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?"
#: panels/system.py:29
#, fuzzy
msgid "Are you sure you wish to reboot the system?"
msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?"
#: panels/system.py:32
#, fuzzy
msgid "Are you sure you wish to shutdown the system?"
msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?"
#: ks_includes/KlipperScreen.conf:107
msgid "Bed Level"
msgstr "פילוס מיטה"
@@ -56,7 +66,7 @@ msgstr "מיפוי מיטה"
msgid "Byte Position (Default)"
msgstr ""
#: screen.py:455 panels/job_status.py:267 panels/print.py:193
#: screen.py:456 panels/job_status.py:267 panels/print.py:193
msgid "Cancel"
msgstr "ביטול"
@@ -68,7 +78,7 @@ msgstr "בטל שינוי"
msgid "Cancel Print"
msgstr "בטל הדפסה"
#: screen.py:289
#: screen.py:290
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
@@ -76,7 +86,7 @@ msgstr ""
"בדוק KlipperScreen.log, בתיקית tmp ליותר פרטים.\n"
"אנא שלח דוח תקלה ב- GITHUB, לעזרה."
#: panels/bed_mesh.py:172 panels/temperature.py:149
#: panels/bed_mesh.py:172 panels/temperature.py:150
msgid "Close"
msgstr "סגור"
@@ -84,7 +94,7 @@ msgstr "סגור"
msgid "Configuration"
msgstr "קונפיגורציה"
#: screen.py:454
#: screen.py:455
msgid "Continue"
msgstr "המשך"
@@ -104,7 +114,7 @@ msgstr "הקטן"
msgid "Disable Motors"
msgstr "בטל מנועים"
#: panels/bed_level.py:101
#: panels/bed_level.py:107
msgid "Disable XY"
msgstr "בטל XY"
@@ -112,7 +122,7 @@ msgstr "בטל XY"
msgid "Displayed Macros"
msgstr ""
#: panels/zcalibrate.py:63
#: panels/zcalibrate.py:64
msgid "Distance (mm)"
msgstr "מרחק (מ''מ)"
@@ -173,11 +183,11 @@ msgstr "כיולים עדינים"
msgid "Firmware Restart"
msgstr "התחל קושחה"
#: screen.py:284 panels/job_status.py:301
#: screen.py:285 panels/job_status.py:301
msgid "Go Back"
msgstr "חזרה"
#: panels/bed_level.py:98 panels/move.py:40 ks_includes/KlipperScreen.conf:39
#: panels/bed_level.py:104 panels/move.py:40 ks_includes/KlipperScreen.conf:39
msgid "Home All"
msgstr "איפוס XYZ"
@@ -206,7 +216,7 @@ msgid "Increase"
msgstr "הגדל"
#. self._load_panels()
#: screen.py:136
#: screen.py:137
msgid "Initializing"
msgstr "מאתחל"
@@ -235,25 +245,25 @@ msgstr "אתחול קליפר"
msgid "Klipper Restart"
msgstr "אתחול קליפר"
#: panels/system.py:35
#: panels/system.py:42
msgid "Klipper Version"
msgstr "גרסא של קליפר"
#: screen.py:384
#: screen.py:385
msgid "Klipper has disconnected"
msgstr "קליפר התנתק"
#: screen.py:395
#: screen.py:396
msgid ""
"Klipper has encountered an error with the micro-controller.\n"
"Please recompile and flash."
msgstr "בעיית תקשורת בין קליפר ללוח בקרה. אנא לקמפל קושחה ולצרובה מחדש. "
#: screen.py:399
#: screen.py:400
msgid "Klipper has encountered an error."
msgstr "קילפר נתקל בבעיה."
#: screen.py:391
#: screen.py:392
msgid ""
"Klipper has encountered an error.\n"
"Issue a FIRMWARE_RESTART to attempt fixing the issue."
@@ -261,11 +271,11 @@ msgstr ""
"קליפר נתקל בבעיה. \n"
"נסה להריץ firmware_restart, כדי לפתור את הבעיה."
#: screen.py:417
#: screen.py:418
msgid "Klipper has shutdown"
msgstr "קליפר נכבה"
#: screen.py:413
#: screen.py:414
msgid "Klipper is attempting to start"
msgstr "קליפר מנסה לרוץ"
@@ -273,7 +283,7 @@ msgstr "קליפר מנסה לרוץ"
msgid "Klipper will reboot"
msgstr "קליפר יבצע אתחול"
#: panels/system.py:39
#: panels/system.py:46
msgid "KlipperScreen Version"
msgstr "גרסא של KlipperScreen"
@@ -281,7 +291,7 @@ msgstr "גרסא של KlipperScreen"
msgid "Left:"
msgstr "זמן שנותר:"
#: panels/system.py:57
#: panels/system.py:66
msgid "Load Average"
msgstr "עומס ממוצע"
@@ -305,7 +315,7 @@ msgstr "ממוצע"
msgid "Move"
msgstr "הזזת צירים"
#: panels/move.py:86
#: panels/move.py:91
msgid "Move Distance (mm)"
msgstr "מרחק הזזה (מ''מ)"
@@ -381,7 +391,7 @@ msgstr "שמור קונפיג"
msgid "Save configuration."
msgstr "שמור קונפיגורציה"
#: panels/bed_level.py:108
#: panels/bed_level.py:114
msgid "Screws Adjust"
msgstr "סידור ברגים"
@@ -418,6 +428,19 @@ msgstr "מהירות -"
msgid "System"
msgstr "מערכת"
#: panels/system.py:27
#, fuzzy
msgid ""
"System\n"
"Restart"
msgstr "אתחל"
#: panels/system.py:30
msgid ""
"System\n"
"Shutdown"
msgstr ""
#: panels/extrude.py:50 ks_includes/KlipperScreen.conf:84
#: ks_includes/KlipperScreen.conf:152
msgid "Temperature"
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-08 16:20+0000\n"
"POT-Creation-Date: 2021-01-10 19:17+0000\n"
"PO-Revision-Date: 2021-01-06 00:35+0200\n"
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n"
"Language-Team: \n"
@@ -22,11 +22,11 @@ msgstr ""
msgid "?"
msgstr "?"
#: panels/zcalibrate.py:70
#: panels/zcalibrate.py:71
msgid "Abort"
msgstr "中止"
#: panels/zcalibrate.py:67
#: panels/zcalibrate.py:68
msgid "Accept"
msgstr "接受"
@@ -42,6 +42,16 @@ msgstr "您确定要打印吗"
msgid "Are you sure you wish to cancel this print?"
msgstr "您要取消此打印吗?"
#: panels/system.py:29
#, fuzzy
msgid "Are you sure you wish to reboot the system?"
msgstr "您要取消此打印吗?"
#: panels/system.py:32
#, fuzzy
msgid "Are you sure you wish to shutdown the system?"
msgstr "您要取消此打印吗?"
#: ks_includes/KlipperScreen.conf:107
msgid "Bed Level"
msgstr "床位"
@@ -54,7 +64,7 @@ msgstr "床网"
msgid "Byte Position (Default)"
msgstr ""
#: screen.py:455 panels/job_status.py:267 panels/print.py:193
#: screen.py:456 panels/job_status.py:267 panels/print.py:193
msgid "Cancel"
msgstr "取消"
@@ -66,7 +76,7 @@ msgstr "取消变更"
msgid "Cancel Print"
msgstr "取消列印"
#: screen.py:289
#: screen.py:290
msgid ""
"Check /tmp/KlipperScreen.log for more information.\n"
"Please submit an issue on GitHub for help."
@@ -74,7 +84,7 @@ msgstr ""
"检查/tmp/KlipperScreen.log以获取更多信息。\n"
"请在GitHub上提交问题以寻求帮助。"
#: panels/bed_mesh.py:172 panels/temperature.py:149
#: panels/bed_mesh.py:172 panels/temperature.py:150
msgid "Close"
msgstr "关"
@@ -82,7 +92,7 @@ msgstr "关"
msgid "Configuration"
msgstr "组态"
#: screen.py:454
#: screen.py:455
msgid "Continue"
msgstr "继续"
@@ -102,7 +112,7 @@ msgstr "减少"
msgid "Disable Motors"
msgstr "禁用马达"
#: panels/bed_level.py:101
#: panels/bed_level.py:107
msgid "Disable XY"
msgstr "禁用XY"
@@ -110,7 +120,7 @@ msgstr "禁用XY"
msgid "Displayed Macros"
msgstr ""
#: panels/zcalibrate.py:63
#: panels/zcalibrate.py:64
msgid "Distance (mm)"
msgstr "距离(毫米)"
@@ -171,11 +181,11 @@ msgstr "微调"
msgid "Firmware Restart"
msgstr "固件重启"
#: screen.py:284 panels/job_status.py:301
#: screen.py:285 panels/job_status.py:301
msgid "Go Back"
msgstr "回去"
#: panels/bed_level.py:98 panels/move.py:40 ks_includes/KlipperScreen.conf:39
#: panels/bed_level.py:104 panels/move.py:40 ks_includes/KlipperScreen.conf:39
msgid "Home All"
msgstr "全部回家"
@@ -204,7 +214,7 @@ msgid "Increase"
msgstr "增加"
#. self._load_panels()
#: screen.py:136
#: screen.py:137
msgid "Initializing"
msgstr "Initializing"
@@ -233,15 +243,15 @@ msgstr "快闪重启"
msgid "Klipper Restart"
msgstr "快闪重启"
#: panels/system.py:35
#: panels/system.py:42
msgid "Klipper Version"
msgstr "快艇版本"
#: screen.py:384
#: screen.py:385
msgid "Klipper has disconnected"
msgstr "Klipper已断开连接"
#: screen.py:395
#: screen.py:396
msgid ""
"Klipper has encountered an error with the micro-controller.\n"
"Please recompile and flash."
@@ -249,11 +259,11 @@ msgstr ""
"Klipper的微控制器出错。\n"
"请重新编译并刷新。"
#: screen.py:399
#: screen.py:400
msgid "Klipper has encountered an error."
msgstr "Klipper遇到错误。"
#: screen.py:391
#: screen.py:392
msgid ""
"Klipper has encountered an error.\n"
"Issue a FIRMWARE_RESTART to attempt fixing the issue."
@@ -261,11 +271,11 @@ msgstr ""
"Klipper遇到错误。\n"
"发出FIRMWARE_RESTART尝试解决此问题。"
#: screen.py:417
#: screen.py:418
msgid "Klipper has shutdown"
msgstr "Klipper已关闭"
#: screen.py:413
#: screen.py:414
msgid "Klipper is attempting to start"
msgstr "Klipper正在尝试启动"
@@ -273,7 +283,7 @@ msgstr "Klipper正在尝试启动"
msgid "Klipper will reboot"
msgstr "Klipper将重新启动"
#: panels/system.py:39
#: panels/system.py:46
msgid "KlipperScreen Version"
msgstr "KlipperScreen版本"
@@ -281,7 +291,7 @@ msgstr "KlipperScreen版本"
msgid "Left:"
msgstr "剩下的时间"
#: panels/system.py:57
#: panels/system.py:66
msgid "Load Average"
msgstr "平均负载"
@@ -305,7 +315,7 @@ msgstr "中"
msgid "Move"
msgstr "移动"
#: panels/move.py:86
#: panels/move.py:91
msgid "Move Distance (mm)"
msgstr "移动距离(mm)"
@@ -381,7 +391,7 @@ msgstr "保存配置"
msgid "Save configuration."
msgstr "保存配置"
#: panels/bed_level.py:108
#: panels/bed_level.py:114
msgid "Screws Adjust"
msgstr "螺丝调整"
@@ -419,6 +429,19 @@ msgstr "速度 -"
msgid "System"
msgstr "系统"
#: panels/system.py:27
#, fuzzy
msgid ""
"System\n"
"Restart"
msgstr "重新开始"
#: panels/system.py:30
msgid ""
"System\n"
"Shutdown"
msgstr ""
#: panels/extrude.py:50 ks_includes/KlipperScreen.conf:84
#: ks_includes/KlipperScreen.conf:152
msgid "Temperature"
-1
View File
@@ -140,7 +140,6 @@ class Printer:
logger.debug("Processing power devices: %s" % data)
for x in data['devices']:
logger.debug(x)
self.power_devices[x['device']] = {
"status": "on" if x['status'] == "on" else "off"
}
+10 -1
View File
@@ -24,6 +24,13 @@ class SystemPanel(ScreenPanel):
firmrestart = self._gtk.ButtonImage('restart',_('Firmware Restart'),'color2')
firmrestart.connect("clicked", self.restart_klippy, "firmware")
reboot = self._gtk.ButtonImage('reboot',_('System\nRestart'),'color3')
reboot.connect("clicked", self._screen._confirm_send_action,
_("Are you sure you wish to reboot the system?"), "machine.reboot")
shutdown = self._gtk.ButtonImage('shutdown',_('System\nShutdown'),'color4')
shutdown.connect("clicked", self._screen._confirm_send_action,
_("Are you sure you wish to shutdown the system?"), "machine.shutdown")
info = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
info.set_vexpand(True)
@@ -44,9 +51,11 @@ class SystemPanel(ScreenPanel):
info.add(self.labels['ks_version'])
grid.attach(info, 0, 0, 4, 2)
grid.attach(info, 0, 0, 5, 2)
grid.attach(restart, 0, 2, 1, 1)
grid.attach(firmrestart, 1, 2, 1, 1)
grid.attach(reboot, 3, 2, 1, 1)
grid.attach(shutdown, 4, 2, 1, 1)
self.content.add(grid)
+1 -1
View File
@@ -448,7 +448,7 @@ class KlipperScreen(Gtk.Window):
for sub in self.subscriptions:
self.panels[sub].process_update(action, data)
def _confirm_send_action(self, widget, text, method, params):
def _confirm_send_action(self, widget, text, method, params={}):
_ = self.lang.gettext
buttons = [