Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into upstream_merge141024
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Nov 30, 2024
2 parents 9e7e790 + 7431ad8 commit 1e59651
Show file tree
Hide file tree
Showing 102 changed files with 1,511 additions and 165 deletions.
6 changes: 4 additions & 2 deletions config/move_menu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ name: {{ gettext('Quad Gantry Level') }}
icon: home-z
method: printer.gcode.script
params: {"script":"QUAD_GANTRY_LEVEL"}
enable: {{ 'quad_gantry_level' in printer.config_sections }}
enable: {{ 'QUAD_GANTRY_LEVEL' in printer.available_commands }}
active: {{ printer.quad_gantry_level.applied }}

[menu move homing homefull]
name: Home Full
Expand All @@ -51,7 +52,8 @@ name: {{ gettext('Z Tilt') }}
icon: z-tilt
method: printer.gcode.script
params: {"script":"Z_TILT_ADJUST"}
enable: {{ 'z_tilt' in printer.config_sections or 'z_tilt_ng' in printer.config_sections }}
enable: {{ 'Z_TILT_ADJUST' in printer.available_commands }}
active: {{ printer.z_tilt.applied }}

[menu move motors_off disable_x]
name: {{ gettext('Disable X') }}
Expand Down
1 change: 1 addition & 0 deletions docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ printer.gcode_macros.count # Number of gcode macros
printer.gcode_macros.list # List of names of the gcode macros
printer.leds.count # Number of leds
printer.config_sections # Array of section headers of Klipper config (printer.cfg)
printer.available_commands # List of all the commands that the printer supports
```


Expand Down
3 changes: 3 additions & 0 deletions ks_includes/KlippyGtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import pathlib

import gi

gi.require_version("Gtk", "3.0")
Expand Down Expand Up @@ -265,6 +266,8 @@ def remove_dialog(self, dialog, *args):
return
if self.screen.updating:
return
if dialog == self.screen.confirm:
self.screen.confirm = None
dialog.destroy()
if dialog in self.screen.dialogs:
logging.info("Removing Dialog")
Expand Down
1 change: 1 addition & 0 deletions ks_includes/KlippyRest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import re

import requests


Expand Down
2 changes: 1 addition & 1 deletion ks_includes/KlippyWebsocket.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/python

import threading
import json
import logging
import threading

import gi
import websocket
Expand Down
5 changes: 3 additions & 2 deletions ks_includes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import json
import re
import copy
import pathlib
import gettext
import json
import locale
import sys

import pathlib
from io import StringIO

SCREEN_BLANKING_OPTIONS = [
Expand Down
1 change: 1 addition & 0 deletions ks_includes/files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os

import gi

gi.require_version("Gtk", "3.0")
Expand Down
7 changes: 2 additions & 5 deletions ks_includes/functions.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import ctypes
import logging
import logging.handlers
import os
import re
import struct
import subprocess
import sys
import threading
import time
import traceback
from queue import SimpleQueue as Queue

import ctypes
import struct

dpms_loaded = False
try:
ctypes.cdll.LoadLibrary('libXext.so.6')
Expand Down
11 changes: 10 additions & 1 deletion ks_includes/locales/KlipperScreen.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-09 18:08-0300\n"
"POT-Creation-Date: 2024-11-26 12:31-0300\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"
Expand Down Expand Up @@ -517,6 +517,9 @@ msgstr ""
msgid "Loading..."
msgstr ""

msgid "Lock"
msgstr ""

msgid "Lost Connection to Moonraker"
msgstr ""

Expand Down Expand Up @@ -926,6 +929,12 @@ msgstr ""
msgid "Unload"
msgstr ""

msgid "Unlock"
msgstr ""

msgid "Unlock failed"
msgstr ""

msgid "Unretract Extra Length"
msgstr ""

Expand Down
Binary file modified ks_includes/locales/ar/LC_MESSAGES/KlipperScreen.mo
Binary file not shown.
19 changes: 12 additions & 7 deletions ks_includes/locales/ar/LC_MESSAGES/KlipperScreen.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-09 18:08-0300\n"
"POT-Creation-Date: 2024-11-26 12:31-0300\n"
"PO-Revision-Date: 2024-08-14 14:09+0000\n"
"Last-Translator: Rashid Al Haqbany <haqbany@gmail.com>\n"
"Language-Team: Arabic <https://hosted.weblate.org/projects/klipperscreen/"
Expand Down Expand Up @@ -422,10 +422,8 @@ msgstr "باطل"
msgid "Invalid password"
msgstr "كلمة سر غير صالحة"

#, fuzzy
#| msgid "Temperature"
msgid "Invalid temperature"
msgstr "درجة الحرارة"
msgstr ""

msgid "Inversely affects the icon size"
msgstr "يؤثر عكسيا على حجم الأيقونة"
Expand Down Expand Up @@ -503,6 +501,9 @@ msgstr "حمل"
msgid "Loading..."
msgstr "جاري التحميل..."

msgid "Lock"
msgstr ""

msgid "Lost Connection to Moonraker"
msgstr "فقد الاتصال ب Moonraker"

Expand Down Expand Up @@ -645,10 +646,8 @@ msgstr[5] "تحديث الحزم"
msgid "Part Fan"
msgstr "مروحة تبريد المطبوعات"

#, fuzzy
#| msgid "Password saved"
msgid "Password"
msgstr "تم حفظ كلمة المرور"
msgstr ""

msgid "Password saved"
msgstr "تم حفظ كلمة المرور"
Expand Down Expand Up @@ -918,6 +917,12 @@ msgstr "نوع أمان غير معروف"
msgid "Unload"
msgstr "أفرغ"

msgid "Unlock"
msgstr ""

msgid "Unlock failed"
msgstr ""

msgid "Unretract Extra Length"
msgstr "لا تتراجع عن الطول الإضافي"

Expand Down
Binary file modified ks_includes/locales/bg/LC_MESSAGES/KlipperScreen.mo
Binary file not shown.
Loading

0 comments on commit 1e59651

Please sign in to comment.