Compare commits
314
Commits
v0.2.7
...
tracemalloc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8af5c0b2d4 | ||
|
|
da9f970231 | ||
|
|
3417765223 | ||
|
|
b963c55140 | ||
|
|
2d8419ca13 | ||
|
|
5f3827a2cb | ||
|
|
d6f7bdcfe6 | ||
|
|
87c3f03719 | ||
|
|
094b90cf86 | ||
|
|
3220f084ec | ||
|
|
dfe1ac8d2c | ||
|
|
be473bf626 | ||
|
|
b353f8526e | ||
|
|
122752b000 | ||
|
|
0f0c6f9b6e | ||
|
|
18af1d1410 | ||
|
|
926d78de01 | ||
|
|
a5b639fba2 | ||
|
|
55af0d753c | ||
|
|
d6693fbecc | ||
|
|
e426b06b8b | ||
|
|
c722674918 | ||
|
|
3d7e92f507 | ||
|
|
fc7b8c5304 | ||
|
|
a6bb0fd02e | ||
|
|
dcb6d18709 | ||
|
|
69571c88b8 | ||
|
|
c33b5d6311 | ||
|
|
49add980b3 | ||
|
|
8d8d3bf9af | ||
|
|
059f1a8026 | ||
|
|
eeffdd26dd | ||
|
|
5de5e1e3eb | ||
|
|
485c82c53f | ||
|
|
4e60f65404 | ||
|
|
85cec193f9 | ||
|
|
34055277e0 | ||
|
|
9b4c58369e | ||
|
|
b96adf55ed | ||
|
|
f6afb4d4ab | ||
|
|
3c5449f0db | ||
|
|
c828d8349c | ||
|
|
9fa047eb8b | ||
|
|
82b8cbcca5 | ||
|
|
1f5a090bfd | ||
|
|
e4d5cd65ce | ||
|
|
502d9699bd | ||
|
|
d2d2c82041 | ||
|
|
1375c823c9 | ||
|
|
74338a7f3e | ||
|
|
778cd84ba8 | ||
|
|
a83f499c0c | ||
|
|
70d7564a78 | ||
|
|
f31ae7a829 | ||
|
|
701ff35652 | ||
|
|
7120c424d4 | ||
|
|
413e822fa5 | ||
|
|
75c716f9a1 | ||
|
|
41a8ebf084 | ||
|
|
57ce346d69 | ||
|
|
753be13a0c | ||
|
|
06bf269862 | ||
|
|
45e1f652db | ||
|
|
6a95e46a18 | ||
|
|
250574bc41 | ||
|
|
f49e1ef6c4 | ||
|
|
904dd24c10 | ||
|
|
f52b52f76a | ||
|
|
dc5741d605 | ||
|
|
02b69d0d39 | ||
|
|
de252643c1 | ||
|
|
548fc4de69 | ||
|
|
72599b5ba7 | ||
|
|
c714553da1 | ||
|
|
36faaa153a | ||
|
|
629451051d | ||
|
|
fcb6861119 | ||
|
|
34a9151910 | ||
|
|
683b72ab20 | ||
|
|
e658f562be | ||
|
|
ab4d4af7f8 | ||
|
|
4804f5a5e0 | ||
|
|
7651b892b8 | ||
|
|
91b505bfef | ||
|
|
415535eeb8 | ||
|
|
8ebc855ddd | ||
|
|
efebea2c36 | ||
|
|
75c8681781 | ||
|
|
ea4efa1f61 | ||
|
|
9de058b0d7 | ||
|
|
3a764be93f | ||
|
|
4dceeb77b6 | ||
|
|
2bacac7efb | ||
|
|
79afa3620a | ||
|
|
d161c3f1e4 | ||
|
|
ec86403056 | ||
|
|
b1a6d5c182 | ||
|
|
61cf5828e2 | ||
|
|
69a7d3defb | ||
|
|
3047fde812 | ||
|
|
49c2e4f1d7 | ||
|
|
68ccf5e803 | ||
|
|
62ef4f1844 | ||
|
|
3c8886ab36 | ||
|
|
d6161539a6 | ||
|
|
25797b5ed3 | ||
|
|
56149e4148 | ||
|
|
d0fc1e197d | ||
|
|
1df2d0e8f0 | ||
|
|
217b185730 | ||
|
|
db4e5d4e08 | ||
|
|
7a8fe9f6ac | ||
|
|
741d9b654d | ||
|
|
fe06b38128 | ||
|
|
da164b495e | ||
|
|
26030526a9 | ||
|
|
17cae91708 | ||
|
|
a61a74d7bf | ||
|
|
e9df355b3b | ||
|
|
6ae6937c49 | ||
|
|
4f5e025de1 | ||
|
|
20346a90dc | ||
|
|
abb1f0d2d2 | ||
|
|
959f7e3401 | ||
|
|
2e39de56bd | ||
|
|
d8b4d2d293 | ||
|
|
cdb40e8ce1 | ||
|
|
f8cde7bfe1 | ||
|
|
9604c159b5 | ||
|
|
8297f72ff4 | ||
|
|
b5cf73054a | ||
|
|
c630178f0c | ||
|
|
db48bb8a1f | ||
|
|
e1f02fd870 | ||
|
|
43a2f88ad1 | ||
|
|
e98114eaff | ||
|
|
8834ceb3e8 | ||
|
|
1806973ba1 | ||
|
|
0d87592093 | ||
|
|
c0ffa41010 | ||
|
|
9ec4ed204e | ||
|
|
9211583a15 | ||
|
|
12b9ee5344 | ||
|
|
97106bc2e0 | ||
|
|
00bd6ac4db | ||
|
|
33fd5f9576 | ||
|
|
c09e552e3a | ||
|
|
5c7dfaf703 | ||
|
|
593d8c678b | ||
|
|
34fde780fc | ||
|
|
ea33d9de0f | ||
|
|
0b1b2f0e19 | ||
|
|
8d2f90f800 | ||
|
|
ef5f86a67d | ||
|
|
b415eca1c8 | ||
|
|
880f7628e4 | ||
|
|
03ab14fa64 | ||
|
|
717575256c | ||
|
|
0233327554 | ||
|
|
484dbd1609 | ||
|
|
383086e303 | ||
|
|
e90dac950c | ||
|
|
d0d79a64df | ||
|
|
7b7c3838fc | ||
|
|
818f1ab465 | ||
|
|
bdd3e0ba1b | ||
|
|
f1754f1014 | ||
|
|
054523d937 | ||
|
|
fa10b00db7 | ||
|
|
e785022e64 | ||
|
|
dbd1474d63 | ||
|
|
1ca950c1fc | ||
|
|
c4c7e50314 | ||
|
|
e29b41e5c3 | ||
|
|
fc0f153023 | ||
|
|
cebd371734 | ||
|
|
86ee1eb19f | ||
|
|
c3c28175ca | ||
|
|
5d12addbba | ||
|
|
92e899cf56 | ||
|
|
6cb18816e2 | ||
|
|
6ca35ffab0 | ||
|
|
7ca37c56b6 | ||
|
|
675f28b318 | ||
|
|
cfa35ba8e4 | ||
|
|
380df961e5 | ||
|
|
8dc12bea2c | ||
|
|
5215c8f985 | ||
|
|
45b172f85c | ||
|
|
2c30bdeddf | ||
|
|
09f992d3b5 | ||
|
|
128fee5e96 | ||
|
|
529b111fce | ||
|
|
d55bc160ac | ||
|
|
7a71fa75f7 | ||
|
|
1db6388798 | ||
|
|
bdafb31522 | ||
|
|
bd82d211f5 | ||
|
|
45ab86204b | ||
|
|
972a09df41 | ||
|
|
9b1b9593e8 | ||
|
|
dd33ee04bb | ||
|
|
04f3c5b7a5 | ||
|
|
18d8f835a9 | ||
|
|
b68cfa40fd | ||
|
|
86c52dece8 | ||
|
|
4272109a27 | ||
|
|
c5fe8b02a4 | ||
|
|
fdf13102fe | ||
|
|
e1ea41f147 | ||
|
|
6b1fd23e35 | ||
|
|
9020d0b0ea | ||
|
|
022954918c | ||
|
|
e4ff009ef6 | ||
|
|
f7cbff3ed8 | ||
|
|
f80c2687c5 | ||
|
|
0bfbe90dcd | ||
|
|
04e060c43c | ||
|
|
6083248dfa | ||
|
|
df401d4924 | ||
|
|
731a78b2f2 | ||
|
|
1e6a9ec8ae | ||
|
|
300eed4d29 | ||
|
|
7bef1d45c8 | ||
|
|
2aec78ff4c | ||
|
|
4d0edf3c0b | ||
|
|
a695c68a25 | ||
|
|
6ca80baea8 | ||
|
|
260d4b16e5 | ||
|
|
67dc2c9fdf | ||
|
|
8b55d2f2b1 | ||
|
|
f05cbe9f0b | ||
|
|
3bbefd8bd5 | ||
|
|
b8e819629a | ||
|
|
f5b8ae1002 | ||
|
|
78f76d659c | ||
|
|
ce6158ad91 | ||
|
|
0ca410acba | ||
|
|
02c043eece | ||
|
|
88461910c9 | ||
|
|
19506292b5 | ||
|
|
1dc3433e02 | ||
|
|
ca7143f776 | ||
|
|
26d10a949b | ||
|
|
8855d9b98f | ||
|
|
df195a0135 | ||
|
|
23b64b1625 | ||
|
|
44623b44d1 | ||
|
|
6e4d0ff962 | ||
|
|
2fef5660cb | ||
|
|
3be65a686a | ||
|
|
9c4f4c5fe7 | ||
|
|
ba392d75b9 | ||
|
|
39b786c198 | ||
|
|
e36cf78e40 | ||
|
|
11dd95b939 | ||
|
|
e0950247d2 | ||
|
|
8d1ca4eba1 | ||
|
|
6c66ccada7 | ||
|
|
01fde5a1e9 | ||
|
|
64745c8578 | ||
|
|
b77321ce28 | ||
|
|
f4a0b0f8b1 | ||
|
|
7ee162092c | ||
|
|
2fc01c07b6 | ||
|
|
73e4645df0 | ||
|
|
5e4760771d | ||
|
|
38d006c8a7 | ||
|
|
79c858ded6 | ||
|
|
03e4681aa6 | ||
|
|
5154e41fed | ||
|
|
371968b458 | ||
|
|
c3128ef508 | ||
|
|
09ccd46528 | ||
|
|
874212e166 | ||
|
|
f749969c07 | ||
|
|
f6e4e231b1 | ||
|
|
d536b054b8 | ||
|
|
5d539d0059 | ||
|
|
8a82590829 | ||
|
|
f588571bdd | ||
|
|
d27227aede | ||
|
|
7666a91872 | ||
|
|
51ddee28c3 | ||
|
|
0620d660f5 | ||
|
|
b988c3c8c9 | ||
|
|
d3d7104ec4 | ||
|
|
93457b2961 | ||
|
|
b36e75ec1a | ||
|
|
d6e4ad0a35 | ||
|
|
0de49ee0cd | ||
|
|
8cc86dfd7c | ||
|
|
da9051a9b2 | ||
|
|
32fab0482f | ||
|
|
792e1bf8bf | ||
|
|
b346d765a2 | ||
|
|
c5413e51c9 | ||
|
|
2121d4a6aa | ||
|
|
17e4bb704e | ||
|
|
d3281379ee | ||
|
|
62fd6b96f8 | ||
|
|
b9effb5447 | ||
|
|
70b5532695 | ||
|
|
1332045128 | ||
|
|
1305b40c41 | ||
|
|
e208873e46 | ||
|
|
723662074e | ||
|
|
4b7fda9ba0 | ||
|
|
2e026aef56 | ||
|
|
28fe1bf6d8 | ||
|
|
4076e6349a | ||
|
|
d0d171e676 | ||
|
|
978bb72e20 | ||
|
|
74dee10d39 |
No files matched your search
Symlink
+1
@@ -0,0 +1 @@
|
||||
screen.py
|
||||
+12
-3
@@ -28,7 +28,7 @@ search "how to enable android debugging on device-model-and-brand"
|
||||
|
||||
```bash
|
||||
cd ~/KlipperScreen/scripts
|
||||
cp android-adb.sh launch_KlipperScreen.sh
|
||||
cp sample-android-adb.sh launch_KlipperScreen.sh
|
||||
chmod +x launch_KlipperScreen.sh
|
||||
```
|
||||
|
||||
@@ -45,9 +45,9 @@ chmod +x launch_KlipperScreen.sh
|
||||
nano launch_KlipperScreen.sh
|
||||
```
|
||||
|
||||
* Paste this into the script (edit the IP for example: 192.168.1.2:0)
|
||||
* Paste this into the script (replace the example IP)
|
||||
```bash
|
||||
DISPLAY=(ip address from blue screen):0 $KS_XCLIENT
|
||||
DISPLAY=192.168.150.122:0 $KS_XCLIENT
|
||||
```
|
||||
|
||||
!!! important
|
||||
@@ -73,6 +73,15 @@ sudo service KlipperScreen stop
|
||||
sudo service KlipperScreen start
|
||||
```
|
||||
|
||||
## Stop Screen Blanking in Xserver-XSDL
|
||||
|
||||
Even after enabling the "Stay Awake" option in the Developer/USB Debugging options of your Android device, the Xserver-XSDL may still go to a black screen but keep the backlight of your device on. To keep the screen always active, upon start up of Xserver-XSDL app, select the `Change Device Configuration` at the top of the splash screen and then select the `Command line parameters, one argument per line` option. Append the following argument (must be on seperate lines):
|
||||
```
|
||||
-s
|
||||
0
|
||||
```
|
||||
This will disable the screen-saver in Xserver and keep KlipperScreen always active.
|
||||
|
||||
## Migration from other tutorials
|
||||
|
||||
KlipperScreen says error option "service" is not supported anymore.
|
||||
|
||||
+19
-4
@@ -1,7 +1,7 @@
|
||||
# Configuration
|
||||
|
||||
Usually you don't need to create a configuration file, but if you need to change something that is not changeable in the UI
|
||||
create a blank file in `~/klipper_config/KlipperScreen.conf`, if the file already exist then just edit it.
|
||||
create a blank file in `~/printer_data/config/KlipperScreen.conf`, if the file already exist then just edit it.
|
||||
|
||||
Write in the file only the options that need to be changed, and restart KlipperScreen.
|
||||
|
||||
@@ -32,6 +32,10 @@ default_printer: Ender 3 Pro
|
||||
# To define a full set of custom menues (instead of merging user entries with default entries)
|
||||
# set this to False. See Menu section below.
|
||||
use_default_menu: True
|
||||
|
||||
# Define one or more moonraker power devices that turn on/off with the screensaver (CSV list)
|
||||
screen_on_devices: example1, example2
|
||||
screen_off_devices: example1, example2
|
||||
```
|
||||
|
||||
## Printer Options
|
||||
@@ -41,6 +45,7 @@ Multiple printers can be defined
|
||||
[printer Ender 3 Pro]
|
||||
# Define the moonraker host/port if different from 127.0.0.1 and 7125
|
||||
moonraker_host: 127.0.0.1
|
||||
# ports 443 and 7130 will use https/wss
|
||||
moonraker_port: 7125
|
||||
# Moonraker API key if this is not connecting from a trusted client IP
|
||||
moonraker_api_key: False
|
||||
@@ -74,13 +79,20 @@ calibrate_y_position: 100
|
||||
|
||||
# Bed Screws
|
||||
# define the screw positons required for odd number of screws in a comma separated list
|
||||
# possible values are: bl, br, bm, fl, fr, fm, lm, rm
|
||||
# they correspond to back-left, back-right, back-middle, front-left, front-right, front-middle, left-middle, left-right
|
||||
# possible values are: bl, br, bm, fl, fr, fm, lm, rm, center
|
||||
# they correspond to back-left, back-right, back-middle, front-left, front-right, front-middle, left-middle, right-middle
|
||||
screw_positions: ""
|
||||
|
||||
# Rotation is useful if the screen is not directly in front of the machine.
|
||||
# Valid values are 0 90 180 270
|
||||
screw_rotation: 0
|
||||
|
||||
# Define distances and speeds for the extrude panel. CSV list 2 to 4 integers
|
||||
extrude_distances: 5, 10, 15, 25
|
||||
extrude_speeds: 1, 2, 5, 25
|
||||
|
||||
# Camera configuration
|
||||
camera_url: http://127.0.0.1/webcam/?action=stream
|
||||
```
|
||||
|
||||
## Preheat Options
|
||||
@@ -121,6 +133,8 @@ A menu item is configured as follows:
|
||||
name: Item Name
|
||||
icon: home
|
||||
# Optional Parameters
|
||||
# Icon style, defined as "button.mycolor4" (for example) in the theme css
|
||||
style: mycolor4
|
||||
# Panel from the panels listed below
|
||||
panel: preheat
|
||||
# Moonraker method to call when the item is selected
|
||||
@@ -188,7 +202,8 @@ KlipperScreen will search for a configuration file in the following order:
|
||||
|
||||
1. _~/KlipperScreen.conf_
|
||||
2. _${KlipperScreen_Directory}/KlipperScreen.conf_
|
||||
3. _~/klipper_config/KlipperScreen.conf_
|
||||
3. _~/printer_data/config/KlipperScreen.conf_
|
||||
4. _~/klipper_config/KlipperScreen.conf_
|
||||
|
||||
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
|
||||
the location of your configuration file.
|
||||
|
||||
+4
-1
@@ -1,10 +1,13 @@
|
||||
# Hardware
|
||||
|
||||
There are no recommended screens, but the minimum supported resolution is 480x320
|
||||
There are no recommended screens, but the minimum supported resolution is 480x320.
|
||||
|
||||
In general, if the device can show a GNU/Linux desktop, then KlipperScreen should work too.
|
||||
|
||||
#### Hardware known to work
|
||||
|
||||
* [BTT PI TFT50](https://www.biqu.equipment/collections/lcd/products/bigtreetech-pi-tft50-v1-0-tft-display-for-raspberry-pi-3d-printer-part)
|
||||
* [BTT HDMI5/7](https://biqu.equipment/products/bigtreetech-hdmi5-v1-0-hdmi7-v1-0)
|
||||
* [Raspberry PI 7" Touchscreen](https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
|
||||
* [Hyperpixel 4](https://shop.pimoroni.com/products/hyperpixel-4)
|
||||
* [3.5" Elegoo](https://www.elegoo.com/de/products/elegoo-3-5-inch-tft-lcd-screen)
|
||||
|
||||
@@ -35,11 +35,31 @@ Moved to [Thumbnails](Thumbnails.md)
|
||||
|
||||
|
||||
## Layer Progress
|
||||
|
||||
Accurate layer progress as a message below the status:
|
||||
|
||||
PrusaSlicer/SuperSlicer > Printer Settings > Custom Gcode > After layer change Gcode
|
||||
|
||||
`M117 Layer {layer_num+1}/[total_layer_count] : {filament_settings_id[0]}`
|
||||
|
||||

|
||||
|
||||
Accurate layer progress in the secondary screen of the printing panel:
|
||||
|
||||
The layer number in the secondary screen of the printing panelis calculated according to object height and provided layer height.
|
||||
It will be innacurate when using variable layer height, but can be fixed by providing klipper with the correct data.
|
||||
|
||||

|
||||
|
||||
PrusaSlicer/SuperSlicer:
|
||||
|
||||
Printer Settings > Custom Gcode > Start Gcode
|
||||
|
||||
`SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]`
|
||||
|
||||
Printer Settings > Custom Gcode > After layer change Gcode
|
||||
|
||||
`SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}`
|
||||
|
||||
## Supported Macros
|
||||
[Macros](macros.md)
|
||||
+23
-12
@@ -1,21 +1,32 @@
|
||||
## Create Translations
|
||||
# Translations
|
||||
|
||||
You can use an editor such as [poedit](https://poedit.net/) to assist in translations. This guide will assume that you
|
||||
will be using poedit.
|
||||
## Updating an existing translation:
|
||||
|
||||
This guide will refer to `language designation`. This can be found from running `echo $LANG` on your pi, as long as you
|
||||
have set your pi up for your preferred language.
|
||||
You can use an editor such as [poedit](https://poedit.net/) to assist in translations.
|
||||
|
||||
#### New Language
|
||||
* Edit `ks_includes/locals/{ISO 639 lang code}/LC_MESSAGES/KlipperScreen.po`
|
||||
|
||||
To test your translation:
|
||||
|
||||
In poedit go to `File -> Compile to MO`. Save it on the same folder, and restart KlipperScreen
|
||||
|
||||
|
||||
## Adding a new Language:
|
||||
|
||||
Example using poedit
|
||||
|
||||
* Select `Create a new translation` or `File -> New from POT/PO` and select `ks_includes/locals/KlipperScreen.pot`.
|
||||
* Enter your language designation.
|
||||
* Create the translations
|
||||
* Save the file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.po`.
|
||||
* Select `File -> Compile to MO`. Save this file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.mo`
|
||||
!!! important
|
||||
Do not edit the POT file as is automatically generated and your changes will be lost.
|
||||
* Save the file as `ks_includes/locales/{ISO 639 lang code}/LC_MESSAGES/KlipperScreen.po`
|
||||
* Select `File -> Compile to MO`. Save it on the same folder, and restart KlipperScreen
|
||||
|
||||
Once you have followed those steps, restart KlipperScreen, and select it from the list in the settings.
|
||||
!!! note
|
||||
[Wikipedia ISO 639 Language Codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
|
||||
|
||||
Once you have restarted KlipperScreen, select it from the list in the settings.
|
||||
If you edited and recompiled, you need to restart KlipperScreen to reload the translation.
|
||||
|
||||
Do not edit the POT file as is automatically generated and your changes will be lost.
|
||||
|
||||
## Contributing:
|
||||
[Attach your translation on a GitHub issue or create a PR](Contact.md)
|
||||
+45
-11
@@ -5,12 +5,22 @@ This page will have common problems and common solutions to those problems.
|
||||
|
||||
The first step to troubleshooting any problem is getting the cause of the error.
|
||||
|
||||
* Check for the file `/tmp/KlipperScreen.log`
|
||||
* Find KlipperScreen.log:
|
||||
|
||||
look at the contents by running `cat /tmp/KlipperScreen.log` or grab the file over WinSCP or another sftp program.
|
||||
This is the most important file, and should be provided if you ask for support.
|
||||
!!! important
|
||||
This log file should be provided if you ask for support.
|
||||
|
||||
If that file is non-existent, run `journalctl -xe -u KlipperScreen`
|
||||
Depending on your setup the file could be accesible from the web interface alongside other logs
|
||||
|
||||
Mainsail | Fluidd
|
||||
:-:|:-:
|
||||
 | 
|
||||
|
||||
if you can't find it in the web interface, use sftp to grab the log (for example Filezilla, WinSCP)
|
||||
Located at `~/printer_data/logs`or in `/tmp/` if the former doesn't exists.
|
||||
|
||||
If KlipperScreen.log doesn't exist, run `systemctl status KlipperScreen`<br>
|
||||
(or `journalctl -xe -u KlipperScreen`)
|
||||
|
||||
Check the file `/var/log/Xorg.0.log` where you can find issues with the X server.
|
||||
|
||||
@@ -33,11 +43,6 @@ usermod -a -G tty pi
|
||||
```
|
||||
(if your username is not 'pi' change 'pi' to your username)
|
||||
|
||||
You may also need:
|
||||
```sh
|
||||
sudo apt install xserver-xorg-legacy
|
||||
```
|
||||
|
||||
Restart KlipperScreen:
|
||||
```sh
|
||||
sudo service KlipperScreen restart
|
||||
@@ -111,7 +116,7 @@ and reboot, that should make the touch work, if your screen is rotated 180 degre
|
||||
|
||||
KlipperScreen was never intended to be used with OctoPrint, and there is no support for it.
|
||||
|
||||
## WiFi networks not listed
|
||||
## WiFi networks not listed (Using wpa_supplicant as backend)
|
||||
|
||||
This can be caused because of the user is not allowed to control the interface
|
||||
|
||||
@@ -132,13 +137,42 @@ usermod -a -G netdev pi
|
||||
|
||||
Then reboot the machine:
|
||||
|
||||
```
|
||||
```sh
|
||||
systemctl reboot
|
||||
```
|
||||
|
||||
!!! tip
|
||||
It's possible to just restart KlipperScreen and networking
|
||||
|
||||
## WiFi networks not listed (Using NetworkManager as backend)
|
||||
|
||||
`[wifi_nm.py:rescan()] [...] NetworkManager.wifi.scan request failed: not authorized`
|
||||
|
||||
|
||||
If you see the above permission error in the log you may need to use polkit or disable it:
|
||||
|
||||
```sh
|
||||
mkdir -p /etc/NetworkManager/conf.d
|
||||
sudo nano /etc/NetworkManager/conf.d/any-user.conf
|
||||
```
|
||||
|
||||
in the editor paste this:
|
||||
|
||||
```conf
|
||||
[main]
|
||||
auth-polkit=false
|
||||
```
|
||||
|
||||
Then restart the service:
|
||||
|
||||
```sh
|
||||
systemctl restart NetworkManager.service
|
||||
```
|
||||
|
||||
!!! tip
|
||||
It's possible to just restart KlipperScreen and NetworkManager
|
||||
|
||||
|
||||
## Other issues
|
||||
|
||||
If you found an issue not listed here, or can't make it work, please provide all the log files
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
+9
-26
@@ -7,51 +7,34 @@ Load and Unload Filament macros are used in the Extrude-Panel if it is available
|
||||
The selected speed is transferred to this macro.
|
||||
The following example macros show how this can be used in the macro.
|
||||
|
||||
```py
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(500) %}
|
||||
G91
|
||||
G1 E50 F{speed}
|
||||
G1 E50 F{speed}
|
||||
G92
|
||||
```
|
||||
```py
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(500) %}
|
||||
G91
|
||||
G1 E-50 F{speed}
|
||||
G1 E-50 F{speed}
|
||||
G92
|
||||
```
|
||||
|
||||
this could be interesting to tweak the purge speed, this would be one Example Macro from alfrix:
|
||||
|
||||
```py
|
||||
```jinja
|
||||
[gcode_macro LOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(300) %}
|
||||
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
|
||||
SAVE_GCODE_STATE NAME=load_state
|
||||
M300 # beep
|
||||
G91
|
||||
G92 E0
|
||||
G1 E350 F{max_velocity}
|
||||
G1 E25 F{speed} #purge
|
||||
G1 E350 F{max_velocity} # fast-load
|
||||
G1 E25 F{speed} # purge
|
||||
M300
|
||||
M300
|
||||
RESTORE_GCODE_STATE NAME=load_state
|
||||
```
|
||||
|
||||
```py
|
||||
```jinja
|
||||
[gcode_macro UNLOAD_FILAMENT]
|
||||
gcode:
|
||||
{% set speed = params.SPEED|default(300) %}
|
||||
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
|
||||
SAVE_GCODE_STATE NAME=unload_state
|
||||
G91
|
||||
M300 # beep
|
||||
G92 E0
|
||||
G1 E25 F{speed} # purge
|
||||
G1 E-420 F{max_velocity}
|
||||
G1 E-420 F{max_velocity} # fast-unload
|
||||
M300
|
||||
M300
|
||||
RESTORE_GCODE_STATE NAME=unload_state
|
||||
```
|
||||
@@ -1,8 +1,5 @@
|
||||
class KlippyGcodes:
|
||||
HOME = "G28"
|
||||
HOME_X = "G28 X"
|
||||
HOME_Y = "G28 Y"
|
||||
HOME_Z = "G28 Z"
|
||||
HOME_XY = "G28 X Y"
|
||||
Z_TILT = "Z_TILT_ADJUST"
|
||||
QUAD_GANTRY_LEVEL = "QUAD_GANTRY_LEVEL"
|
||||
@@ -15,7 +12,6 @@ class KlippyGcodes:
|
||||
EXTRUDE_REL = "M83"
|
||||
|
||||
SET_EXT_TEMP = "M104"
|
||||
|
||||
SET_BED_TEMP = "M140"
|
||||
|
||||
SET_EXT_FACTOR = "M221"
|
||||
@@ -28,10 +24,6 @@ class KlippyGcodes:
|
||||
ABORT = "ABORT"
|
||||
ACCEPT = "ACCEPT"
|
||||
|
||||
SAVE_CONFIG = "SAVE_CONFIG"
|
||||
RESTART = "RESTART"
|
||||
FIRMWARE_RESTART = "FIRMWARE_RESTART"
|
||||
|
||||
@staticmethod
|
||||
def set_bed_temp(temp):
|
||||
return f"{KlippyGcodes.SET_BED_TEMP} S{temp}"
|
||||
|
||||
+113
-138
@@ -1,91 +1,85 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import gi
|
||||
import contextlib
|
||||
import logging
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gdk, GdkPixbuf, Gio, Gtk, Pango
|
||||
|
||||
|
||||
def format_label(widget, lines=2):
|
||||
if type(widget) == Gtk.Label:
|
||||
return widget
|
||||
if type(widget) in (Gtk.Container, Gtk.Bin, Gtk.Button, Gtk.Alignment, Gtk.Box):
|
||||
for _ in widget.get_children():
|
||||
lbl = format_label(_)
|
||||
if lbl is not None:
|
||||
lbl.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
lbl.set_line_wrap(True)
|
||||
lbl.set_ellipsize(True)
|
||||
lbl.set_ellipsize(Pango.EllipsizeMode.END)
|
||||
lbl.set_lines(lines)
|
||||
|
||||
|
||||
class KlippyGtk:
|
||||
labels = {}
|
||||
width_ratio = 16
|
||||
height_ratio = 9.375
|
||||
|
||||
def __init__(self, screen, width, height, theme, cursor, fontsize_type):
|
||||
def __init__(self, screen):
|
||||
self.screen = screen
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.themedir = os.path.join(pathlib.Path(__file__).parent.resolve().parent, "styles", theme, "images")
|
||||
|
||||
self.themedir = os.path.join(pathlib.Path(__file__).parent.resolve().parent, "styles", screen.theme, "images")
|
||||
self.cursor = screen.show_cursor
|
||||
self.font_size_type = screen._config.get_main_config().get("font_size", "medium")
|
||||
self.width = screen.width
|
||||
self.height = screen.height
|
||||
self.font_ratio = [33, 49] if self.screen.vertical_mode else [43, 29]
|
||||
self.font_size = int(min(
|
||||
self.width / self.font_ratio[0],
|
||||
self.height / self.font_ratio[1]
|
||||
))
|
||||
if fontsize_type == "small":
|
||||
self.font_size = round(self.font_size * 0.91)
|
||||
elif fontsize_type == "large":
|
||||
self.font_size = round(self.font_size * 1.09)
|
||||
self.header_size = int(round((self.width / self.width_ratio) / 1.33))
|
||||
self.font_size = min(self.width / self.font_ratio[0], self.height / self.font_ratio[1])
|
||||
self.img_scale = self.font_size * 2
|
||||
self.button_image_scale = 1.38
|
||||
self.bsidescale = .65 # Buttons with image at the side
|
||||
|
||||
if self.font_size_type == "max":
|
||||
self.font_size = self.font_size * 1.2
|
||||
self.bsidescale = .7
|
||||
elif self.font_size_type == "extralarge":
|
||||
self.font_size = self.font_size * 1.14
|
||||
self.img_scale = self.img_scale * 0.7
|
||||
self.bsidescale = 1
|
||||
elif self.font_size_type == "large":
|
||||
self.font_size = self.font_size * 1.09
|
||||
self.img_scale = self.img_scale * 0.9
|
||||
self.bsidescale = .8
|
||||
elif self.font_size_type == "small":
|
||||
self.font_size = self.font_size * 0.91
|
||||
self.bsidescale = .55
|
||||
self.img_width = self.font_size * 3
|
||||
self.img_height = self.font_size * 3
|
||||
self.titlebar_height = self.font_size * 2
|
||||
self.img_width = int(round(self.width / self.width_ratio))
|
||||
self.img_height = int(round(self.height / self.height_ratio))
|
||||
logging.info(f"Font size: {self.font_size:.1f} ({self.font_size_type})")
|
||||
|
||||
if self.screen.vertical_mode:
|
||||
self.action_bar_width = int(self.width)
|
||||
self.action_bar_height = int(self.height * .1)
|
||||
self.content_width = self.width
|
||||
self.content_height = self.height - self.titlebar_height - self.action_bar_height
|
||||
else:
|
||||
self.action_bar_width = int(self.width * .1)
|
||||
self.action_bar_height = int(self.height)
|
||||
self.cursor = cursor
|
||||
self.content_width = self.width - self.action_bar_width
|
||||
self.content_height = self.height - self.titlebar_height
|
||||
|
||||
self.keyboard_height = self.content_height * 0.5
|
||||
if (self.height / self.width) >= 3: # Ultra-tall
|
||||
self.keyboard_height = self.keyboard_height * 0.5
|
||||
|
||||
self.color_list = {} # This is set by screen.py init_style()
|
||||
|
||||
for key in self.color_list:
|
||||
if "base" in self.color_list[key]:
|
||||
rgb = [int(self.color_list[key]['base'][i:i + 2], 16) for i in range(0, 6, 2)]
|
||||
self.color_list[key]['rgb'] = rgb
|
||||
|
||||
logging.debug(f"img width: {self.img_width} height: {self.img_height}")
|
||||
|
||||
def get_action_bar_width(self):
|
||||
return self.action_bar_width
|
||||
|
||||
def get_action_bar_height(self):
|
||||
return self.action_bar_height
|
||||
|
||||
def get_content_width(self):
|
||||
return self.width - self.action_bar_width
|
||||
|
||||
def get_content_height(self):
|
||||
if self.screen.vertical_mode:
|
||||
return self.height - self.titlebar_height - self.action_bar_height
|
||||
else:
|
||||
return self.height - self.titlebar_height
|
||||
|
||||
def get_font_size(self):
|
||||
return self.font_size
|
||||
|
||||
def get_titlebar_height(self):
|
||||
return self.titlebar_height
|
||||
|
||||
def get_header_size(self):
|
||||
return self.header_size
|
||||
|
||||
def get_image_width(self):
|
||||
return self.img_width
|
||||
|
||||
def get_image_height(self):
|
||||
return self.img_height
|
||||
|
||||
def get_keyboard_height(self):
|
||||
if (self.height / self.width) >= 3:
|
||||
# Ultra-tall
|
||||
return self.get_content_height() * 0.25
|
||||
else:
|
||||
return self.get_content_height() * 0.5
|
||||
|
||||
def get_temp_color(self, device):
|
||||
# logging.debug("Color list %s" % self.color_list)
|
||||
if device not in self.color_list:
|
||||
@@ -119,51 +113,47 @@ class KlippyGtk:
|
||||
la.get_style_context().add_class(style)
|
||||
return la
|
||||
|
||||
def Image(self, image_name, scale=1.0):
|
||||
filename = os.path.join(self.themedir, f"{image_name}.svg")
|
||||
if os.path.exists(filename):
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename,
|
||||
int(round(self.img_width * scale)),
|
||||
int(round(self.img_height * scale)),
|
||||
True)
|
||||
return Gtk.Image.new_from_pixbuf(pixbuf)
|
||||
else:
|
||||
logging.error(f"Unable to find image {filename}")
|
||||
def Image(self, image_name=None, width=None, height=None):
|
||||
if image_name is None:
|
||||
return Gtk.Image()
|
||||
pixbuf = self.PixbufFromIcon(image_name, width, height)
|
||||
return Gtk.Image.new_from_pixbuf(pixbuf) if pixbuf is not None else Gtk.Image()
|
||||
|
||||
def PixbufFromFile(self, filename, width_scale=1, height_scale=1):
|
||||
return GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||
filename,
|
||||
int(round(self.img_width * width_scale)),
|
||||
int(round(self.img_height * height_scale)),
|
||||
True
|
||||
)
|
||||
def PixbufFromIcon(self, filename, width=None, height=None):
|
||||
width = width if width is not None else self.img_width
|
||||
height = height if height is not None else self.img_height
|
||||
filename = os.path.join(self.themedir, filename)
|
||||
for ext in ["svg", "png"]:
|
||||
pixbuf = self.PixbufFromFile(f"{filename}.{ext}", int(width), int(height))
|
||||
if pixbuf is not None:
|
||||
return pixbuf
|
||||
return None
|
||||
|
||||
def PixbufFromHttp(self, resource, width_scale=1, height_scale=1):
|
||||
@staticmethod
|
||||
def PixbufFromFile(filename, width=-1, height=-1):
|
||||
try:
|
||||
return GdkPixbuf.Pixbuf.new_from_file_at_size(filename, int(width), int(height))
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
logging.error(f"Unable to find image {filename}")
|
||||
return None
|
||||
|
||||
def PixbufFromHttp(self, resource, width=-1, height=-1):
|
||||
response = self.screen.apiclient.get_thumbnail_stream(resource)
|
||||
if response is False:
|
||||
return None
|
||||
stream = Gio.MemoryInputStream.new_from_data(response, None)
|
||||
return GdkPixbuf.Pixbuf.new_from_stream_at_scale(
|
||||
stream,
|
||||
int(round(self.img_width * width_scale)),
|
||||
int(round(self.img_height * height_scale)),
|
||||
True
|
||||
)
|
||||
try:
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_stream_at_scale(stream, int(width), int(height), True)
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
return None
|
||||
stream.close_async(2)
|
||||
return pixbuf
|
||||
|
||||
def Button(self, label=None, style=None):
|
||||
b = Gtk.Button(label=label)
|
||||
b.set_hexpand(True)
|
||||
b.set_vexpand(True)
|
||||
b.set_can_focus(False)
|
||||
b.props.relief = Gtk.ReliefStyle.NONE
|
||||
|
||||
if style is not None:
|
||||
b.get_style_context().add_class(style)
|
||||
b.connect("clicked", self.screen.reset_screensaver_timeout)
|
||||
return b
|
||||
|
||||
def ButtonImage(self, image_name=None, label=None, style=None, scale=1.38, position=Gtk.PositionType.TOP, lines=2):
|
||||
def Button(self, image_name=None, label=None, style=None, scale=None, position=Gtk.PositionType.TOP, lines=2):
|
||||
if self.font_size_type == "max" and label is not None and scale is None:
|
||||
image_name = None
|
||||
b = Gtk.Button()
|
||||
if label is not None:
|
||||
b.set_label(label.replace("\n", " "))
|
||||
@@ -171,28 +161,17 @@ class KlippyGtk:
|
||||
b.set_vexpand(True)
|
||||
b.set_can_focus(False)
|
||||
if image_name is not None:
|
||||
b.set_image(self.Image(image_name, scale))
|
||||
if scale is None:
|
||||
scale = self.button_image_scale
|
||||
if label is None:
|
||||
scale = scale * 1.5
|
||||
width = height = self.img_scale * scale
|
||||
b.set_image(self.Image(image_name, width, height))
|
||||
b.set_image_position(position)
|
||||
b.set_always_show_image(True)
|
||||
|
||||
if label is not None:
|
||||
try:
|
||||
# Get the label object
|
||||
if image_name is not None:
|
||||
if position == Gtk.PositionType.RIGHT:
|
||||
child = b.get_children()[0].get_children()[0].get_children()[0]
|
||||
else:
|
||||
child = b.get_children()[0].get_children()[0].get_children()[1]
|
||||
else:
|
||||
child = b.get_children()[0]
|
||||
child.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
child.set_line_wrap(True)
|
||||
child.set_ellipsize(True)
|
||||
child.set_ellipsize(Pango.EllipsizeMode.END)
|
||||
child.set_lines(lines)
|
||||
except Exception as e:
|
||||
logging.debug(f"Unable to wrap and ellipsize label: {label} image: {image_name} exception:{e}")
|
||||
|
||||
format_label(b, lines)
|
||||
if style is not None:
|
||||
b.get_style_context().add_class(style)
|
||||
b.connect("clicked", self.screen.reset_screensaver_timeout)
|
||||
@@ -205,13 +184,13 @@ class KlippyGtk:
|
||||
dialog.set_transient_for(screen)
|
||||
dialog.set_modal(True)
|
||||
|
||||
for i, button in enumerate(buttons):
|
||||
dialog.add_button(button_text=button['name'], response_id=button['response'])
|
||||
button = dialog.get_children()[0].get_children()[0].get_children()[0].get_children()[i]
|
||||
button.get_child().set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
button.get_child().set_line_wrap(True)
|
||||
for button in buttons:
|
||||
dialog.add_button(button['name'], button['response'])
|
||||
button = dialog.get_widget_for_response(button['response'])
|
||||
button.set_size_request((screen.width - 30) / 3, screen.height / 5)
|
||||
format_label(button, 3)
|
||||
|
||||
dialog.connect("response", self.screen.reset_screensaver_timeout)
|
||||
dialog.connect("response", callback, *args)
|
||||
dialog.get_style_context().add_class("dialog")
|
||||
|
||||
@@ -225,29 +204,25 @@ class KlippyGtk:
|
||||
dialog.show_all()
|
||||
# Change cursor to blank
|
||||
if self.cursor:
|
||||
dialog.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.ARROW))
|
||||
dialog.get_window().set_cursor(
|
||||
Gdk.Cursor.new_for_display(Gdk.Display.get_default(), Gdk.CursorType.ARROW))
|
||||
else:
|
||||
dialog.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.BLANK_CURSOR))
|
||||
dialog.get_window().set_cursor(
|
||||
Gdk.Cursor.new_for_display(Gdk.Display.get_default(), Gdk.CursorType.BLANK_CURSOR))
|
||||
|
||||
self.screen.dialogs.append(dialog)
|
||||
logging.info(f"Showing dialog {dialog}")
|
||||
return dialog
|
||||
|
||||
def ToggleButtonImage(self, image_name, label, style=None, scale=1.38):
|
||||
|
||||
b = Gtk.ToggleButton(label=label)
|
||||
b.set_hexpand(True)
|
||||
b.set_vexpand(True)
|
||||
b.set_can_focus(False)
|
||||
b.set_image(self.Image(image_name, scale))
|
||||
b.set_image_position(Gtk.PositionType.TOP)
|
||||
b.set_always_show_image(True)
|
||||
|
||||
if style is not None:
|
||||
ctx = b.get_style_context()
|
||||
ctx.add_class(style)
|
||||
|
||||
b.connect("clicked", self.screen.reset_screensaver_timeout)
|
||||
return b
|
||||
def remove_dialog(self, dialog, *args):
|
||||
if self.screen.updating:
|
||||
return
|
||||
dialog.destroy()
|
||||
if dialog in self.screen.dialogs:
|
||||
logging.info("Removing Dialog")
|
||||
self.screen.dialogs.remove(dialog)
|
||||
return
|
||||
logging.debug(f"Cannot remove dialog {dialog}")
|
||||
|
||||
@staticmethod
|
||||
def HomogeneousGrid(width=None, height=None):
|
||||
|
||||
+42
-27
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
import requests
|
||||
import logging
|
||||
import re
|
||||
import requests
|
||||
|
||||
|
||||
class KlippyRest:
|
||||
@@ -8,11 +8,12 @@ class KlippyRest:
|
||||
self.ip = ip
|
||||
self.port = port
|
||||
self.api_key = api_key
|
||||
self.status = ''
|
||||
|
||||
@property
|
||||
def endpoint(self):
|
||||
protocol = "http"
|
||||
if int(self.port) == 443:
|
||||
if int(self.port) in {443, 7130}:
|
||||
protocol = "https"
|
||||
return f"{protocol}://{self.ip}:{self.port}"
|
||||
|
||||
@@ -21,7 +22,7 @@ class KlippyRest:
|
||||
|
||||
def get_oneshot_token(self):
|
||||
r = self.send_request("access/oneshot_token")
|
||||
if r is False:
|
||||
if r is False or 'result' not in r:
|
||||
return False
|
||||
return r['result']
|
||||
|
||||
@@ -29,32 +30,46 @@ class KlippyRest:
|
||||
return self.send_request("printer/info")
|
||||
|
||||
def get_thumbnail_stream(self, thumbnail):
|
||||
url = f"{self.endpoint}/server/files/gcodes/{thumbnail}"
|
||||
return self.send_request(f"server/files/gcodes/{thumbnail}", json=False)
|
||||
|
||||
response = requests.get(url, stream=True)
|
||||
if response.status_code == 200:
|
||||
response.raw.decode_content = True
|
||||
return response.content
|
||||
return False
|
||||
|
||||
def send_request(self, method):
|
||||
def send_request(self, method, json=True):
|
||||
url = f"{self.endpoint}/{method}"
|
||||
logging.debug(f"Sending request to {url}")
|
||||
headers = {} if self.api_key is False else {"x-api-key": self.api_key}
|
||||
data = False
|
||||
try:
|
||||
r = requests.get(url, headers=headers)
|
||||
response = requests.get(url, headers=headers, timeout=3)
|
||||
response.raise_for_status()
|
||||
if json:
|
||||
logging.debug(f"Sending request to {url}")
|
||||
data = response.json()
|
||||
else:
|
||||
data = response.content
|
||||
except requests.exceptions.HTTPError as h:
|
||||
self.status = self.format_status(h)
|
||||
except requests.exceptions.ConnectionError as c:
|
||||
self.status = self.format_status(c)
|
||||
except requests.exceptions.Timeout as t:
|
||||
self.status = self.format_status(t)
|
||||
except requests.exceptions.JSONDecodeError as j:
|
||||
self.status = self.format_status(j)
|
||||
except requests.exceptions.RequestException as r:
|
||||
self.status = self.format_status(r)
|
||||
except Exception as e:
|
||||
logging.critical(e, exc_info=True)
|
||||
return False
|
||||
if r.status_code != 200:
|
||||
return False
|
||||
|
||||
# TODO: Try/except
|
||||
try:
|
||||
data = json.loads(r.content)
|
||||
except Exception as e:
|
||||
logging.critical(e, exc_info=True)
|
||||
logging.exception(f"Unable to parse response from moonraker:\n {r.content}")
|
||||
return False
|
||||
|
||||
self.status = self.format_status(e)
|
||||
if data:
|
||||
self.status = ''
|
||||
else:
|
||||
logging.error(self.status.replace('\n', '>>'))
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
def format_status(status):
|
||||
try:
|
||||
rep = {"HTTPConnectionPool": "", "/server/info ": "", "Caused by ": "", "(": "", ")": "",
|
||||
": ": "\n", "'": "", "`": "", "\"": ""}
|
||||
rep = {re.escape(k): v for k, v in rep.items()}
|
||||
pattern = re.compile("|".join(rep.keys()))
|
||||
status = pattern.sub(lambda m: rep[re.escape(m.group(0))], f"{status}").split("\n")
|
||||
return "\n".join(_ for _ in status if "urllib3" not in _ and _ != "")
|
||||
except TypeError or KeyError:
|
||||
return status
|
||||
+60
-122
@@ -1,38 +1,24 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import gi
|
||||
import threading
|
||||
|
||||
import json
|
||||
import websocket
|
||||
import logging
|
||||
|
||||
import gi
|
||||
import websocket
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import GLib, Gdk
|
||||
from gi.repository import GLib
|
||||
from ks_includes.KlippyGcodes import KlippyGcodes
|
||||
|
||||
api_key = ""
|
||||
|
||||
api = {
|
||||
"printer_info": {
|
||||
"url": "/printer/info",
|
||||
"method": "get_printer_info"
|
||||
},
|
||||
"apikey": {
|
||||
"url": "/access/api_key"
|
||||
},
|
||||
"oneshot_token": {
|
||||
"url": "/access/oneshot_token"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class KlippyWebsocket(threading.Thread):
|
||||
_req_id = 0
|
||||
connected = False
|
||||
connecting = True
|
||||
callback_table = {}
|
||||
reconnect_timeout = None
|
||||
reconnect_count = 0
|
||||
max_retries = 4
|
||||
|
||||
def __init__(self, screen, callback, host, port):
|
||||
threading.Thread.__init__(self)
|
||||
@@ -41,9 +27,8 @@ class KlippyWebsocket(threading.Thread):
|
||||
self._screen = screen
|
||||
self._callback = callback
|
||||
self.klippy = MoonrakerApi(self)
|
||||
self.closing = False
|
||||
self.ws = None
|
||||
|
||||
self.closing = False
|
||||
self.host = host
|
||||
self.port = port
|
||||
|
||||
@@ -53,38 +38,31 @@ class KlippyWebsocket(threading.Thread):
|
||||
|
||||
@property
|
||||
def ws_proto(self):
|
||||
if int(self.port) == 443:
|
||||
if int(self.port) in {443, 7130}:
|
||||
return "wss"
|
||||
return "ws"
|
||||
|
||||
def retry(self):
|
||||
self.reconnect_count = 0
|
||||
self.connecting = True
|
||||
self.initial_connect()
|
||||
|
||||
def initial_connect(self):
|
||||
# Enable a timeout so that way if moonraker is not running, it will attempt to reconnect
|
||||
if self.reconnect_timeout is None:
|
||||
self.reconnect_timeout = GLib.timeout_add_seconds(6, self.reconnect)
|
||||
self.connect()
|
||||
if self.connecting:
|
||||
GLib.timeout_add_seconds(10, self.reconnect)
|
||||
|
||||
def connect(self):
|
||||
_ = self._screen.lang.gettext
|
||||
|
||||
def ws_on_close(ws, a=None, b=None):
|
||||
self.on_close(ws)
|
||||
|
||||
def ws_on_error(ws, msg):
|
||||
self.on_error(ws, msg)
|
||||
|
||||
def ws_on_message(ws, msg):
|
||||
self.on_message(ws, msg)
|
||||
|
||||
def ws_on_open(ws):
|
||||
self.on_open(ws)
|
||||
|
||||
if self.connected:
|
||||
return
|
||||
self.reconnect_count += 1
|
||||
try:
|
||||
state = self._screen.apiclient.get_server_info()
|
||||
if state is False:
|
||||
if self.reconnect_count > 3:
|
||||
self._screen.panels['splash_screen'].update_text(
|
||||
_("Cannot connect to Moonraker")
|
||||
+ f'\n\n{self._url}\n\n'
|
||||
if self.reconnect_count > 2:
|
||||
self._screen.printer_initializing(
|
||||
_("Cannot connect to Moonraker") + '\n\n'
|
||||
+ _("Retrying") + f' #{self.reconnect_count}'
|
||||
)
|
||||
return False
|
||||
@@ -96,8 +74,9 @@ class KlippyWebsocket(threading.Thread):
|
||||
|
||||
self.ws_url = f"{self.ws_proto}://{self._url}/websocket?token={token}"
|
||||
self.ws = websocket.WebSocketApp(
|
||||
self.ws_url, on_close=ws_on_close, on_error=ws_on_error, on_message=ws_on_message, on_open=ws_on_open)
|
||||
|
||||
self.ws_url,
|
||||
on_close=self.on_close, on_error=self.on_error, on_message=self.on_message, on_open=self.on_open
|
||||
)
|
||||
self._wst = threading.Thread(target=self.ws.run_forever, daemon=True)
|
||||
try:
|
||||
logging.debug("Starting websocket thread")
|
||||
@@ -108,40 +87,32 @@ class KlippyWebsocket(threading.Thread):
|
||||
|
||||
def close(self):
|
||||
self.closing = True
|
||||
self.connecting = False
|
||||
if self.ws is not None:
|
||||
self.ws.close()
|
||||
|
||||
def is_connected(self):
|
||||
return self.connected
|
||||
|
||||
def on_message(self, ws, message):
|
||||
def on_message(self, *args):
|
||||
message = args[1] if len(args) == 2 else args[0]
|
||||
response = json.loads(message)
|
||||
if "id" in response and response['id'] in self.callback_table:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_HIGH_IDLE,
|
||||
self.callback_table[response['id']][0],
|
||||
response,
|
||||
self.callback_table[response['id']][1],
|
||||
self.callback_table[response['id']][2],
|
||||
*self.callback_table[response['id']][3]
|
||||
)
|
||||
args = (response,
|
||||
self.callback_table[response['id']][1],
|
||||
self.callback_table[response['id']][2],
|
||||
*self.callback_table[response['id']][3])
|
||||
GLib.idle_add(self.callback_table[response['id']][0], *args)
|
||||
self.callback_table.pop(response['id'])
|
||||
return
|
||||
|
||||
if "method" in response and "on_message" in self._callback:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_HIGH_IDLE,
|
||||
self._callback['on_message'],
|
||||
response['method'],
|
||||
response['params'][0] if "params" in response else {}
|
||||
)
|
||||
args = response['method'], response['params'][0] if "params" in response else {}
|
||||
GLib.idle_add(self._callback['on_message'], *args)
|
||||
return
|
||||
|
||||
def send_method(self, method, params=None, callback=None, *args):
|
||||
if not self.connected:
|
||||
return False
|
||||
if params is None:
|
||||
params = {}
|
||||
if self.is_connected() is False:
|
||||
return False
|
||||
|
||||
self._req_id += 1
|
||||
if callback is not None:
|
||||
@@ -156,60 +127,51 @@ class KlippyWebsocket(threading.Thread):
|
||||
self.ws.send(json.dumps(data))
|
||||
return True
|
||||
|
||||
def on_open(self, ws):
|
||||
def on_open(self, *args):
|
||||
logging.info("Moonraker Websocket Open")
|
||||
logging.info(f"Self.connected = {self.is_connected()}")
|
||||
self.connected = True
|
||||
self._screen.reinit_count = 0
|
||||
self.reconnect_count = 0
|
||||
if self.reconnect_timeout is not None:
|
||||
GLib.source_remove(self.reconnect_timeout)
|
||||
self.reconnect_timeout = None
|
||||
if "on_connect" in self._callback:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_HIGH_IDLE,
|
||||
self._callback['on_connect']
|
||||
)
|
||||
GLib.idle_add(self._callback['on_connect'])
|
||||
|
||||
def on_close(self, ws):
|
||||
if self.is_connected() is False:
|
||||
def on_close(self, *args):
|
||||
# args: ws, status, message
|
||||
# sometimes ws is not passed due to bugs
|
||||
message = args[2] if len(args) == 3 else args[1]
|
||||
if message is not None:
|
||||
logging.info(f"{message}")
|
||||
if not self.connected:
|
||||
logging.debug("Connection already closed")
|
||||
if self.reconnect_timeout is not None:
|
||||
GLib.source_remove(self.reconnect_timeout)
|
||||
self.reconnect_timeout = None
|
||||
return
|
||||
|
||||
if self.closing is True:
|
||||
if self.closing:
|
||||
logging.debug("Closing websocket")
|
||||
self.ws.keep_running = False
|
||||
self.close()
|
||||
self.closing = False
|
||||
return
|
||||
|
||||
if "on_close" in self._callback:
|
||||
GLib.idle_add(self._callback['on_close'], "Lost Connection to Moonraker")
|
||||
logging.info("Moonraker Websocket Closed")
|
||||
self.connected = False
|
||||
if self.reconnect_timeout is None:
|
||||
self.reconnect_timeout = GLib.timeout_add_seconds(9, self.reconnect)
|
||||
|
||||
if "on_close" in self._callback:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_HIGH_IDLE,
|
||||
self._callback['on_close'],
|
||||
"Lost Connection to Moonraker",
|
||||
True
|
||||
)
|
||||
|
||||
def reconnect(self):
|
||||
if self.is_connected():
|
||||
logging.debug("Reconnected")
|
||||
if self.connected:
|
||||
return False
|
||||
if self.reconnect_count > self.max_retries:
|
||||
logging.debug("Stopping reconnections")
|
||||
self.connecting = False
|
||||
self._screen.printer_initializing(
|
||||
_("Cannot connect to Moonraker")
|
||||
+ f'\n\n{self._screen.apiclient.status}')
|
||||
return False
|
||||
|
||||
logging.debug("Attempting to reconnect")
|
||||
self.reconnect_count += 1
|
||||
self.connect()
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def on_error(ws, error):
|
||||
def on_error(*args):
|
||||
error = args[1] if len(args) == 2 else args[0]
|
||||
logging.debug(f"Websocket error: {error}")
|
||||
|
||||
|
||||
@@ -259,7 +221,7 @@ class MoonrakerApi:
|
||||
)
|
||||
|
||||
def object_subscription(self, updates):
|
||||
logging.debug(f"Sending printer.objects.subscribe: {updates}")
|
||||
logging.debug("Sending printer.objects.subscribe")
|
||||
return self._ws.send_method(
|
||||
"printer.objects.subscribe",
|
||||
updates
|
||||
@@ -321,30 +283,6 @@ class MoonrakerApi:
|
||||
*args
|
||||
)
|
||||
|
||||
def temperature_set(self, heater, target, callback=None, *args):
|
||||
if heater == "heater_bed":
|
||||
logging.debug(f"Sending printer.gcode.script: {KlippyGcodes.set_bed_temp(target)}")
|
||||
return self._ws.send_method(
|
||||
"printer.gcode.script",
|
||||
{
|
||||
"script": KlippyGcodes.set_bed_temp(target)
|
||||
},
|
||||
callback,
|
||||
*args
|
||||
)
|
||||
else:
|
||||
logging.debug(
|
||||
f'Sending printer.gcode.script: {KlippyGcodes.set_ext_temp(target, heater.replace("tool", ""))}')
|
||||
# TODO: Add max/min limits
|
||||
return self._ws.send_method(
|
||||
"printer.gcode.script",
|
||||
{
|
||||
"script": KlippyGcodes.set_ext_temp(target, heater.replace("tool", ""))
|
||||
},
|
||||
callback,
|
||||
*args
|
||||
)
|
||||
|
||||
def set_bed_temp(self, target, callback=None, *args):
|
||||
logging.debug(f"Sending set_bed_temp: {KlippyGcodes.set_bed_temp(target)}")
|
||||
return self._ws.send_method(
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+102
-66
@@ -6,11 +6,10 @@ import json
|
||||
import re
|
||||
import copy
|
||||
import pathlib
|
||||
import locale
|
||||
|
||||
from io import StringIO
|
||||
|
||||
from os import path
|
||||
|
||||
SCREEN_BLANKING_OPTIONS = [
|
||||
300, # 5 Minutes
|
||||
900, # 15 Minutes
|
||||
@@ -34,12 +33,15 @@ class KlipperScreenConfig:
|
||||
do_not_edit_prefix = "#~#"
|
||||
|
||||
def __init__(self, configfile, screen=None):
|
||||
self.lang_list = None
|
||||
self.errors = []
|
||||
self.default_config_path = os.path.join(klipperscreendir, "ks_includes", "defaults.conf")
|
||||
self.config = configparser.ConfigParser()
|
||||
self.config_path = self.get_config_file_location(configfile)
|
||||
logging.debug(f"Config path location: {self.config_path}")
|
||||
self.defined_config = None
|
||||
self.lang = None
|
||||
self.langs = {}
|
||||
|
||||
try:
|
||||
self.config.read(self.default_config_path)
|
||||
@@ -101,15 +103,40 @@ class KlipperScreenConfig:
|
||||
item[name]['moonraker_api_key'] = "redacted"
|
||||
logging.debug(f"Configured printers: {json.dumps(conf_printers_debug, indent=2)}")
|
||||
|
||||
lang = self.get_main_config().get("language", None)
|
||||
lang = [lang] if lang is not None and lang != "default" else None
|
||||
logging.info(f"Detected language: {lang}")
|
||||
self.lang = gettext.translation('KlipperScreen', localedir='ks_includes/locales', languages=lang,
|
||||
fallback=True)
|
||||
self.lang.install(names=['gettext', 'ngettext'])
|
||||
|
||||
self.create_translations()
|
||||
self._create_configurable_options(screen)
|
||||
|
||||
def create_translations(self):
|
||||
lang_path = os.path.join(klipperscreendir, "ks_includes", "locales")
|
||||
self.lang_list = [d for d in os.listdir(lang_path) if not os.path.isfile(os.path.join(lang_path, d))]
|
||||
self.lang_list.sort()
|
||||
for lng in self.lang_list:
|
||||
self.langs[lng] = gettext.translation('KlipperScreen', localedir=lang_path, languages=[lng], fallback=True)
|
||||
|
||||
lang = self.get_main_config().get("language", None)
|
||||
logging.debug(f"Selected lang: {lang} OS lang: {locale.getdefaultlocale()[0]}")
|
||||
self.install_language(lang)
|
||||
|
||||
def install_language(self, lang):
|
||||
if lang is None or lang == "system_lang":
|
||||
for language in self.lang_list:
|
||||
if locale.getdefaultlocale()[0].startswith(language):
|
||||
logging.debug("Using system lang")
|
||||
lang = language
|
||||
if lang is not None and lang not in self.lang_list:
|
||||
# try to match a parent
|
||||
for language in self.lang_list:
|
||||
if lang.startswith(language):
|
||||
lang = language
|
||||
self.set("main", "language", lang)
|
||||
if lang not in self.lang_list:
|
||||
logging.error(f"lang: {lang} not found")
|
||||
logging.info(f"Available lang list {self.lang_list}")
|
||||
lang = "en"
|
||||
logging.info(f"Using lang {lang}")
|
||||
self.lang = self.langs[lang]
|
||||
self.lang.install(names=['gettext', 'ngettext'])
|
||||
|
||||
def validate_config(self):
|
||||
valid = True
|
||||
for section in self.config:
|
||||
@@ -125,19 +152,20 @@ class KlipperScreenConfig:
|
||||
)
|
||||
strs = (
|
||||
'default_printer', 'language', 'print_sort_dir', 'theme', 'screen_blanking', 'font_size',
|
||||
'print_estimate_method', 'screen_blanking'
|
||||
'print_estimate_method', 'screen_blanking', "screen_on_devices", "screen_off_devices",
|
||||
)
|
||||
numbers = (
|
||||
'job_complete_timeout', 'job_error_timeout', 'move_speed_xy', 'move_speed_z',
|
||||
'print_estimate_compensation'
|
||||
'print_estimate_compensation', 'width', 'height',
|
||||
)
|
||||
elif section.startswith('printer '):
|
||||
bools = (
|
||||
'invert_x', 'invert_y', 'invert_z',
|
||||
)
|
||||
strs = (
|
||||
'moonraker_api_key', 'moonraker_host', 'language', 'titlebar_name_type',
|
||||
'moonraker_api_key', 'moonraker_host', 'titlebar_name_type',
|
||||
'screw_positions', 'power_devices', 'titlebar_items', 'z_babystep_values',
|
||||
'extrude_distances', "extrude_speeds", "camera_url",
|
||||
)
|
||||
numbers = (
|
||||
'moonraker_port', 'move_speed_xy', 'move_speed_z',
|
||||
@@ -147,7 +175,7 @@ class KlipperScreenConfig:
|
||||
strs = ('gcode', '')
|
||||
numbers = [f'{option}' for option in self.config[section] if option != 'gcode']
|
||||
elif section.startswith('menu '):
|
||||
strs = ('name', 'icon', 'panel', 'method', 'params', 'enable', 'confirm')
|
||||
strs = ('name', 'icon', 'panel', 'method', 'params', 'enable', 'confirm', 'style')
|
||||
elif section == 'bed_screws':
|
||||
# This section may be deprecated in favor of moving this options under the printer section
|
||||
numbers = ('rotation', '')
|
||||
@@ -191,11 +219,11 @@ class KlipperScreenConfig:
|
||||
self.configurable_options = [
|
||||
{"language": {
|
||||
"section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang",
|
||||
"callback": screen.restart_warning, "options": [
|
||||
"callback": screen.change_language, "options": [
|
||||
{"name": _("System") + " " + _("(default)"), "value": "system_lang"}]}},
|
||||
{"theme": {
|
||||
"section": "main", "name": _("Icon Theme"), "type": "dropdown",
|
||||
"value": "z-bolt", "callback": screen.restart_warning, "options": [
|
||||
"value": "z-bolt", "callback": screen.restart_ks, "options": [
|
||||
{"name": "Z-bolt" + " " + _("(default)"), "value": "z-bolt"}]}},
|
||||
{"print_estimate_method": {
|
||||
"section": "main", "name": _("Estimated Time Method"), "type": "dropdown",
|
||||
@@ -207,7 +235,7 @@ class KlipperScreenConfig:
|
||||
{"screen_blanking": {
|
||||
"section": "main", "name": _("Screen Power Off Time"), "type": "dropdown",
|
||||
"value": "3600", "callback": screen.set_screenblanking_timeout, "options": [
|
||||
{"name": _("Off"), "value": "off"}]
|
||||
{"name": _("Never"), "value": "off"}]
|
||||
}},
|
||||
{"24htime": {"section": "main", "name": _("24 Hour Time"), "type": "binary", "value": "True"}},
|
||||
{"side_macro_shortcut": {
|
||||
@@ -215,10 +243,12 @@ class KlipperScreenConfig:
|
||||
"value": "True", "callback": screen.toggle_macro_shortcut}},
|
||||
{"font_size": {
|
||||
"section": "main", "name": _("Font Size"), "type": "dropdown",
|
||||
"value": "medium", "callback": screen.restart_warning, "options": [
|
||||
"value": "medium", "callback": screen.restart_ks, "options": [
|
||||
{"name": _("Small"), "value": "small"},
|
||||
{"name": _("Medium") + " " + _("(default)"), "value": "medium"},
|
||||
{"name": _("Large"), "value": "large"}]}},
|
||||
{"name": _("Large"), "value": "large"},
|
||||
{"name": _("Extra Large"), "value": "extralarge"},
|
||||
{"name": _("Maximum"), "value": "max"}]}},
|
||||
{"confirm_estop": {"section": "main", "name": _("Confirm Emergency Stop"), "type": "binary",
|
||||
"value": "False"}},
|
||||
{"only_heaters": {"section": "main", "name": _("Hide sensors in Temp."), "type": "binary",
|
||||
@@ -247,12 +277,8 @@ class KlipperScreenConfig:
|
||||
|
||||
self.configurable_options.extend(panel_options)
|
||||
|
||||
lang_path = os.path.join(klipperscreendir, "ks_includes", "locales")
|
||||
langs = [d for d in os.listdir(lang_path) if not os.path.isfile(os.path.join(lang_path, d))]
|
||||
langs.sort()
|
||||
lang_opt = self.configurable_options[0]['language']['options']
|
||||
|
||||
for lang in langs:
|
||||
for lang in self.lang_list:
|
||||
lang_opt.append({"name": lang, "value": lang})
|
||||
|
||||
t_path = os.path.join(klipperscreendir, 'styles')
|
||||
@@ -331,8 +357,8 @@ class KlipperScreenConfig:
|
||||
user_def = []
|
||||
saved_def = []
|
||||
found_saved = False
|
||||
if not path.exists(config_path):
|
||||
return [None, None]
|
||||
if not os.path.exists(config_path):
|
||||
return ["", None]
|
||||
with open(config_path) as file:
|
||||
for line in file:
|
||||
line = line.replace('\n', '')
|
||||
@@ -347,21 +373,37 @@ class KlipperScreenConfig:
|
||||
return ["\n".join(user_def), None if saved_def is None else "\n".join(saved_def)]
|
||||
|
||||
def get_config_file_location(self, file):
|
||||
logging.info(f"Passed config file: {file}")
|
||||
if not path.exists(file):
|
||||
file = os.path.join(klipperscreendir, self.configfile_name)
|
||||
if not path.exists(file):
|
||||
file = self.configfile_name.lower()
|
||||
if not path.exists(file):
|
||||
klipper_config = os.path.join(os.path.expanduser("~/"), "klipper_config")
|
||||
file = os.path.join(klipper_config, self.configfile_name)
|
||||
if not path.exists(file):
|
||||
file = os.path.join(klipper_config, self.configfile_name.lower())
|
||||
if not path.exists(file):
|
||||
file = self.default_config_path
|
||||
# Passed config (-c) by default is ~/KlipperScreen.conf
|
||||
logging.info(f"Passed config (-c): {file}")
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
|
||||
logging.info(f"Found configuration file at: {file}")
|
||||
return file
|
||||
file = os.path.join(klipperscreendir, self.configfile_name)
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
file = os.path.join(klipperscreendir, self.configfile_name.lower())
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
|
||||
klipper_config = os.path.join(os.path.expanduser("~/"), "printer_data", "config")
|
||||
file = os.path.join(klipper_config, self.configfile_name)
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
file = os.path.join(klipper_config, self.configfile_name.lower())
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
|
||||
# OLD config folder
|
||||
klipper_config = os.path.join(os.path.expanduser("~/"), "klipper_config")
|
||||
file = os.path.join(klipper_config, self.configfile_name)
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
file = os.path.join(klipper_config, self.configfile_name.lower())
|
||||
if os.path.exists(file):
|
||||
return file
|
||||
|
||||
# fallback
|
||||
return self.default_config_path
|
||||
|
||||
def get_config(self):
|
||||
return self.config
|
||||
@@ -390,9 +432,7 @@ class KlipperScreenConfig:
|
||||
|
||||
def get_menu_name(self, menu="__main", subsection=""):
|
||||
name = f"menu {menu} {subsection}" if subsection != "" else f"menu {menu}"
|
||||
if name not in self.config:
|
||||
return False
|
||||
return self.config[name].get('name')
|
||||
return False if name not in self.config else self.config[name].get('name')
|
||||
|
||||
def get_preheat_options(self):
|
||||
index = "preheat "
|
||||
@@ -409,12 +449,7 @@ class KlipperScreenConfig:
|
||||
if not name.startswith("printer "):
|
||||
name = f"printer {name}"
|
||||
|
||||
if name not in self.config:
|
||||
return None
|
||||
return self.config[name]
|
||||
|
||||
def get_printer_power_name(self):
|
||||
return self.config['settings'].get("printer_power_name", "printer")
|
||||
return None if name not in self.config else self.config[name]
|
||||
|
||||
def get_printers(self):
|
||||
return self.printers
|
||||
@@ -455,20 +490,25 @@ class KlipperScreenConfig:
|
||||
else:
|
||||
user_def, saved_def = self.separate_saved_config(self.config_path)
|
||||
|
||||
extra_lb = "\n" if saved_def is not None else ""
|
||||
contents = "%s\n%s%s\n%s\n%s\n%s\n" % (
|
||||
user_def, self.do_not_edit_line, extra_lb, self.do_not_edit_prefix, "\n".join(save_output),
|
||||
self.do_not_edit_prefix)
|
||||
contents = (f"{user_def}\n"
|
||||
f"{self.do_not_edit_line}\n"
|
||||
f"{self.do_not_edit_prefix}\n"
|
||||
+ '\n'.join(save_output) + f"\n"
|
||||
f"{self.do_not_edit_prefix}\n")
|
||||
|
||||
if self.config_path != self.default_config_path:
|
||||
filepath = self.config_path
|
||||
else:
|
||||
filepath = os.path.expanduser("~/")
|
||||
klipper_config = os.path.join(filepath, "klipper_config")
|
||||
klipper_config = os.path.join(filepath, "printer_data", "config")
|
||||
old_klipper_config = os.path.join(filepath, "klipper_config")
|
||||
if os.path.exists(klipper_config):
|
||||
filepath = os.path.join(klipper_config, "KlipperScreen.conf")
|
||||
filepath = os.path.join(klipper_config, self.configfile_name)
|
||||
elif os.path.exists(old_klipper_config):
|
||||
filepath = os.path.join(old_klipper_config, self.configfile_name)
|
||||
else:
|
||||
filepath = os.path.join(filepath, "KlipperScreen.conf")
|
||||
filepath = os.path.join(filepath, self.configfile_name)
|
||||
logging.info(f'Creating a new config file in {filepath}')
|
||||
|
||||
try:
|
||||
with open(filepath, 'w') as file:
|
||||
@@ -505,17 +545,13 @@ class KlipperScreenConfig:
|
||||
cfg = self.config[name]
|
||||
item = {
|
||||
"name": cfg.get("name"),
|
||||
"icon": cfg.get("icon"),
|
||||
"panel": cfg.get("panel", False),
|
||||
"method": cfg.get("method", False),
|
||||
"confirm": cfg.get("confirm", False),
|
||||
"enable": cfg.get("enable", True)
|
||||
"icon": cfg.get("icon", None),
|
||||
"panel": cfg.get("panel", None),
|
||||
"method": cfg.get("method", None),
|
||||
"confirm": cfg.get("confirm", None),
|
||||
"enable": cfg.get("enable", "True"),
|
||||
"params": cfg.get("params", "{}"),
|
||||
"style": cfg.get("style", None)
|
||||
}
|
||||
|
||||
try:
|
||||
item["params"] = json.loads(cfg.get("params", "{}"))
|
||||
except Exception as e:
|
||||
logging.exception(f"Unable to parse parameters for [{name}]:\n{e}")
|
||||
item["params"] = {}
|
||||
|
||||
return {name[(len(menu) + 6):]: item}
|
||||
@@ -128,6 +128,12 @@ icon: motor-off
|
||||
method: printer.gcode.script
|
||||
params: {"script":"M18"}
|
||||
|
||||
[menu __main actions camera]
|
||||
name: {{ gettext('Camera') }}
|
||||
icon: camera
|
||||
panel: camera
|
||||
enable: {{ camera_configured }}
|
||||
|
||||
[menu __main actions console]
|
||||
name: {{ gettext('Console') }}
|
||||
icon: console
|
||||
@@ -231,6 +237,13 @@ icon: custom-script
|
||||
panel: gcode_macros
|
||||
enable: {{ printer.gcode_macros.count > 0 }}
|
||||
|
||||
|
||||
[menu __print camera]
|
||||
name: {{ gettext('Camera') }}
|
||||
icon: camera
|
||||
panel: camera
|
||||
enable: {{ camera_configured }}
|
||||
|
||||
[menu __print console]
|
||||
name: {{ gettext('Console') }}
|
||||
icon: console
|
||||
@@ -252,11 +265,6 @@ icon: retract
|
||||
panel: retraction
|
||||
enable: {{ printer.firmware_retraction }}
|
||||
|
||||
[menu __print system]
|
||||
name: {{ gettext('System') }}
|
||||
icon: info
|
||||
panel: system
|
||||
|
||||
[menu __print settings]
|
||||
name: {{ gettext('Settings') }}
|
||||
icon: settings
|
||||
|
||||
+11
-12
@@ -16,7 +16,6 @@ class KlippyFiles:
|
||||
self.gcodes_path = None
|
||||
|
||||
def initialize(self):
|
||||
self.gcodes_path = None
|
||||
if "virtual_sdcard" in self._screen.printer.get_config_section_list():
|
||||
vsd = self._screen.printer.get_config_section("virtual_sdcard")
|
||||
if "path" in vsd:
|
||||
@@ -24,7 +23,11 @@ class KlippyFiles:
|
||||
logging.info(f"Gcodes path: {self.gcodes_path}")
|
||||
|
||||
def reset(self):
|
||||
self.__init__(self._screen)
|
||||
self._screen = None
|
||||
self.callbacks = None
|
||||
self.files = None
|
||||
self.filelist = None
|
||||
self.gcodes_path = None
|
||||
|
||||
def _callback(self, result, method, params):
|
||||
if method == "server.files.list":
|
||||
@@ -92,7 +95,8 @@ class KlippyFiles:
|
||||
if filename in self.filelist:
|
||||
logging.info(f"File already exists: {filename}")
|
||||
self.request_metadata(filename)
|
||||
GLib.timeout_add_seconds(1, self.run_callbacks, mods=[filename])
|
||||
args = None, None, [filename]
|
||||
GLib.idle_add(self.run_callbacks, *args)
|
||||
return
|
||||
|
||||
self.filelist.append(filename)
|
||||
@@ -135,10 +139,8 @@ class KlippyFiles:
|
||||
return filename in self.filelist
|
||||
|
||||
def file_metadata_exists(self, filename):
|
||||
if not self.file_exists(filename):
|
||||
return False
|
||||
if "slicer" in self.files[filename]:
|
||||
return True
|
||||
if self.file_exists(filename):
|
||||
return "slicer" in self.files[filename]
|
||||
return False
|
||||
|
||||
def get_thumbnail_location(self, filename, small=False):
|
||||
@@ -174,10 +176,6 @@ class KlippyFiles:
|
||||
if notify is True:
|
||||
self.run_callbacks(deletedfiles=[filename])
|
||||
|
||||
def ret_file_data(self, filename):
|
||||
logging.info(f"Getting file info for {filename}")
|
||||
self._screen._ws.klippy.get_file_metadata(filename, self._callback)
|
||||
|
||||
def run_callbacks(self, newfiles=None, deletedfiles=None, mods=None):
|
||||
if mods is None:
|
||||
mods = []
|
||||
@@ -188,7 +186,8 @@ class KlippyFiles:
|
||||
if len(self.callbacks) <= 0:
|
||||
return False
|
||||
for cb in self.callbacks:
|
||||
GLib.idle_add(cb, newfiles, deletedfiles, mods)
|
||||
args = newfiles, deletedfiles, mods
|
||||
GLib.idle_add(cb, *args)
|
||||
return False
|
||||
|
||||
def get_file_list(self):
|
||||
|
||||
+19
-16
@@ -47,8 +47,8 @@ try:
|
||||
return state
|
||||
|
||||
dpms_loaded = True
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as msg:
|
||||
logging.error(f"Couldn't load DPMS: {msg}")
|
||||
|
||||
|
||||
def get_network_interfaces():
|
||||
@@ -123,8 +123,8 @@ def patch_threading_excepthook():
|
||||
threading.Thread.__init__ = new_init
|
||||
|
||||
|
||||
# Timed rotating file handler based on Klipper and Moonraker's implementation
|
||||
class KlipperScreenLoggingHandler(logging.handlers.TimedRotatingFileHandler):
|
||||
# Rotating file handler based on Klipper and Moonraker's implementation
|
||||
class KlipperScreenLoggingHandler(logging.handlers.RotatingFileHandler):
|
||||
def __init__(self, software_version, filename, **kwargs):
|
||||
super(KlipperScreenLoggingHandler, self).__init__(filename, **kwargs)
|
||||
self.rollover_info = {
|
||||
@@ -157,24 +157,27 @@ def setup_logging(log_file, software_version):
|
||||
stdout_fmt = logging.Formatter(
|
||||
'%(asctime)s [%(filename)s:%(funcName)s()] - %(message)s')
|
||||
stdout_hdlr.setFormatter(stdout_fmt)
|
||||
|
||||
fh = None
|
||||
if log_file:
|
||||
fh = KlipperScreenLoggingHandler(software_version, log_file, when='midnight', backupCount=2)
|
||||
formatter = logging.Formatter(
|
||||
'%(asctime)s [%(filename)s:%(funcName)s()] - %(message)s')
|
||||
fh = listener = None
|
||||
try:
|
||||
fh = KlipperScreenLoggingHandler(software_version, log_file, maxBytes=4194304, backupCount=1)
|
||||
formatter = logging.Formatter('%(asctime)s [%(filename)s:%(funcName)s()] - %(message)s')
|
||||
fh.setFormatter(formatter)
|
||||
listener = logging.handlers.QueueListener(
|
||||
queue, fh, stdout_hdlr)
|
||||
else:
|
||||
listener = logging.handlers.QueueListener(
|
||||
queue, stdout_hdlr)
|
||||
listener = logging.handlers.QueueListener(queue, fh, stdout_hdlr)
|
||||
except Exception as e:
|
||||
print(
|
||||
f"Unable to create log file at '{os.path.normpath(log_file)}'.\n"
|
||||
f"Make sure that the folder '{os.path.dirname(log_file)}' exists\n"
|
||||
f"and KlipperScreen has Read/Write access to the folder.\n"
|
||||
f"{e}\n"
|
||||
)
|
||||
if listener is None:
|
||||
listener = logging.handlers.QueueListener(queue, stdout_hdlr)
|
||||
listener.start()
|
||||
|
||||
def logging_exception_handler(ex_type, value, tb, thread_identifier=None):
|
||||
logging.exception(
|
||||
f'Uncaught exception {ex_type}: {value}\n'
|
||||
f'Traceback: {traceback.format_tb(tb)}'
|
||||
+ '\n'.join([str(x) for x in [*traceback.format_tb(tb)]])
|
||||
)
|
||||
|
||||
sys.excepthook = logging_exception_handler
|
||||
|
||||
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-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"
|
||||
@@ -46,9 +46,6 @@ msgstr ""
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr ""
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr ""
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr ""
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr ""
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr ""
|
||||
msgid "Decrease"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr ""
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr ""
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr ""
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
msgid "Home All"
|
||||
msgstr ""
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr ""
|
||||
msgid "Increase"
|
||||
msgstr ""
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr ""
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr ""
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr ""
|
||||
msgid "Invalid"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr ""
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr ""
|
||||
msgid "Klipper will reboot"
|
||||
msgstr ""
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr ""
|
||||
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr ""
|
||||
msgid "Lower Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr ""
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr ""
|
||||
msgid "Max Velocity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr ""
|
||||
msgid "Menu"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr ""
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr ""
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
@@ -451,9 +454,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Off"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr ""
|
||||
@@ -505,9 +505,15 @@ msgstr ""
|
||||
msgid "Print Time"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr ""
|
||||
|
||||
@@ -517,12 +523,18 @@ msgstr ""
|
||||
msgid "Profile Name:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr ""
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr ""
|
||||
|
||||
@@ -553,8 +565,7 @@ msgstr ""
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
@@ -607,6 +618,12 @@ msgstr ""
|
||||
msgid "Show"
|
||||
msgstr ""
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
@@ -622,12 +639,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr ""
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr ""
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
@@ -670,10 +681,6 @@ msgstr ""
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr ""
|
||||
|
||||
msgid "Total:"
|
||||
msgstr ""
|
||||
|
||||
@@ -704,27 +711,12 @@ msgstr ""
|
||||
msgid "Uploaded"
|
||||
msgstr ""
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr ""
|
||||
|
||||
msgid "X+"
|
||||
msgstr ""
|
||||
|
||||
msgid "X-"
|
||||
msgstr ""
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y-"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr ""
|
||||
|
||||
@@ -740,12 +732,6 @@ msgstr ""
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z-"
|
||||
msgstr ""
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
@@ -770,3 +756,6 @@ msgstr ""
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
Binary file not shown.
@@ -0,0 +1,776 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Czech\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-01-29 09:28-0600\n"
|
||||
"PO-Revision-Date: 2023-01-29 09:27-0600\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: Jan Stanka (stanky@email.cz)\n"
|
||||
"Language: cs\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
msgstr "%s bude aktualizováno na verzi"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr ""
|
||||
|
||||
msgid "24 Hour Time"
|
||||
msgstr "24 hod formát"
|
||||
|
||||
msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "FW restart může fixnout chyby."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr "ADXL není nastaven"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Zrušit"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr "Zrychlení:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "Přijmout"
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "Akce"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Přidat profil"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Použít"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr "Použít %.2f přesah k Endstop?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Použít %s%.2f přesah k Sondě?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Opravdu chceš vyjmout objekt?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Opravdu okamžitě zastavit?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "Opravdu chcete zrušit tisk?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "Opravdu chcete uvolnit motory?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "Opravdu chcete rebootovat systém?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "Opravdu chcete vypnout systém?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr "Auto-kalibrace"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr "Automaticky zavřít upozornění"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto posun"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "Vyrovnání podložky"
|
||||
|
||||
msgid "Bed Mesh"
|
||||
msgstr "Mapa podložky"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr "Vyrovnání šroubů podložky:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Kalibrace"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr "Zkalibrováno"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Zkalibrováno, uložit změny jako trvalé"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr "Kalibruji"
|
||||
|
||||
msgid "Camera"
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Nemohu nastavit víc než max:"
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Zrušit"
|
||||
|
||||
msgid "Cancel Print"
|
||||
msgstr "Zrušit tisk"
|
||||
|
||||
msgid "Cancelled"
|
||||
msgstr "Zrušeno"
|
||||
|
||||
msgid "Cancelling"
|
||||
msgstr "Ruším"
|
||||
|
||||
msgid "Cannot connect to Moonraker"
|
||||
msgstr "Nelze se připojit k Moonraker"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "Kanál"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr "Zkontroluj zapojení ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr "Kontrola aktualizací, čekej ..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Vymaž"
|
||||
|
||||
msgid "Close"
|
||||
msgstr "Zavřít"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "Hotovo"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "Konfigurace"
|
||||
|
||||
msgid "Confirm Emergency Stop"
|
||||
msgstr "Potvrzovat Emergency Stop"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "Připojeno"
|
||||
|
||||
#, python-format
|
||||
msgid "Connecting to %s"
|
||||
msgstr "Připojování k %s"
|
||||
|
||||
msgid "Console"
|
||||
msgstr "Konsole"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "Pokračuj"
|
||||
|
||||
msgid "Cooldown"
|
||||
msgstr "Zchladit"
|
||||
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
|
||||
msgid "Delete Directory?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Smazat soubor?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Odznačit"
|
||||
|
||||
msgid "Disable Motors"
|
||||
msgstr "Uvolnit motory"
|
||||
|
||||
msgid "Disable XY"
|
||||
msgstr "Uvolnit XY"
|
||||
|
||||
msgid "Distance (mm)"
|
||||
msgstr "Vzdálenost (mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "Obnovit %s?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "Uplynulo:"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "Chyba"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "Výpočet doby tisku"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr "Vyloučit objekt"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra velký"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extruze"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "Extruze +"
|
||||
|
||||
msgid "Extrusion -"
|
||||
msgstr "Extruze -"
|
||||
|
||||
msgid "Failed, adjust position first"
|
||||
msgstr "Chyba, nastav nejprve pozici"
|
||||
|
||||
msgid "Fan"
|
||||
msgstr "Větrák"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "Typ filamentu"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr "Filament celkem:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr "Použitý filament:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr "Filament:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "Soubor"
|
||||
|
||||
msgid "File:"
|
||||
msgstr "Soubor:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr "Hledání ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Ladění"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "Konec"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Firmware Restart"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr "Tok:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr "Rychlost toku:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Velikost fontu"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "Úplný update"
|
||||
|
||||
msgid "Fullscreen"
|
||||
msgstr ""
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Zpět"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr "Výška:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Skrytý"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "Skrýt"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "Skrýt senzory v Temp."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr "Skrýt teplotu"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Zaparkovat XYZ"
|
||||
|
||||
msgid "Home X"
|
||||
msgstr "Zaparkovat X"
|
||||
|
||||
msgid "Home XY"
|
||||
msgstr "Zaparkovat XY"
|
||||
|
||||
msgid "Home Y"
|
||||
msgstr "Zaparkovat Y"
|
||||
|
||||
msgid "Home Z"
|
||||
msgstr "Zaparkovat Z"
|
||||
|
||||
msgid "Homing"
|
||||
msgstr "Domů"
|
||||
|
||||
msgid "Host"
|
||||
msgstr "Host"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "Sada ikon"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Startuji tiskárnu ..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "Rozhraní"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "Špatně"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Špatné heslo"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Otočit X"
|
||||
|
||||
msgid "Invert Y"
|
||||
msgstr "Otočit Y"
|
||||
|
||||
msgid "Invert Z"
|
||||
msgstr "Otočit Z"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Klipper Restart"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipper odpojen"
|
||||
|
||||
msgid "Klipper has encountered an error."
|
||||
msgstr "Klipper zaznamenal chybu."
|
||||
|
||||
msgid "Klipper has shutdown"
|
||||
msgstr "Klipper zastaven"
|
||||
|
||||
msgid "Klipper is attempting to start"
|
||||
msgstr "Klipper startuje"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper se restartuje"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen se restartuje"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Jazyk"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "Velký"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr "Vrstva:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Zbývá:"
|
||||
|
||||
msgid "Limits"
|
||||
msgstr "Limity"
|
||||
|
||||
msgid "Load"
|
||||
msgstr "Zasuň"
|
||||
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Trysku níž"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Macro shortcut on sidebar"
|
||||
|
||||
msgid "Macros"
|
||||
msgstr "Makra"
|
||||
|
||||
msgid "Main Menu"
|
||||
msgstr "Hlavní menu"
|
||||
|
||||
msgid "Max"
|
||||
msgstr "Max"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Max. zrychlení"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Z max. zrychlení do zpomalení"
|
||||
|
||||
msgid "Max Velocity"
|
||||
msgstr "Max. rychlost"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Změřit oboje"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr "Změřit X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr "Změřit Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Střední"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Kalibrace sítě"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Změněno"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Moonraker: připojen"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "Posun"
|
||||
|
||||
msgid "Move Distance (mm)"
|
||||
msgstr "Vzdálenost posunu (mm)"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "Jméno"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "Síť"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Nikdy"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Nový"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr "Nepodporováno autodetekcí, nakonfiguruj v klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nevybráno nic"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Zastaralý %d"
|
||||
|
||||
msgid "PSK for"
|
||||
msgstr "PSK pro"
|
||||
|
||||
msgid "Package will be updated"
|
||||
msgid_plural "Packages will be updated"
|
||||
msgstr[0] "Balíček bude aktualizován"
|
||||
msgstr[1] "Balíčky budou aktualizovány"
|
||||
msgstr[2] ""
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr "Částečný ofuk"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Heslo uloženo"
|
||||
|
||||
msgid "Pause"
|
||||
msgstr "Pauza"
|
||||
|
||||
msgid "Paused"
|
||||
msgstr "Pozastaveno"
|
||||
|
||||
msgid "Perform a full upgrade?"
|
||||
msgstr "Úplně aktualizovat?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr "Piny"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Znovu přelož a flashni micro-controller."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "Zdroj"
|
||||
|
||||
msgid "Power On Printer"
|
||||
msgstr "Zapni tiskárnu"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr "Pressure Advance:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Tisk"
|
||||
|
||||
msgid "Print Control"
|
||||
msgstr "Nastavení tisku"
|
||||
|
||||
msgid "Print Time"
|
||||
msgstr "Čas tisku"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Tiskárna"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Připojení"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Výběr tiskárny"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Probíhá tisk"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr "Offset sondy"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Jméno profilu:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Provide KlipperScreen.log when asking for help.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Quad Gantry Level"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Zvedni trysku"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Recover"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Recover Hard"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "Recover Soft"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "Reference"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "Obnovit"
|
||||
|
||||
msgid "Rename/Move:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Restart"
|
||||
|
||||
msgid "Resume"
|
||||
msgstr "Pokračuj"
|
||||
|
||||
msgid "Retract"
|
||||
msgstr "Retrakce"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr "Retrakce"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr "Délka retrakce"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Rychlost retrakce"
|
||||
|
||||
msgid "Retry"
|
||||
msgstr "Znovu"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Zkouším znovu"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Uložit"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "Ulož nastavení"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Uložit Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Uložit nastavení?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Uloženo"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr "Uložený offset: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Screen DPMS"
|
||||
|
||||
msgid "Screen Power Off Time"
|
||||
msgstr "Čas vypnutí displeje"
|
||||
|
||||
msgid "Screws Adjust"
|
||||
msgstr "Nastavit šrouby"
|
||||
|
||||
msgid "Select"
|
||||
msgstr "Vyber"
|
||||
|
||||
msgid "Send"
|
||||
msgstr "Odeslat"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Nastav teplotu"
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "Nastavení"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "Ukaž"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Ukaž odběr topení"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Shutdown"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Velikost"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "Slicer"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "Časová korekce Sliceru (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr "Slicer:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Malý"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Rychlost (mm/s)"
|
||||
|
||||
msgid "Speed +"
|
||||
msgstr "Rychlost ₊"
|
||||
|
||||
msgid "Speed -"
|
||||
msgstr "Rychlost -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr "Rychlost:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Start"
|
||||
msgstr "Start"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "Připojování k WiFi"
|
||||
|
||||
msgid "Starting recovery for"
|
||||
msgstr "Obnovuji"
|
||||
|
||||
msgid "Starting update for"
|
||||
msgstr "Aktualizuji"
|
||||
|
||||
msgid "System"
|
||||
msgstr "Systém"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr "Restart systému"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr "Vypnutí"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "Teplota (°C)"
|
||||
|
||||
msgid "Temperature"
|
||||
msgstr "Teplota"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "Neznámé topení"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr "Neznámé nastavení šroubů"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Vysuň"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr "Vysuň extra délku"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr "Vysunovací rychlost"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Aktuální"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "Aktualizuj"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "Aktualizuji"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Nahrané"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "Rychlost XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Kalibrace Z"
|
||||
|
||||
msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu Z (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr "Rychlost pohybu Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Z Tilt"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr "Z offset:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[2] ""
|
||||
|
||||
msgid "dBm"
|
||||
msgstr "dBm"
|
||||
|
||||
msgid "hour"
|
||||
msgid_plural "hours"
|
||||
msgstr[0] "hodina"
|
||||
msgstr[1] "hodiny"
|
||||
msgstr[2] "hodin"
|
||||
|
||||
msgid "minutes"
|
||||
msgstr "min"
|
||||
|
||||
msgid "mm"
|
||||
msgstr "mm"
|
||||
|
||||
msgid "mm/s"
|
||||
msgstr "mm/s"
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Decrease"
|
||||
#~ msgstr "Snížit"
|
||||
|
||||
#~ msgid "Increase"
|
||||
#~ msgstr "Zvětšit"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Sending Power ON signal to: %s"
|
||||
#~ msgstr "Odeslat ZAP do %s"
|
||||
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: SRBJ\n"
|
||||
"Language-Team: \n"
|
||||
@@ -11,7 +11,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -41,9 +41,6 @@ msgstr "OK"
|
||||
msgid "Actions"
|
||||
msgstr "Muligheder"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Tilføj printer"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -58,6 +55,9 @@ msgstr ""
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Er du sikker på, at du vil køre nødstop?"
|
||||
|
||||
@@ -104,10 +104,7 @@ msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Kalibreret, gem konfiguration for at gøre den permanent"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Kalibrerer..."
|
||||
msgstr "Kalibrerer"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Kan ikke indstilles over maksimum:"
|
||||
@@ -173,9 +170,6 @@ msgstr "Dato"
|
||||
msgid "Decrease"
|
||||
msgstr "Formindsk"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Slet"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -207,6 +201,9 @@ msgstr "Metode til beregning af tid"
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Ekstrudér"
|
||||
|
||||
@@ -282,9 +279,6 @@ msgstr "Skjul sensorer i Temp."
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Home"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Home alle"
|
||||
|
||||
@@ -315,9 +309,6 @@ msgstr "Ikon-tema"
|
||||
msgid "Increase"
|
||||
msgstr "Forøg"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Initialiserer"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Initialiserer printer..."
|
||||
|
||||
@@ -330,6 +321,9 @@ msgstr "Interface"
|
||||
msgid "Invalid"
|
||||
msgstr "Ugyldig"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Invertér X"
|
||||
|
||||
@@ -357,6 +351,9 @@ msgstr "Klipper forsøger at starte"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper vil genstarte"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen vil genstarte"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Sprog"
|
||||
|
||||
@@ -378,9 +375,6 @@ msgstr "Indlæs"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Sænk Nozzle"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Makrogenvej på sidelinjen"
|
||||
|
||||
@@ -402,6 +396,9 @@ msgstr "Maks. acceleration til decceleration"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Maks. hastighed"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -417,6 +414,9 @@ msgstr "Mellem"
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Ændret"
|
||||
|
||||
@@ -435,6 +435,9 @@ msgstr "Navn"
|
||||
msgid "Network"
|
||||
msgstr "Netværk"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr "Ny"
|
||||
|
||||
@@ -446,9 +449,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "Intet valgt"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Sluk"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Forældet med %d"
|
||||
@@ -500,9 +500,15 @@ msgstr "Print styring"
|
||||
msgid "Print Time"
|
||||
msgstr "Printtid"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Printer forbindelser"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Printer"
|
||||
|
||||
@@ -512,12 +518,18 @@ msgstr ""
|
||||
msgid "Profile Name:"
|
||||
msgstr "Profilnavn:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Justering af 4-søjlers konstruktion"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Hæv Nozzle"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Nulstil"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Nulstil alt"
|
||||
|
||||
@@ -548,9 +560,8 @@ msgstr ""
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Prøv igen #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
@@ -565,7 +576,7 @@ msgid "Save Z"
|
||||
msgstr "Gem Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Gem Konfiguration"
|
||||
msgstr "Gem Konfiguration?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Gemt"
|
||||
@@ -602,6 +613,12 @@ msgstr "Indstillinger"
|
||||
msgid "Show"
|
||||
msgstr "At vise"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Størrelse"
|
||||
|
||||
@@ -617,12 +634,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr "Lille"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sortér efter: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Sortere: "
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Hastighed (mm/s)"
|
||||
|
||||
@@ -633,7 +644,7 @@ msgid "Speed -"
|
||||
msgstr "Hastighed -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr "Hastighed"
|
||||
msgstr "Hastighed:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "Hastighed for 90° hjørne"
|
||||
@@ -665,10 +676,6 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatur"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "KlipperScreen skal genstartes for at anvende %s"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
@@ -699,27 +706,12 @@ msgstr "Opdatering"
|
||||
msgid "Uploaded"
|
||||
msgstr "Uploadet"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Vis mesh"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY Flyt hastighed (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY Hastighed (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Kalibrér Z"
|
||||
|
||||
@@ -735,12 +727,6 @@ msgstr "Z-tilt"
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "ændring"
|
||||
@@ -766,6 +752,58 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Sortere: "
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Kalibrerer..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Prøv igen #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Tilføj printer"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Initialiserer"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Slet"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Home"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Sluk"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Vis mesh"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sortér efter: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch fundet anvendt offset"
|
||||
|
||||
@@ -794,9 +832,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Ukendt varmelegeme "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Afbryd forbindelse"
|
||||
|
||||
|
||||
Binary file not shown.
+146
-109
@@ -7,16 +7,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-03-31 10:43-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:10-0300\n"
|
||||
"Last-Translator: livinhack\n"
|
||||
"Language-Team: \n"
|
||||
"Language: de_DE\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -32,7 +32,7 @@ msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "Ein FIRMWARE_RESTART kann das Problem beheben."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr ""
|
||||
msgstr "ADXL nicht konfiguriert"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Abbrechen"
|
||||
@@ -46,22 +46,22 @@ msgstr "OK"
|
||||
msgid "Actions"
|
||||
msgstr "Aktionen"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Drucker hinzufügen"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "Profil hinzufügen"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
msgstr "Anwenden"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr ""
|
||||
msgstr "%.2f Offset auf Endstop anwenden?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
msgstr "%s%.2f Offset auf Sonde anwenden?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Möchten Sie das Objekt wirklich ausschließen?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Sind Sie sicher, dass Sie Not-Aus ausführen möchten?"
|
||||
@@ -85,7 +85,7 @@ msgid "Auto-calibrate"
|
||||
msgstr "Automatisch kalibrieren"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "Benachrichtigungen automatisch schließen"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto-scroll"
|
||||
@@ -97,7 +97,7 @@ msgid "Bed Mesh"
|
||||
msgstr "Druckbett Mesh-Level"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "Bettschraubenkonfiguration:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Höheneinstellung"
|
||||
@@ -106,13 +106,10 @@ msgid "Calibrated"
|
||||
msgstr "Kalibriert"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Kalibriert, Konfiguration speichern, um sie dauerhaft zu machen"
|
||||
msgstr "Kalibriert, Konfiguration dauerhaft speichern"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Kalibrieren..."
|
||||
msgstr "Kalibrieren"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Kann nicht über dem Maximum eingestellt werden:"
|
||||
@@ -136,10 +133,10 @@ msgid "Channel"
|
||||
msgstr "Kanal"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr ""
|
||||
msgstr "Überprüfen Sie die ADXL-Verkabelung"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "Suche nach Updates, bitte warten..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
@@ -178,11 +175,8 @@ msgstr "Datum"
|
||||
msgid "Decrease"
|
||||
msgstr "Verringern"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Löschen"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "Datei löschen?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Abwählen"
|
||||
@@ -210,7 +204,10 @@ msgid "Estimated Time Method"
|
||||
msgstr "Druckzeit"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
msgstr "Objekt ausschließen"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra groß"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Filament fördern"
|
||||
@@ -252,28 +249,28 @@ msgid "Fine Tuning"
|
||||
msgstr "Feintuning"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "Ziel"
|
||||
msgstr "Fertig"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Firmware Neu starten"
|
||||
msgstr "Firmware Neustart"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr ""
|
||||
msgstr "Fluss:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr ""
|
||||
msgstr "Fließrate:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Schriftgröße"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "Voll Aktualisieren"
|
||||
msgstr "Vollständige Aktualisierung"
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Zurück"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr ""
|
||||
msgstr "Höhe:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Versteckt"
|
||||
@@ -285,10 +282,7 @@ msgid "Hide sensors in Temp."
|
||||
msgstr "Sensoren in Temp ausblenden."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Grundposition"
|
||||
msgstr "Temp. ausblenden"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Alle Achsen zurücksetzen"
|
||||
@@ -309,7 +303,7 @@ msgid "Homing"
|
||||
msgstr "Grundposition"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
msgstr "Host"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
@@ -320,14 +314,11 @@ msgstr "Icon Theme"
|
||||
msgid "Increase"
|
||||
msgstr "Erhöhen"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Startvorgang"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Drucker wird initialisiert..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
msgstr "Input Shaper"
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "Interface"
|
||||
@@ -335,6 +326,9 @@ msgstr "Interface"
|
||||
msgid "Invalid"
|
||||
msgstr "Ungültig"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Ungültiges Passwort"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Achse X invertieren"
|
||||
|
||||
@@ -345,10 +339,10 @@ msgid "Invert Z"
|
||||
msgstr "Achse Z invertieren"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Klipper Neu starten"
|
||||
msgstr "Klipper Neustart"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipper nicht verbunden"
|
||||
msgstr "Verbindung zu Klipper getrennt"
|
||||
|
||||
msgid "Klipper has encountered an error."
|
||||
msgstr "Klipper hat einen Fehler festgestellt."
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper ist startbereit"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper startet neu"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen startet neu"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Sprache"
|
||||
|
||||
@@ -369,7 +366,7 @@ msgid "Large"
|
||||
msgstr "Groß"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr ""
|
||||
msgstr "Schicht:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Restzeit:"
|
||||
@@ -383,9 +380,6 @@ msgstr "Laden"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Düse absenken"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Makro Verknüpfung in Sidebar"
|
||||
|
||||
@@ -396,7 +390,7 @@ msgid "Main Menu"
|
||||
msgstr "Hauptmenü"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "Max"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Max Beschleunigung"
|
||||
@@ -407,14 +401,17 @@ msgstr "Max Verzögerung"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Max Geschwindigkeit"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximal"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
msgstr "Beides messen"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr ""
|
||||
msgstr "Messen Sie X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr ""
|
||||
msgstr "Messen Sie Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Mittel"
|
||||
@@ -422,6 +419,9 @@ msgstr "Mittel"
|
||||
msgid "Menu"
|
||||
msgstr "Menü"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Mesh kalibrieren"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Modifiziert"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "Name"
|
||||
msgid "Network"
|
||||
msgstr "Netzwerk"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Niemals"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Neu"
|
||||
|
||||
@@ -447,13 +450,12 @@ msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Wird für die automatische Erkennung nicht unterstützt, muss in klipperscreen."
|
||||
"conf konfiguriert werden"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nichts ausgewählt"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Aus"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Veraltet von %d"
|
||||
@@ -467,7 +469,7 @@ msgstr[0] "Paket wird aktualisiert"
|
||||
msgstr[1] "Pakete werden aktualisiert"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
msgstr "Bauteil Lüfter"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Passwort gespeichert"
|
||||
@@ -482,7 +484,7 @@ msgid "Perform a full upgrade?"
|
||||
msgstr "Vollständiges Upgrade durchführen?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
msgstr "Pins"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Please recompile and flash the micro-controller."
|
||||
@@ -494,7 +496,7 @@ msgid "Power On Printer"
|
||||
msgstr "Drucker einschalten"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
msgstr "Druckvorlauf:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Druck"
|
||||
@@ -505,35 +507,47 @@ msgstr "Druck Steuerung"
|
||||
msgid "Print Time"
|
||||
msgstr "Druckzeit"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Drucker"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Drucker Verbindungen"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Wählen Sie einen Drucker"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Drucken"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr ""
|
||||
msgstr "Sonden-Offset"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Profilname:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Quad Gantry Level"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Düse anheben"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Rücksetzen"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Rücksetzen Hard"
|
||||
msgstr "Rücksetzen (Hard)"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "Rücksetzen Soft"
|
||||
msgstr "Rücksetzen (Soft)"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "Referenz"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
msgstr "Aktualisieren"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Neustart"
|
||||
@@ -553,12 +567,11 @@ msgstr "Rückzugslänge"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Rückzugsgeschwindigkeit"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Wiederholen #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Wiederholen"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "Wiederhole"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Speichern"
|
||||
@@ -567,17 +580,17 @@ msgid "Save Config"
|
||||
msgstr "Einstellungen speichern"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Speichern Sie Z"
|
||||
msgstr "Z speichern"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Konfiguration speichern?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Gerettet"
|
||||
msgstr "Gespeichert"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr ""
|
||||
msgstr "Gespeicherter Versatz: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Bildschirm-DPMS"
|
||||
@@ -607,6 +620,12 @@ msgstr "Einstellungen"
|
||||
msgid "Show"
|
||||
msgstr "Zeigen"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Heizleistung anzeigen"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Ausschalten"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Größe"
|
||||
|
||||
@@ -617,17 +636,11 @@ msgid "Slicer Time correction (%)"
|
||||
msgstr "Slicer-Zeitkorrektur (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr ""
|
||||
msgstr "Slicer:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Klein"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sortierung: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Sortieren: "
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Geschwindigkeit (mm/s)"
|
||||
|
||||
@@ -647,7 +660,7 @@ msgid "Start"
|
||||
msgstr "Starten"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "Wi-Fi Association starten"
|
||||
msgstr "Wi-Fi Verbindung starten"
|
||||
|
||||
msgid "Starting recovery for"
|
||||
msgstr "Starte Wiederherstellung für"
|
||||
@@ -670,10 +683,6 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatur"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Zum Übernehmen von %s benötigt Klipperscreen einen Neustart"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Gesamt:"
|
||||
|
||||
@@ -681,16 +690,16 @@ msgid "Unknown Heater"
|
||||
msgstr "Unbekannte Heizung"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "Unbekannte Schraubenposition"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Entladen"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
msgstr "Überlänge ausfahren"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
msgstr "Ausfahrgeschwindigkeit"
|
||||
|
||||
# Respect the number of characters
|
||||
# english text barely fits in small screens
|
||||
@@ -701,32 +710,17 @@ msgid "Update"
|
||||
msgstr "Update"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "Aktualisierung"
|
||||
msgstr "Aktualisiere"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Hochgeladen"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Mesh anzeigen"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY Bewegungsgeschwindigkeit (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY Geschwindigkeit (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Höhe Kalibrieren"
|
||||
|
||||
@@ -742,12 +736,6 @@ msgstr "Z-Achse ausrichten"
|
||||
msgid "Z offset:"
|
||||
msgstr "Z Offset:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "Änderung"
|
||||
@@ -773,6 +761,58 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Sortieren:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Kalibrieren..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Wiederholen #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Drucker hinzufügen"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Startvorgang"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Löschen"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Grundposition"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Aus"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Mesh anzeigen"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sortierung: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch hat angewendeten Offset gefunden"
|
||||
|
||||
@@ -801,9 +841,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Unbekannte Heizung "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Nicht verbunden"
|
||||
|
||||
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@@ -41,9 +41,6 @@ msgstr ""
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -58,6 +55,9 @@ msgstr ""
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr ""
|
||||
|
||||
@@ -106,9 +106,6 @@ msgstr ""
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr ""
|
||||
|
||||
@@ -173,9 +170,6 @@ msgstr ""
|
||||
msgid "Decrease"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -207,6 +201,9 @@ msgstr ""
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr ""
|
||||
|
||||
@@ -282,9 +279,6 @@ msgstr ""
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
msgid "Home All"
|
||||
msgstr ""
|
||||
|
||||
@@ -315,9 +309,6 @@ msgstr ""
|
||||
msgid "Increase"
|
||||
msgstr ""
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr ""
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr ""
|
||||
|
||||
@@ -330,6 +321,9 @@ msgstr ""
|
||||
msgid "Invalid"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr ""
|
||||
|
||||
@@ -357,6 +351,9 @@ msgstr ""
|
||||
msgid "Klipper will reboot"
|
||||
msgstr ""
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr ""
|
||||
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
@@ -378,9 +375,6 @@ msgstr ""
|
||||
msgid "Lower Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr ""
|
||||
|
||||
@@ -402,6 +396,9 @@ msgstr ""
|
||||
msgid "Max Velocity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -417,6 +414,9 @@ msgstr ""
|
||||
msgid "Menu"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr ""
|
||||
|
||||
@@ -435,6 +435,9 @@ msgstr ""
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
@@ -446,9 +449,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Off"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr ""
|
||||
@@ -500,9 +500,15 @@ msgstr ""
|
||||
msgid "Print Time"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr ""
|
||||
|
||||
@@ -512,12 +518,18 @@ msgstr ""
|
||||
msgid "Profile Name:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr ""
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr ""
|
||||
|
||||
@@ -548,8 +560,7 @@ msgstr ""
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
@@ -602,6 +613,12 @@ msgstr ""
|
||||
msgid "Show"
|
||||
msgstr ""
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
@@ -617,12 +634,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr ""
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr ""
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
@@ -665,10 +676,6 @@ msgstr ""
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr ""
|
||||
|
||||
msgid "Total:"
|
||||
msgstr ""
|
||||
|
||||
@@ -699,27 +706,12 @@ msgstr ""
|
||||
msgid "Uploaded"
|
||||
msgstr ""
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr ""
|
||||
|
||||
msgid "X+"
|
||||
msgstr ""
|
||||
|
||||
msgid "X-"
|
||||
msgstr ""
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y-"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr ""
|
||||
|
||||
@@ -735,12 +727,6 @@ msgstr ""
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z-"
|
||||
msgstr ""
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
@@ -765,3 +751,6 @@ msgstr ""
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-08-10 12:01-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:10-0300\n"
|
||||
"Last-Translator: alfrix\n"
|
||||
"Language-Team: \n"
|
||||
"Language: es\n"
|
||||
@@ -16,7 +16,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -46,9 +46,6 @@ msgstr "Aceptar"
|
||||
msgid "Actions"
|
||||
msgstr "Acciones"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Agregar impresora"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Agregar perfil"
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr "Aplicar %.2f desfase al final de carrera?"
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Aplicar %s%.2f desfase al sensor?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "¿Está seguro de excluir este objeto?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "¿Parada de emergencia?"
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr "Calibrado, guarde su configuración para hacerlo permanente"
|
||||
msgid "Calibrating"
|
||||
msgstr "Calibrando"
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Calibrando..."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Error: Valor sobre el máximo:"
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr "Fecha"
|
||||
msgid "Decrease"
|
||||
msgstr "Disminuir"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Borrar"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "¿Borrar archivo?"
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr "Método para estimar tiempo"
|
||||
msgid "Exclude Object"
|
||||
msgstr "Excluir Objeto"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra Grande"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extruir"
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr "Ocultar sensores en Temp."
|
||||
msgid "Hide temp."
|
||||
msgstr "Ocultar temp."
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Inicio"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Origen XYZ"
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr "Tema de Iconos"
|
||||
msgid "Increase"
|
||||
msgstr "Aumentar"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Iniciando"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Iniciando Impresora..."
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr "Interfaz"
|
||||
msgid "Invalid"
|
||||
msgstr "Invalido"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Contraseña invalida"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Invertir X"
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper está intentando iniciar"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper se reiniciará"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen se reiniciará"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Idioma"
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr "Cargar"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Bajar Boquilla"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr "Máquina"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Atajo a Macros en el lateral"
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr "Max. Aceleración a Desaceleración"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Max. Velocidad"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximo"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Medir Ambos"
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr "Medio"
|
||||
msgid "Menu"
|
||||
msgstr "Menú"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Calibrar Malla"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Modificado"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "Nombre"
|
||||
msgid "Network"
|
||||
msgstr "Red"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Nunca"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Nuevo"
|
||||
|
||||
@@ -453,9 +456,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nada seleccionado"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Apagar"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Desactualizado por %d"
|
||||
@@ -507,9 +507,15 @@ msgstr "Control de impresión"
|
||||
msgid "Print Time"
|
||||
msgstr "Tiempo de impresión"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Impresora"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Conexiones a impresoras"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Seleccionar Impresora"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Imprimiendo"
|
||||
|
||||
@@ -519,12 +525,18 @@ msgstr "Desfase del sensor"
|
||||
msgid "Profile Name:"
|
||||
msgstr "Nombre del perfil:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Provea KlipperScreen.log cuando pida ayuda.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Nivelación cuádruple"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Levantar Boquilla"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Recuperar"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Recuperar Hard"
|
||||
|
||||
@@ -555,9 +567,8 @@ msgstr "Largo de Retracción"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Velocidad de Retracción"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Intento #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Reintentar"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Reintentando"
|
||||
@@ -609,6 +620,12 @@ msgstr "Opciones"
|
||||
msgid "Show"
|
||||
msgstr "Mostrar"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Mostrar potencia del calentador"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Apagar"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Tamaño"
|
||||
|
||||
@@ -624,12 +641,6 @@ msgstr "Slicer:"
|
||||
msgid "Small"
|
||||
msgstr "Pequeño"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Ordenar por: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Ordenar:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Velocidad (mm/s)"
|
||||
|
||||
@@ -672,10 +683,6 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Para aplicar %s KlipperScreen necesita reiniciarse"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
@@ -706,27 +713,12 @@ msgstr "Actualizando"
|
||||
msgid "Uploaded"
|
||||
msgstr "Subido"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Ver Malla"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Velocidad XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY Velocidad (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Calibrar Z"
|
||||
|
||||
@@ -742,12 +734,6 @@ msgstr "Inclinación Z"
|
||||
msgid "Z offset:"
|
||||
msgstr "Desfase Z:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "cambio"
|
||||
@@ -773,6 +759,64 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "KlipperScreen will be restarted"
|
||||
#~ msgstr "KlipperScreen se reiniciará"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Ordenar:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Calibrando..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Intento #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Agregar impresora"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Iniciando"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Borrar"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Inicio"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Apagar"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Ver Malla"
|
||||
|
||||
#~ msgid "Machine"
|
||||
#~ msgstr "Máquina"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Ordenar por: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Encontrado Bltouch aplicado desfase"
|
||||
|
||||
@@ -801,9 +845,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Calentador Desconocido "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Desconectar"
|
||||
|
||||
|
||||
Binary file not shown.
+195
-158
@@ -7,16 +7,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-03-31 10:50-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:11-0300\n"
|
||||
"Last-Translator: O. Robardet\n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr_FR\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -32,7 +32,7 @@ msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "Un FIRMWARE_RESTART peut résoudre le problème."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr ""
|
||||
msgstr "ADXL non configuré"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Annuler"
|
||||
@@ -46,61 +46,61 @@ msgstr "Accepter"
|
||||
msgid "Actions"
|
||||
msgstr "Actions"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Ajouter une imprimante"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "Ajouter un profil"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
msgstr "Appliquer"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr ""
|
||||
msgstr "Appliquer un décalage de %.2f au Endstop ?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
msgstr "Appliquer un décalage de %s%.2f au palpeur ?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Êtes-vous sûr de vouloir exclure l’objet ?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Êtes-vous sûr de vouloir exécuter l'arrêt d'urgence?"
|
||||
msgstr "Êtes-vous sûr de vouloir exécuter l'arrêt d'urgence ?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "Êtes-vous sûr de vouloir annuler cette impression?"
|
||||
msgstr "Êtes-vous sûr de vouloir annuler cette impression ?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "Voulez-vous vraiment désactiver les moteurs ?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "Êtes-vous sûr de vouloir redémarrer le système?"
|
||||
msgstr "Êtes-vous sûr de vouloir redémarrer le système ?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "Êtes-vous sûr de vouloir arrêter le système?"
|
||||
msgstr "Êtes-vous sûr de vouloir arrêter le système ?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr "Calibrage automatique"
|
||||
msgstr "Calibration Automatique"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "Fermeture automatique des notifications"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto-scroll"
|
||||
msgstr "Défilement automatique"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "Nivelage du plateau"
|
||||
msgstr "Nivellement"
|
||||
|
||||
msgid "Bed Mesh"
|
||||
msgstr "Maillage du plateau"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "Configuration des vis:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Étalonner"
|
||||
msgstr "Calibrer"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr "Calibré"
|
||||
@@ -109,10 +109,7 @@ msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Calibré, enregistrez la configuration pour la rendre permanente"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Calibrage..."
|
||||
msgstr "Calibrage"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Impossible de définir au-dessus du maximum:"
|
||||
@@ -124,7 +121,7 @@ msgid "Cancel Print"
|
||||
msgstr "Annuler l'impression"
|
||||
|
||||
msgid "Cancelled"
|
||||
msgstr "Annulé"
|
||||
msgstr "Annulée"
|
||||
|
||||
msgid "Cancelling"
|
||||
msgstr "Annulation"
|
||||
@@ -136,19 +133,19 @@ msgid "Channel"
|
||||
msgstr "Canal"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr ""
|
||||
msgstr "Vérifier le câblage ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "Recherche de mises à jour, veuillez patienter..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
msgstr "Effacer"
|
||||
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "Finalisé"
|
||||
msgstr "Impression terminée"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "Configuration"
|
||||
@@ -178,11 +175,8 @@ msgstr "Date"
|
||||
msgid "Decrease"
|
||||
msgstr "Diminuer"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Effacer"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "Supprimer le fichier ?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Désélectionner"
|
||||
@@ -207,13 +201,16 @@ msgid "Error"
|
||||
msgstr "Erreur"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "Méthode d'estimation du temps"
|
||||
msgstr "Méthode d'estimation de la durée"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
msgstr "Exclure Objet"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra Grande"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extruder"
|
||||
msgstr "Extrusion"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "Extrusion +"
|
||||
@@ -225,13 +222,13 @@ msgid "Failed, adjust position first"
|
||||
msgstr "Échec, ajustez d'abord la position"
|
||||
|
||||
msgid "Fan"
|
||||
msgstr "Ventilateur"
|
||||
msgstr "Ventilation"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "Filament utilisé"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr "Total de filaments:"
|
||||
msgstr "Total filament:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr "Filament utilisé:"
|
||||
@@ -246,49 +243,46 @@ msgid "File:"
|
||||
msgstr "Fichier:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr ""
|
||||
msgstr "Recherche de l’ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Réglages fins"
|
||||
msgstr "Réglages précis"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "Fin"
|
||||
msgstr "Terminée"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Micrologiciel Redémarrage"
|
||||
msgstr "Redémarrer Firmware"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr ""
|
||||
msgstr "Flux:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr ""
|
||||
msgstr "Débit:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Taille de police"
|
||||
msgstr "Taille de la police"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "Plein Mettre à jour"
|
||||
msgstr "Mettre à jour"
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Retourner"
|
||||
msgstr "Retour"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr ""
|
||||
msgstr "Hauteur:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Caché"
|
||||
msgstr "Masqué"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "Cacher"
|
||||
msgstr "Masquer"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "Masquer les capteurs dans Temp."
|
||||
msgstr "Masquer les capteurs dans Températures"
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Accueil"
|
||||
msgstr "Masquer temp."
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Origine XYZ"
|
||||
@@ -309,25 +303,22 @@ msgid "Homing"
|
||||
msgstr "Origine"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
msgstr "Hôte"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
msgstr "Nom d’hôte"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "Thème icônes"
|
||||
msgstr "Thème"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "Augmenter"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Initialisation"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Démarrage de l'imprimante..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
msgstr "Input Shaper"
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "Interface"
|
||||
@@ -335,17 +326,20 @@ msgstr "Interface"
|
||||
msgid "Invalid"
|
||||
msgstr "Invalide"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Inverser X"
|
||||
msgstr "Inverser l'axe X"
|
||||
|
||||
msgid "Invert Y"
|
||||
msgstr "Inverser Y"
|
||||
msgstr "Inverser l'axe Y"
|
||||
|
||||
msgid "Invert Z"
|
||||
msgstr "Inverser Z"
|
||||
msgstr "Inverser l'axe Z"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Klipper Redémarrage"
|
||||
msgstr "Redémarrer Klipper"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipper s'est déconnecté"
|
||||
@@ -362,14 +356,17 @@ msgstr "Klipper tente de démarrer"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper va redémarrer"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen va redémarrer"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Langue"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "Grand"
|
||||
msgstr "Grande"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr ""
|
||||
msgstr "Couche:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Restant:"
|
||||
@@ -383,11 +380,8 @@ msgstr "Charger"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Rapprocher la buse"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Raccourci macro sur la barre latérale"
|
||||
msgstr "Raccourci des Macros sur la barre latérale"
|
||||
|
||||
msgid "Macros"
|
||||
msgstr "Macros"
|
||||
@@ -396,37 +390,43 @@ msgid "Main Menu"
|
||||
msgstr "Menu principal"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "Max"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Accélération Max"
|
||||
msgstr "Accélération maximale"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Accélération maximale à décélération"
|
||||
msgstr "Accélération à décélération maximale"
|
||||
|
||||
msgid "Max Velocity"
|
||||
msgstr "Vélocité maximale"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
msgstr "Mesurer les deux"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr ""
|
||||
msgstr "Mesure X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr ""
|
||||
msgstr "Mesure Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Moyen"
|
||||
msgstr "Moyenne"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Calibration du maillage"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Modifié"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Moonraker : connecté"
|
||||
msgstr "Moonraker: connecté"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "Mouvement"
|
||||
@@ -440,6 +440,9 @@ msgstr "Nom"
|
||||
msgid "Network"
|
||||
msgstr "Réseau"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Jamais"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Nouveau"
|
||||
|
||||
@@ -447,16 +450,15 @@ msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Non pris en charge pour la détection automatique, il doit être configuré "
|
||||
"dans klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Rien de sélectionné"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Éteindre"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Obsolète de %d"
|
||||
msgstr "Obsolète par %d"
|
||||
|
||||
msgid "PSK for"
|
||||
msgstr "PSK pour"
|
||||
@@ -464,10 +466,10 @@ msgstr "PSK pour"
|
||||
msgid "Package will be updated"
|
||||
msgid_plural "Packages will be updated"
|
||||
msgstr[0] "Le paquet sera mis à jour"
|
||||
msgstr[1] "Forfaits seront mis à jour"
|
||||
msgstr[1] "Les paquets seront mis à jour"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
msgstr "Ventilateurs de refroidissement"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Mot de passe enregistré"
|
||||
@@ -482,7 +484,7 @@ msgid "Perform a full upgrade?"
|
||||
msgstr "Effectuer une mise à jour complète ?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
msgstr "Pins"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Veuillez recompiler et flasher le microcontrôleur."
|
||||
@@ -494,7 +496,7 @@ msgid "Power On Printer"
|
||||
msgstr "Allumer l'imprimante"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
msgstr "Pressure Advance:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Imprimer"
|
||||
@@ -503,37 +505,49 @@ msgid "Print Control"
|
||||
msgstr "Contrôle de l'impression"
|
||||
|
||||
msgid "Print Time"
|
||||
msgstr "Temps d'impression"
|
||||
msgstr "Durée d'impression"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Imprimante"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Connexions aux imprimantes"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Sélection d'une imprimante"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Impression"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr ""
|
||||
msgstr "Décalage du palpeur"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Nom de profil:"
|
||||
msgstr "Nom du profil:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Portique à quatre niveaux"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Éloigner la buse"
|
||||
msgstr "Eloigner la buse"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Récupération"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Récupération \"--hard\""
|
||||
msgstr "Récupération Hard"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "Récupérer \"--soft\""
|
||||
msgstr "Récupération Soft"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "Référence"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
msgstr "Rafraîchir"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Redémarrer"
|
||||
@@ -548,36 +562,35 @@ msgid "Retraction"
|
||||
msgstr "Rétraction"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr "Longueur de rétraction"
|
||||
msgstr "Distance de rétraction"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Vitesse de rétraction"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Réessayez #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Réessayer"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "Réessaye"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Enregistrer"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "Enregistrer la config"
|
||||
msgstr "Enregistrer la configuration"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Enregistrer Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Enregistrer la configuration?"
|
||||
msgstr "Enregistrer la configuration ?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Enregistré"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr ""
|
||||
msgstr "Décalage enregistré: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Écran DPMS"
|
||||
@@ -596,40 +609,40 @@ msgstr "Envoyer"
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
msgstr "Envoi du signal de mise sous tension à : %s"
|
||||
msgstr "Envoi du signal de mise sous tension à: %s"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Régler la temp"
|
||||
msgstr "Régler la température"
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "Montrer"
|
||||
msgstr "Afficher"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Afficher la puissance de chauffe"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Arrêter"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Dimension"
|
||||
msgstr "Taille"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "Trancheur"
|
||||
msgstr "Slicer"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "Correction du temps de trancheuse (%)"
|
||||
msgstr "Correction de la durée du slicer (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr ""
|
||||
msgstr "Slicer:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Petit"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Trier par: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Trier:"
|
||||
msgstr "Petite"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Vitesse de déplacement (mm/s)"
|
||||
msgstr "Vitesse (mm/s)"
|
||||
|
||||
msgid "Speed +"
|
||||
msgstr "Vitesse +"
|
||||
@@ -659,10 +672,10 @@ msgid "System"
|
||||
msgstr "Système"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr "Redémarrer le système"
|
||||
msgstr "Redémarrez le système"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr "Arrêt du Système"
|
||||
msgstr "Arrêter le système"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "Temp (°C)"
|
||||
@@ -670,48 +683,35 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Température"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Pour appliquer %s KlipperScreen doit être redémarré"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "Chauffage inconnu"
|
||||
msgstr "Chauffe inconnue"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "Position de vis inconnue"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Décharger"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
msgstr "Longueur supplémentaire non rétractée"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
msgstr "Vitesse non rétractée"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "À jour"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "Mise à jour"
|
||||
msgstr "Mettre à jour"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "Mise à jour"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Téléchargé"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Voir le maillage"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
msgstr "Envoyé"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Vitesse de déplacement XY (mm/s)"
|
||||
@@ -719,12 +719,6 @@ msgstr "Vitesse de déplacement XY (mm/s)"
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "Vitesse XY (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Calibration Z"
|
||||
|
||||
@@ -738,13 +732,7 @@ msgid "Z Tilt"
|
||||
msgstr "Z Tilt"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr "Décalage Z"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
msgstr "Décalage Z:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
@@ -756,7 +744,7 @@ msgstr "dBm"
|
||||
|
||||
msgid "hour"
|
||||
msgid_plural "hours"
|
||||
msgstr[0] "heur"
|
||||
msgstr[0] "heure"
|
||||
msgstr[1] "heures"
|
||||
|
||||
msgid "minutes"
|
||||
@@ -771,6 +759,58 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Trier:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Calibrage..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Réessayez #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Ajouter une imprimante"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Initialisation"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Effacer"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Accueil"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Éteindre"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Voir le maillage"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Trier par: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch a trouvé le décalage appliqué"
|
||||
|
||||
@@ -799,9 +839,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Chauffage inconnu "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Déconnecter"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+204
-168
@@ -7,17 +7,17 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Klipperscreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-03-31 10:54-0300\n"
|
||||
"Last-Translator: Emanuel Sharvit <manu7irl@gmail.com>\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:11-0300\n"
|
||||
"Last-Translator: Tal Rahav <talrhv1@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: he_IL\n"
|
||||
"Language: he\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n==2 ? 1 : n>10 && n%10==0 ? "
|
||||
"2 : 3);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
|
||||
#, python-format
|
||||
@@ -25,7 +25,7 @@ msgid "%s will be updated to version"
|
||||
msgstr "%s יעודכן לגרסה"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr "(בְּרִירַת מֶחדָל)"
|
||||
msgstr "(ברירת מחדל)"
|
||||
|
||||
msgid "24 Hour Time"
|
||||
msgstr "זמן 24 שעות"
|
||||
@@ -34,13 +34,13 @@ msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "FIRMWARE_RESTART עשוי לפתור את הבעיה."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr ""
|
||||
msgstr "ADXL אינו מוגדר"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "בטל"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr ""
|
||||
msgstr "האצה"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "אשר"
|
||||
@@ -48,26 +48,25 @@ msgstr "אשר"
|
||||
msgid "Actions"
|
||||
msgstr "פעולות"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "הוסף מדפסת"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "הוסף פרופיל"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
msgstr "החל"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr ""
|
||||
msgstr "הוסף %.2f לתחנת קצה?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "החל היסט של %s%.2f על בדיקה"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr ""
|
||||
"האם אתה בטוח שברצונך להדפיסהאם אתה בטוח שברצונך להפעיל את עצירת החירום?"
|
||||
msgstr "האם אתה בטוח שאתה רוצה לבצע עצירת חירום?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "האם אתה בטוח שברצונך לבטל את ההדפסה?"
|
||||
@@ -79,16 +78,16 @@ msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "האם אתה בטוח שברצונך לאתחל את המערכת?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "האם אתה בטוח שברצונך לסגור את המערכת?"
|
||||
msgstr "האם אתה בטוח שברצונך לכבות את המערכת?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "אוטומטי"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr ""
|
||||
msgstr "כיול אוטומטי"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "סגירת התראות אוטומטית"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "גלילה אוטומטית"
|
||||
@@ -100,22 +99,19 @@ msgid "Bed Mesh"
|
||||
msgstr "מיפוי מיטה"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "הגדרת בורג מיטה"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "לְדַרֵג"
|
||||
msgstr "לכייל"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr ""
|
||||
msgstr "מכויל"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "מכויל, שמור את התצורה כדי שהיא תהיה קבועה"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
msgstr "מכייל"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "לא ניתן להגדיר מעל המקסימום:"
|
||||
@@ -136,22 +132,22 @@ msgid "Cannot connect to Moonraker"
|
||||
msgstr "לא ניתן להתחבר ל-Moonraker"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "עָרוּץ"
|
||||
msgstr "ערוץ"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr ""
|
||||
msgstr "בדוק את החיווט של ה ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "בודק עדכונים, אנא המתן"
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
msgstr "נקה"
|
||||
|
||||
msgid "Close"
|
||||
msgstr "סגור"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "לְהַשְׁלִים"
|
||||
msgstr "הסתיים"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "קונפיגורציה"
|
||||
@@ -160,32 +156,29 @@ msgid "Confirm Emergency Stop"
|
||||
msgstr "אשר עצירת חירום"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "מְחוּבָּר"
|
||||
msgstr "מחובר"
|
||||
|
||||
#, python-format
|
||||
msgid "Connecting to %s"
|
||||
msgstr "מתחבר ל- %s"
|
||||
|
||||
msgid "Console"
|
||||
msgstr "לְנַחֵם"
|
||||
msgstr "קונסול"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "לְהַמשִׁיך"
|
||||
msgstr "המשך"
|
||||
|
||||
msgid "Cooldown"
|
||||
msgstr "תירגע"
|
||||
msgstr "הפעל קירור"
|
||||
|
||||
msgid "Date"
|
||||
msgstr "תַאֲרִיך"
|
||||
msgstr "תאריך"
|
||||
|
||||
msgid "Decrease"
|
||||
msgstr "לְהַקְטִין"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "לִמְחוֹק"
|
||||
msgstr "הורד"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "מחק קובץ"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "בטל את הבחירה"
|
||||
@@ -207,16 +200,19 @@ msgid "Elapsed:"
|
||||
msgstr "זמן שעבר:"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "שְׁגִיאָה"
|
||||
msgstr "שגיאה"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "שיטת זמן משוערת"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr "ביטול אובייקט"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "אקסטרוזיה"
|
||||
msgstr "הוצא חומר"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "שיחול +"
|
||||
@@ -231,25 +227,25 @@ msgid "Fan"
|
||||
msgstr "מאוורר"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "נימה בשימוש"
|
||||
msgstr "חומר ששומש"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr ""
|
||||
msgstr "חומר כולל"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr ""
|
||||
msgstr "חומר ששומש:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr ""
|
||||
msgstr "חומר גלם"
|
||||
|
||||
msgid "File"
|
||||
msgstr "קוֹבֶץ"
|
||||
msgstr "קובץ"
|
||||
|
||||
msgid "File:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr ""
|
||||
msgstr "מחפש ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "כוונון עדין"
|
||||
@@ -258,44 +254,37 @@ msgid "Finish"
|
||||
msgstr "סיים"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr ""
|
||||
"קושחה\n"
|
||||
"איתחול"
|
||||
msgstr "אתחול קושחה"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr ""
|
||||
msgstr "זרם"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr ""
|
||||
msgstr "קצב זרימה"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "גודל טקסט"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr ""
|
||||
"מלא\n"
|
||||
"עדכון"
|
||||
msgstr "עדכון מלא"
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "חזרה"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr ""
|
||||
msgstr "גובה"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "מוּסתָר"
|
||||
msgstr "מוסתר"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "להתחבא"
|
||||
msgstr "הסתר"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "הסתר חיישנים בטמפ'."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "איפוס"
|
||||
msgstr "הסתר טמפרטורה"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "איפוס XYZ"
|
||||
@@ -316,32 +305,32 @@ msgid "Homing"
|
||||
msgstr "איפוס צירים"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
msgstr "שרת"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
msgstr "שם שרת"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "נושא אייקון"
|
||||
msgstr "ערכת נושא"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "הגדל"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "מאתחל"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "מאתחל מדפסת..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
msgstr "מעצב גימור"
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "מִמְשָׁק"
|
||||
msgstr "ממשק"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "לא חוקי"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "הפוך את X"
|
||||
|
||||
@@ -352,9 +341,7 @@ msgid "Invert Z"
|
||||
msgstr "הפוך את Z"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr ""
|
||||
"קליפר\n"
|
||||
"איתחול"
|
||||
msgstr "Klipper יאתחל מחדש"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "קליפר התנתק"
|
||||
@@ -363,22 +350,25 @@ msgid "Klipper has encountered an error."
|
||||
msgstr "קילפר נתקל בבעיה."
|
||||
|
||||
msgid "Klipper has shutdown"
|
||||
msgstr "קליפר נכבה"
|
||||
msgstr "קליפר כבה"
|
||||
|
||||
msgid "Klipper is attempting to start"
|
||||
msgstr "קליפר מנסה לרוץ"
|
||||
msgstr "קליפר מנסה לעלות"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "קליפר יבצע אתחול"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen יאתחל מחדש"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "שפה"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "גָדוֹל"
|
||||
msgstr "גדול"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr ""
|
||||
msgstr "שכבה"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "זמן שנותר:"
|
||||
@@ -387,14 +377,11 @@ msgid "Limits"
|
||||
msgstr "גבולות"
|
||||
|
||||
msgid "Load"
|
||||
msgstr "לִטעוֹן"
|
||||
msgstr "טעינה"
|
||||
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "הנמך דיזה"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "קיצור מקרו בסרגל הצד"
|
||||
|
||||
@@ -405,10 +392,10 @@ msgid "Main Menu"
|
||||
msgstr "תפריט ראשי"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "מקסימום"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr ""
|
||||
msgstr "מקסימום תאוצה"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "האצה מרבית להאטה"
|
||||
@@ -416,20 +403,26 @@ msgstr "האצה מרבית להאטה"
|
||||
msgid "Max Velocity"
|
||||
msgstr "מהירות מרבית"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "מדוד את שניהם"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr ""
|
||||
msgstr "מדוד X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr ""
|
||||
msgstr "מדוד Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "ממוצע"
|
||||
msgstr "בינוני"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "תַפרִיט"
|
||||
msgstr "תפריט"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "שונה"
|
||||
@@ -444,25 +437,25 @@ msgid "Move Distance (mm)"
|
||||
msgstr "מרחק הזזה (מ''מ)"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "שֵׁם"
|
||||
msgstr "שם"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "רשת"
|
||||
|
||||
msgid "New"
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr "חדש"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
msgstr "איתור אוטומטי אינו נתמך, זה צריך להיות מוגדר ב klipperscreen"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "שום דבר לא נבחר"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "כבוי"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "מיושן על ידי %d"
|
||||
@@ -478,7 +471,7 @@ msgstr[2] "חבילות יעודכנו"
|
||||
msgstr[3] "חבילות יעודכנו"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
msgstr "מאוורר חומר"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "הסיסמה נשמרה"
|
||||
@@ -493,10 +486,10 @@ msgid "Perform a full upgrade?"
|
||||
msgstr "לבצע שדרוג מלא?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
msgstr "פינים"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "אנא הידור מחדש והבזק את המיקרו-בקר."
|
||||
msgstr "אנא הדר (קמפל) מחדש ובצע פלאש למיקרו-בקר."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "הפעלה"
|
||||
@@ -505,10 +498,10 @@ msgid "Power On Printer"
|
||||
msgstr "הפעל מדפסת"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
msgstr "פרשר אדוונס"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "הדפס"
|
||||
msgstr "הדפסה"
|
||||
|
||||
msgid "Print Control"
|
||||
msgstr "שליטה בהדפסה"
|
||||
@@ -516,35 +509,47 @@ msgstr "שליטה בהדפסה"
|
||||
msgid "Print Time"
|
||||
msgstr "זמן הדפסה"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "מדפסת"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "חיבורי מדפסת"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "מדפיס"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr ""
|
||||
msgstr "פרוב אוף-סט"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "שם פרופיל:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "רמת מרפסת גנטרי"
|
||||
msgstr "יישור הגנטרי הריבועי"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "הגבה"
|
||||
msgstr "הגבה דיזה"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "שחזור"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "לְהַחלִים Hard"
|
||||
msgstr "שחזור מלא"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "לְהַחלִים Soft"
|
||||
msgstr "שחזור עדין"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "התייחסות"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
msgstr "רענון"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "אתחל"
|
||||
@@ -556,39 +561,38 @@ msgid "Retract"
|
||||
msgstr "שיחול לאחור"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr ""
|
||||
msgstr "משיכה"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr ""
|
||||
msgstr "מרחק משיכה"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
msgstr "מהירות משיכה"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "נסה שוב #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "מנסה שוב"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "להציל"
|
||||
msgstr "לשמור"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "שמור קונפיג"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr ""
|
||||
msgstr "שמור Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr ""
|
||||
msgstr "שמור קונפיגרציה?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr ""
|
||||
msgstr "נשמר"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr ""
|
||||
msgstr "שמור אופ-סט %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "DPMS מסך"
|
||||
@@ -603,7 +607,7 @@ msgid "Select"
|
||||
msgstr "בחר"
|
||||
|
||||
msgid "Send"
|
||||
msgstr "לִשְׁלוֹחַ"
|
||||
msgstr "שליחה"
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
@@ -616,13 +620,19 @@ msgid "Settings"
|
||||
msgstr "הגדרות"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "הופעה"
|
||||
msgstr "הצג"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "הצג זרם מיטה"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "כיבוי"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "גודל"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "Slicer"
|
||||
msgstr "סלייסר"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "תיקון זמן פריסה (%)"
|
||||
@@ -631,13 +641,7 @@ msgid "Slicer:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Small"
|
||||
msgstr "קָטָן"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "מיין לפי: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
msgstr "קטן"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "מהירות (מ\"מ/שניות)"
|
||||
@@ -649,13 +653,13 @@ msgid "Speed -"
|
||||
msgstr "מהירות -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
msgstr "מהירות"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "מהירות פינה מרובעת"
|
||||
|
||||
msgid "Start"
|
||||
msgstr "הַתחָלָה"
|
||||
msgstr "התחל"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "מתחיל איגוד WiFi"
|
||||
@@ -670,14 +674,10 @@ msgid "System"
|
||||
msgstr "מערכת"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr ""
|
||||
"מערכת\n"
|
||||
"אתחול"
|
||||
msgstr "אתחול מערכת"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr ""
|
||||
"מערכת\n"
|
||||
"לכבות"
|
||||
msgstr "כיבוי מערכת"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "טמפ' (°C)"
|
||||
@@ -685,10 +685,6 @@ msgstr "טמפ' (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "טמפרטורה"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "כדי ליישם %s צריך להפעיל מחדש את KlipperScreen"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "סך הכל:"
|
||||
|
||||
@@ -696,10 +692,10 @@ msgid "Unknown Heater"
|
||||
msgstr "מחמם לא ידוע"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "מיקום בורג לא ידוע"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "לִפְרוֹק"
|
||||
msgstr "העלה"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
@@ -714,31 +710,16 @@ msgid "Update"
|
||||
msgstr "עדכון"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "עִדכּוּן"
|
||||
msgstr "מעדכן"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "הועלה"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "צפה ברשת"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "מהירות תנועה XY (מ\"מ/שנייה)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
msgstr "מהירות XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "כיול Z"
|
||||
@@ -747,19 +728,13 @@ msgid "Z Move Speed (mm/s)"
|
||||
msgstr "מהירות תנועה Z (מ\"מ/שניות)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr ""
|
||||
msgstr "מהירות Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "הטיה Z"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
msgstr "Z אוף-סט"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
@@ -790,6 +765,67 @@ msgstr "מ\"מ/ש"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "מיין"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "מכייל..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "נסה שוב #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "הוסף מדפסת"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "מאתחל"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "מחק"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "איפוס"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "כבוי"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "צפה ברשת"
|
||||
|
||||
#~ msgid "Machine"
|
||||
#~ msgstr "מכונה"
|
||||
|
||||
#~ msgid "Manual Calibration"
|
||||
#~ msgstr "כיול ידני"
|
||||
|
||||
#~ msgid "Auto Calibration"
|
||||
#~ msgstr "כיול אוטומטי"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "מיין לפי: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch נמצא היסט מוחל"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+116
-75
@@ -2,16 +2,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-09-11 11:38-0300\n"
|
||||
"POT-Creation-Date: 2022-12-13 20:39-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: AntoszHUN\n"
|
||||
"Language-Team: \n"
|
||||
"Language: hu_HU\n"
|
||||
"Language: hu\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -41,9 +41,6 @@ msgstr "Elfogad"
|
||||
msgid "Actions"
|
||||
msgstr "Műveletek"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Nyomtató hozzáadása"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Profil hozzáadása"
|
||||
|
||||
@@ -52,26 +49,29 @@ msgstr "Alkalmaz"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr "Alkalmaz %.2f eltolást az Endstopra?"
|
||||
msgstr "Alkalmazod %.2f eltolást az Endstopra?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Alkalmaz %s%.2f eltolást a szondára?"
|
||||
msgstr "Alkalmazod %s%.2f eltolást a szondára?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Biztosan kizárod az objektumot?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Biztosan Vészleállítást végez?"
|
||||
msgstr "Biztosan Vészleállítást szeretnél?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "Biztosan megszakítja ezt a nyomtatást?"
|
||||
msgstr "Biztosan megszakítod ezt a nyomtatást?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "Biztos benne, hogy le szeretné tiltani a motorokat?"
|
||||
msgstr "Biztosan le szeretnéd tiltani a motorokat?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "Biztos benne, hogy újra akarja indítani a rendszert?"
|
||||
msgstr "Biztos, hogy újra akarod indítani a rendszert?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "Biztos, hogy le szeretné állítani a rendszert?"
|
||||
msgstr "Biztos, hogy le szeretnéd állítani a rendszert?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "Auto"
|
||||
@@ -101,14 +101,11 @@ msgid "Calibrated"
|
||||
msgstr "Kalibrálva"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Kalibrálva! Mentse el a konfigurációt, hogy az állandó legyen"
|
||||
msgstr "Kalibrálva! Mentsd el a konfigurációt, hogy az állandó legyen"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr "Kalibrálás"
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Kalibrálás..."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Nem állítható a maximum fölé:"
|
||||
|
||||
@@ -131,10 +128,10 @@ msgid "Channel"
|
||||
msgstr "Csatorna"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr "Ellenőrizze az ADXL kábelezést"
|
||||
msgstr "Ellenőrizd az ADXL kábelezést"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr "Frissítések keresése, kérjük, várjon..."
|
||||
msgstr "Frissítések keresése, kérjük, várj..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Tiszta"
|
||||
@@ -149,7 +146,7 @@ msgid "Configuration"
|
||||
msgstr "Konfiguráció"
|
||||
|
||||
msgid "Confirm Emergency Stop"
|
||||
msgstr "Erősítse meg a vészleállítást"
|
||||
msgstr "Vészleállítás megerősítése"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "Csatlakoztatva"
|
||||
@@ -173,9 +170,6 @@ msgstr "Dátum"
|
||||
msgid "Decrease"
|
||||
msgstr "Csökkent"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Töröl"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Fájl törlése?"
|
||||
|
||||
@@ -193,7 +187,7 @@ msgstr "Távolság (mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "Vissza akarja állítani %s-t?"
|
||||
msgstr "Vissza akarod állítani %s-t?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "Eltelt:"
|
||||
@@ -207,6 +201,9 @@ msgstr "Becsült idő módszer"
|
||||
msgid "Exclude Object"
|
||||
msgstr "Objektum kizárása"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra nagy"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Száladagolás"
|
||||
|
||||
@@ -277,14 +274,11 @@ msgid "Hide"
|
||||
msgstr "Elrejt"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "Szenzorok elrejtése Hőfok."
|
||||
msgstr "Hőfok szenzorok elrejtése."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr "Hőfok elrejtése"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Kezdőpontok"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "X-Y-Z kezdőpont"
|
||||
|
||||
@@ -304,7 +298,7 @@ msgid "Homing"
|
||||
msgstr "Kezdőpont"
|
||||
|
||||
msgid "Host"
|
||||
msgstr "Gazda"
|
||||
msgstr "Gazdagép"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Gazdanév"
|
||||
@@ -315,9 +309,6 @@ msgstr "Ikon téma"
|
||||
msgid "Increase"
|
||||
msgstr "Növel"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Inicializálás"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Nyomtató inicializálása..."
|
||||
|
||||
@@ -330,6 +321,9 @@ msgstr "Felület"
|
||||
msgid "Invalid"
|
||||
msgstr "Érvénytelen"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Érvénytelen jelszó"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Fordított X"
|
||||
|
||||
@@ -357,6 +351,9 @@ msgstr "Klipper megpróbálja elindítani"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "A Klipper újraindul"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "A KlipperScreen újraindul"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Nyelv"
|
||||
|
||||
@@ -378,9 +375,6 @@ msgstr "Betöltés"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Fúvóka le"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr "Gép"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Makró parancsikon az oldalsávon"
|
||||
|
||||
@@ -402,6 +396,9 @@ msgstr "Lassulás max gyorsulása"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Max sebesség"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maximum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Mindkettő mérése"
|
||||
|
||||
@@ -417,6 +414,9 @@ msgstr "Közepes"
|
||||
msgid "Menu"
|
||||
msgstr "Menü"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Háló kalibrálása"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Módosított"
|
||||
|
||||
@@ -435,6 +435,9 @@ msgstr "Név"
|
||||
msgid "Network"
|
||||
msgstr "Hálózat"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Soha"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Új"
|
||||
|
||||
@@ -448,9 +451,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nincs kiválasztva"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Ki"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "%d által elavult"
|
||||
@@ -476,13 +476,13 @@ msgid "Paused"
|
||||
msgstr "Szüneteltetve"
|
||||
|
||||
msgid "Perform a full upgrade?"
|
||||
msgstr "Teljes frissítést hajt végre?"
|
||||
msgstr "Teljes frissítést hajtasz végre?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr "Kimenetek"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Fordítsa újra és frissítse a mikrovezérlőt."
|
||||
msgstr "Fordítsd újra és frissítsd a mikrovezérlőt."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "Bekapcsolás"
|
||||
@@ -502,9 +502,15 @@ msgstr "Nyomtatásvezérlés"
|
||||
msgid "Print Time"
|
||||
msgstr "Nyomtatási idő"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Nyomtató"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Nyomtató csatlakozások"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Nyomtató kiválasztása"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Nyomtatás"
|
||||
|
||||
@@ -514,12 +520,18 @@ msgstr "Szonda eltolás"
|
||||
msgid "Profile Name:"
|
||||
msgstr "Profil név:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Add meg a KlipperScreen.log-ot, amikor segítséget kérsz.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Négy állású szint"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Fúvóka fel"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Visszaállítása"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Hárdver visszaállítása"
|
||||
|
||||
@@ -550,9 +562,8 @@ msgstr "Visszahúzási hossz"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Visszahúzási sebesség"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Újra #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Újra"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Újrapróbálkozás"
|
||||
@@ -567,7 +578,7 @@ msgid "Save Z"
|
||||
msgstr "Z mentése"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Menti a konfigurációt?"
|
||||
msgstr "Mented a konfigurációt?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Mentve"
|
||||
@@ -604,6 +615,12 @@ msgstr "Beállítások"
|
||||
msgid "Show"
|
||||
msgstr "Mutat"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "A fűtésteljesítmény megjelenítése"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Leállítás"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Méret"
|
||||
|
||||
@@ -619,12 +636,6 @@ msgstr "Szeletelő:"
|
||||
msgid "Small"
|
||||
msgstr "Kicsi"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sorrend: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Fajta:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Sebesség (mm/s)"
|
||||
|
||||
@@ -667,10 +678,6 @@ msgstr "Hőmérséklet (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Hőfok"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "A %s KlipperScreen alkalmazásához újra kell indítani"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Teljes:"
|
||||
|
||||
@@ -701,27 +708,12 @@ msgstr "Frissítés"
|
||||
msgid "Uploaded"
|
||||
msgstr "Feltöltve"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Háló nézet"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY Mozgási seb. (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY Sebesség (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z Kalibrálás"
|
||||
|
||||
@@ -737,12 +729,6 @@ msgstr "Z Dőlés"
|
||||
msgid "Z offset:"
|
||||
msgstr "Z eltolás:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "ajánlás"
|
||||
@@ -768,6 +754,61 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Fajta:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Kalibrálás..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Újra #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Nyomtató hozzáadása"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Inicializálás"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Töröl"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Kezdőpontok"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Ki"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Háló nézet"
|
||||
|
||||
#~ msgid "Machine"
|
||||
#~ msgstr "Gép"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sorrend: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "A Bltouch alkalmazott eltolást talált"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: pappicio\n"
|
||||
"Language-Team: \n"
|
||||
@@ -11,7 +11,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -27,13 +27,13 @@ msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "Un FIRMWARE_RESTART potrebbe risolvere il problema."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr ""
|
||||
msgstr "ADXL non configurato"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Annulla"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr ""
|
||||
msgstr "Accelerazione:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "Accetta"
|
||||
@@ -41,22 +41,22 @@ msgstr "Accetta"
|
||||
msgid "Actions"
|
||||
msgstr "Azioni"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Aggiungi Stampante"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "Aggiungi profilo"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
msgstr "Applicare"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr ""
|
||||
msgstr "Applicare l'offset %.2f a Endstop?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
msgstr "Applicare l'offset %s%.2f a Probe?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Sei sicuro di voler escludere l'oggetto?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Sei sicuro di voler eseguire l'arresto di emergenza?"
|
||||
@@ -77,10 +77,10 @@ msgid "Auto"
|
||||
msgstr "Auto"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr ""
|
||||
msgstr "Calibrazione automatica"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "Chiudi automaticamente le notifiche"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto-scroll"
|
||||
@@ -92,22 +92,19 @@ msgid "Bed Mesh"
|
||||
msgstr "Rete letto"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "Configurazione della vite del letto:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Calibra"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr ""
|
||||
msgstr "Calibrato"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Calibrato, salva la configurazione per renderla permanente"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
msgstr "Calibratura"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Impossibile impostare al di sopra del massimo:"
|
||||
@@ -131,10 +128,10 @@ msgid "Channel"
|
||||
msgstr "Canale"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr ""
|
||||
msgstr "Controllare il cablaggio ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "Controllo degli aggiornamenti in corso, attendere..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
@@ -173,11 +170,8 @@ msgstr "Data"
|
||||
msgid "Decrease"
|
||||
msgstr "Diminuisci"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Elimina"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "Cancella il file?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Deseleziona"
|
||||
@@ -205,7 +199,10 @@ msgid "Estimated Time Method"
|
||||
msgstr "Metodo Tempo stimato"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
msgstr "Escludi oggetto"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra grande"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Estrudi"
|
||||
@@ -226,22 +223,22 @@ msgid "Filament Used"
|
||||
msgstr "Filamento Usato"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr ""
|
||||
msgstr "Filamento totale:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr ""
|
||||
msgstr "Filamento utilizzato:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr ""
|
||||
msgstr "Filamento:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "File"
|
||||
|
||||
msgid "File:"
|
||||
msgstr ""
|
||||
msgstr "File:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr ""
|
||||
msgstr "Alla ricerca di ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Messa a Punto"
|
||||
@@ -253,10 +250,10 @@ msgid "Firmware Restart"
|
||||
msgstr "Firmware Riavvio"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr ""
|
||||
msgstr "Fluire:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr ""
|
||||
msgstr "Portata:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Dimensione del testo"
|
||||
@@ -268,7 +265,7 @@ msgid "Go Back"
|
||||
msgstr "Indietro"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr ""
|
||||
msgstr "Altezza:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Nascosto"
|
||||
@@ -280,10 +277,7 @@ msgid "Hide sensors in Temp."
|
||||
msgstr "Nascondi sensori in Temp."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Inizio"
|
||||
msgstr "Nascondi temp."
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Home XYZ"
|
||||
@@ -315,9 +309,6 @@ msgstr "Tema Icone"
|
||||
msgid "Increase"
|
||||
msgstr "Incrementa"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Inizializzo"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Inizializzo stampante..."
|
||||
|
||||
@@ -330,6 +321,9 @@ msgstr "Interfaccia"
|
||||
msgid "Invalid"
|
||||
msgstr "Non valido"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Inverti X"
|
||||
|
||||
@@ -357,6 +351,9 @@ msgstr "Klipper si sta avviando"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper sarà riavviato"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen sarà riavviato"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Lingua"
|
||||
|
||||
@@ -364,7 +361,7 @@ msgid "Large"
|
||||
msgstr "Grande"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr ""
|
||||
msgstr "Strato:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Restante:"
|
||||
@@ -378,9 +375,6 @@ msgstr "Carica"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Abbassa ugello"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Macros sulla barra laterale"
|
||||
|
||||
@@ -391,10 +385,10 @@ msgid "Main Menu"
|
||||
msgstr "Menu Principale"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "Max"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr ""
|
||||
msgstr "Accelerazione Massima"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Da acceleraz. Massima a Deceleraz. Massima"
|
||||
@@ -402,14 +396,17 @@ msgstr "Da acceleraz. Massima a Deceleraz. Massima"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Velocità Massima"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Massimo"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
msgstr "Misura entrambi"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr ""
|
||||
msgstr "Misura X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr ""
|
||||
msgstr "Misura Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Medio"
|
||||
@@ -417,6 +414,9 @@ msgstr "Medio"
|
||||
msgid "Menu"
|
||||
msgstr "Menù"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Calibrare la maglia"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Modificato"
|
||||
|
||||
@@ -435,20 +435,22 @@ msgstr "Nome"
|
||||
msgid "Network"
|
||||
msgstr "Rete"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Mai"
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
msgstr "Nuovo"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Non supportato per il rilevamento automatico, deve essere configurato in "
|
||||
"klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Niente selezionato"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Off"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Obsoleto di %d"
|
||||
@@ -462,7 +464,7 @@ msgstr[0] "Pacchetto verrà aggiornato"
|
||||
msgstr[1] "I pacchetti verranno aggiornati"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
msgstr "Parte Fan"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Password salvata"
|
||||
@@ -477,7 +479,7 @@ msgid "Perform a full upgrade?"
|
||||
msgstr "Eseguire un aggiornamento completo?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
msgstr "Perni"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Si prega di ricompilare e flashare il microcontrollore."
|
||||
@@ -489,7 +491,7 @@ msgid "Power On Printer"
|
||||
msgstr "Accendi Stampante"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
msgstr "Anticipo di pressione:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Stampa"
|
||||
@@ -500,24 +502,36 @@ msgstr "Controllo Stampa"
|
||||
msgid "Print Time"
|
||||
msgstr "Tempo di Stampa"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Stampante"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Connessioni Stampante"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Stampante Seleziona"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "In Stampa"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr ""
|
||||
msgstr "Scostamento della sonda"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Nome Profilo:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Quad Gantry Level"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Alza Ugello"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Recuperare"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Recuperare Hard"
|
||||
|
||||
@@ -528,7 +542,7 @@ msgid "Reference"
|
||||
msgstr "Riferimento"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
msgstr "Ricaricare"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Riavvia"
|
||||
@@ -540,20 +554,19 @@ msgid "Retract"
|
||||
msgstr "Ritrai"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr ""
|
||||
msgstr "Retrazione"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr ""
|
||||
msgstr "Lunghezza di retrazione"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
msgstr "Velocità di ritrazione"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Riprova #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Riprova"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "Nuovo tentativo"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Salva"
|
||||
@@ -562,17 +575,17 @@ msgid "Save Config"
|
||||
msgstr "Salva Config"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr ""
|
||||
msgstr "Salvo Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr ""
|
||||
msgstr "Salva configurazione?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr ""
|
||||
msgstr "Salvato"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr ""
|
||||
msgstr "Offset salvato: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Schermo DPMS"
|
||||
@@ -602,6 +615,12 @@ msgstr "Impostazioni"
|
||||
msgid "Show"
|
||||
msgstr "Mostrare"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Mostra la potenza del riscaldatore"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Spegnimento"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Grandezza"
|
||||
|
||||
@@ -612,17 +631,11 @@ msgid "Slicer Time correction (%)"
|
||||
msgstr "Affettatrice Correzione del tempo (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr ""
|
||||
msgstr "Slicer:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Piccola"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Ordine: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Velocità (mm/s)"
|
||||
|
||||
@@ -633,7 +646,7 @@ msgid "Speed -"
|
||||
msgstr "Velocità-"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
msgstr "Velocità:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "Velocità Square Corner"
|
||||
@@ -665,10 +678,6 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Riavvia KlipperScreen per applicare %s"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Totale:"
|
||||
|
||||
@@ -676,16 +685,16 @@ msgid "Unknown Heater"
|
||||
msgstr "Riscaldatore sconosciuto"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "Posizione della vite sconosciuta"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Scaricare"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
msgstr "Lunghezza extra non retratta"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
msgstr "Velocità di ritiro"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Aggiornato"
|
||||
@@ -699,26 +708,11 @@ msgstr "In aggiornamento"
|
||||
msgid "Uploaded"
|
||||
msgstr "Caricato"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Visual. Mesh"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Velocità di spostamento XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
msgstr "Velocità XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Calibra Z"
|
||||
@@ -727,19 +721,13 @@ msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Velocità di spostamento Z (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr ""
|
||||
msgstr "Velocità Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Z Tilt"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
msgstr "Spostamento Z:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
@@ -766,6 +754,58 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Ordinare:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Calibratura..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Riprova #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Aggiungi Stampante"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Inizializzo"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Elimina"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Inizio"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Off"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Visual. Mesh"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Ordine: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch ha trovato l'offset applicato"
|
||||
|
||||
@@ -794,9 +834,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Riscaldatore sconosciuto "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Sconnetti"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,756 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: boyon\n"
|
||||
"Language-Team: \n"
|
||||
"Language: ja\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
msgstr "%s を最新にアップデートします"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr "(デフォルト)"
|
||||
|
||||
msgid "24 Hour Time"
|
||||
msgstr "24時間表記"
|
||||
|
||||
msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "ファームウェアの更新を行うと不具合が解決する場合があります"
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr "ADXL が構成されていません"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "中止する"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr "加速度:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "承諾する"
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "操作"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "プロファイルの追加"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "適用する"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr "エンドストップにオフセットに %.2f を適用しますか?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "プローブオフセットに %s%.2f を適用しますか?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "対象を除外しますか?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "緊急停止しますか?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "印刷を中断しますか?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "モーターの制御を無効にしますか?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "システムを再起動しますか?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "システムをシャットダウンしますか?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "自動"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr "自動校正"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr "自動終了通知"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "自動スクロール"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "ベッドレベル"
|
||||
|
||||
msgid "Bed Mesh"
|
||||
msgstr "ベッドメッシュ"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr "ベッドスクリュー設定:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "校正"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr "構成済み"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "校正完了しました。次回起動時以降も適用するには設定を保存してください"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr "校正中"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "上限値を超えて設定できません:"
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "キャンセル"
|
||||
|
||||
msgid "Cancel Print"
|
||||
msgstr "印刷をキャンセルする"
|
||||
|
||||
msgid "Cancelled"
|
||||
msgstr "キャンセル済"
|
||||
|
||||
msgid "Cancelling"
|
||||
msgstr "キャンセル中"
|
||||
|
||||
msgid "Cannot connect to Moonraker"
|
||||
msgstr "Moonrakerに接続できません"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "チャンネル"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr "ADXL Wiring を検査する"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "クリア"
|
||||
|
||||
msgid "Close"
|
||||
msgstr "終了"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "完了"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "設定"
|
||||
|
||||
msgid "Confirm Emergency Stop"
|
||||
msgstr "緊急停止時に確認する"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "接続済み"
|
||||
|
||||
#, python-format
|
||||
msgid "Connecting to %s"
|
||||
msgstr "%s へ接続中・・・"
|
||||
|
||||
msgid "Console"
|
||||
msgstr "コンソール"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "継続"
|
||||
|
||||
msgid "Cooldown"
|
||||
msgstr "クールダウン"
|
||||
|
||||
msgid "Date"
|
||||
msgstr "日付"
|
||||
|
||||
msgid "Decrease"
|
||||
msgstr "減少"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "ファイルを削除しますか?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "選択解除"
|
||||
|
||||
msgid "Disable Motors"
|
||||
msgstr "モーターの無効化"
|
||||
|
||||
msgid "Disable XY"
|
||||
msgstr "XY軸制御の無効化"
|
||||
|
||||
msgid "Distance (mm)"
|
||||
msgstr "距離(mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "元に戻しますか %s ?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "経過時間:"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "エラー"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "予定時刻"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr "対象の除外"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "特大"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "吐出"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "吐出+"
|
||||
|
||||
msgid "Extrusion -"
|
||||
msgstr "吐出-"
|
||||
|
||||
msgid "Failed, adjust position first"
|
||||
msgstr "失敗時は最初に位置を調整する"
|
||||
|
||||
msgid "Fan"
|
||||
msgstr "ファン"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "使用済フィラメント"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr "フィラメント 総量:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr "フィラメント 使用済:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr "フィラメント:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "ファイル"
|
||||
|
||||
msgid "File:"
|
||||
msgstr "ファイル:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr "ADXLを検索中"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Fine Tuning"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "完了"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "ファームウェアの再起動"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr "流量:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr "フローレート:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "フォントサイズ"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "フルアップデート"
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "戻る"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr "高さ:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "非表示"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "隠す"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "温度を非表示にする"
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr "温度を非表示にする"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr ""
|
||||
|
||||
msgid "Home X"
|
||||
msgstr "Home X"
|
||||
|
||||
msgid "Home XY"
|
||||
msgstr "Home XY"
|
||||
|
||||
msgid "Home Y"
|
||||
msgstr "Home Y"
|
||||
|
||||
msgid "Home Z"
|
||||
msgstr "Home Z"
|
||||
|
||||
msgid "Homing"
|
||||
msgstr "Homing"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "アイコンテーマ"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "増加"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "インターフェース"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "不正"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "X軸を反対にする"
|
||||
|
||||
msgid "Invert Y"
|
||||
msgstr "Y軸を反対にする"
|
||||
|
||||
msgid "Invert Z"
|
||||
msgstr "X軸を反対にする"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Klipperを再起動する"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipperの接続が切れました"
|
||||
|
||||
msgid "Klipper has encountered an error."
|
||||
msgstr "Klipperのエラーが発生しました"
|
||||
|
||||
msgid "Klipper has shutdown"
|
||||
msgstr "Klipperはシャットダウンしました"
|
||||
|
||||
msgid "Klipper is attempting to start"
|
||||
msgstr "Klipperは起動中です"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipperは再起動します"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreenは再起動します"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "言語"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "大"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr "レイヤー:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "左:"
|
||||
|
||||
msgid "Limits"
|
||||
msgstr "制限"
|
||||
|
||||
msgid "Load"
|
||||
msgstr ""
|
||||
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "ノズルが低い"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "サイドバーのマクロショートカット"
|
||||
|
||||
msgid "Macros"
|
||||
msgstr "マクロ"
|
||||
|
||||
msgid "Main Menu"
|
||||
msgstr "メインメニュー"
|
||||
|
||||
msgid "Max"
|
||||
msgstr "最大"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "最大加速度"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "減速時の最大加速度"
|
||||
|
||||
msgid "Max Velocity"
|
||||
msgstr "最大速度"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "最大"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "両方計測する"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr "X軸を計測する"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr "Y軸を計測する"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "中"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "メニュー"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "メッシュ較正"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "変更"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Moonraker: 接続済"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "移動"
|
||||
|
||||
msgid "Move Distance (mm)"
|
||||
msgstr "移動距離"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "名称"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "ネットワーク"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "未"
|
||||
|
||||
msgid "New"
|
||||
msgstr "新"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "未選択"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr ""
|
||||
|
||||
msgid "PSK for"
|
||||
msgstr ""
|
||||
|
||||
msgid "Package will be updated"
|
||||
msgid_plural "Packages will be updated"
|
||||
msgstr[0] ""
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "パスワードを保存しました"
|
||||
|
||||
msgid "Pause"
|
||||
msgstr "一時停止"
|
||||
|
||||
msgid "Paused"
|
||||
msgstr "一時停止中"
|
||||
|
||||
msgid "Perform a full upgrade?"
|
||||
msgstr "フルアップデートしますか?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr "Pins"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "マイクロコントローラーをリコンパイル&フラッシュしてください"
|
||||
|
||||
msgid "Power"
|
||||
msgstr "電源"
|
||||
|
||||
msgid "Power On Printer"
|
||||
msgstr "プリンター電源"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Print"
|
||||
msgstr "印刷"
|
||||
|
||||
msgid "Print Control"
|
||||
msgstr "印刷制御"
|
||||
|
||||
msgid "Print Time"
|
||||
msgstr "印刷時間"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "プリンター"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "プリンター接続状態"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "プリンターの選択"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "印刷中"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr "プローブオフセット"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "プロファイル:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "ガントリーレベル"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr ""
|
||||
|
||||
msgid "Reference"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "最新表示"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "再起動"
|
||||
|
||||
msgid "Resume"
|
||||
msgstr "再開"
|
||||
|
||||
msgid "Retract"
|
||||
msgstr "リトラクトする"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr "リトラクション"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr "リトラクション長さ"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr "リトラクションスピード"
|
||||
|
||||
msgid "Retry"
|
||||
msgstr "再試行"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "再試行中"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "保存"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "設定の保存"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Z軸の保存"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "設定を保存しますか?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "保存しました"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr "保存しました offset: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr ""
|
||||
|
||||
msgid "Screen Power Off Time"
|
||||
msgstr ""
|
||||
|
||||
msgid "Screws Adjust"
|
||||
msgstr ""
|
||||
|
||||
msgid "Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Send"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "温度設定"
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "設定"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "表示"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "シャットダウン"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "サイズ"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "スライサー"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "スライサーの補正時間(%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr "スライサー:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "小"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed +"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed -"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "四隅の速度"
|
||||
|
||||
msgid "Start"
|
||||
msgstr "開始"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "Wifi接続開始中"
|
||||
|
||||
msgid "Starting recovery for"
|
||||
msgstr "回復中"
|
||||
|
||||
msgid "Starting update for"
|
||||
msgstr "更新中"
|
||||
|
||||
msgid "System"
|
||||
msgstr "システム"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr "システムの再起動"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr "システムのシャットダウン"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "温度 (°C)"
|
||||
|
||||
msgid "Temperature"
|
||||
msgstr "温度"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "全体:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "無効なヒーター"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr "無効なのスクリュー位置"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "アンロード"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "最新"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "更新"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "更新中"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "アップロード済"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY移動速度 (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY速度 (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z軸 校正"
|
||||
|
||||
msgid "Z Move Speed (mm/s)"
|
||||
msgstr "X軸 移動速度 (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
|
||||
msgid "dBm"
|
||||
msgstr ""
|
||||
|
||||
msgid "hour"
|
||||
msgid_plural "hours"
|
||||
msgstr[0] ""
|
||||
|
||||
msgid "minutes"
|
||||
msgstr "分"
|
||||
|
||||
msgid "mm"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm/s"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "ソート順:"
|
||||
Binary file not shown.
+97
-59
@@ -2,16 +2,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: NSteven\n"
|
||||
"Language-Team: NSteven\n"
|
||||
"Language: ko_KR\n"
|
||||
"Language: ko\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 3.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -41,9 +41,6 @@ msgstr "확인"
|
||||
msgid "Actions"
|
||||
msgstr "툴 헤드 제어"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "프린터 추가"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -58,6 +55,9 @@ msgstr "엔드스탑 높이 기준을 %.2f 높이의 옵셋으로 설정 하시
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "프로브 높이 기준을 %s%.2f 높이의 옵셋으로 설정 하시겠습니까?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "비상정지 시킬까요?"
|
||||
|
||||
@@ -106,9 +106,6 @@ msgstr "교정됨, 설정을 저장합니다"
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "교정 중.."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "최대 값을 초과하는 설정은 할 수 없습니다:"
|
||||
|
||||
@@ -173,9 +170,6 @@ msgstr "날짜"
|
||||
msgid "Decrease"
|
||||
msgstr "낮추기"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "삭제"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -207,6 +201,9 @@ msgstr "예상시간 옵션"
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "압출 "
|
||||
|
||||
@@ -282,9 +279,6 @@ msgstr "온도 섹션에서 센서 항목 숨김."
|
||||
msgid "Hide temp."
|
||||
msgstr "온도 숨김"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "홈"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "전체 홈"
|
||||
|
||||
@@ -315,9 +309,6 @@ msgstr "아이콘 테마"
|
||||
msgid "Increase"
|
||||
msgstr "높이기"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "초기화 중.."
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "프린터 초기화 중.."
|
||||
|
||||
@@ -330,6 +321,9 @@ msgstr "인터페이스"
|
||||
msgid "Invalid"
|
||||
msgstr "존재하지 않음"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "X축 반전"
|
||||
|
||||
@@ -355,7 +349,10 @@ msgid "Klipper is attempting to start"
|
||||
msgstr "클리퍼 시작하는 중"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "클리퍼를 다시 시작합니다"
|
||||
msgstr "Klipper가 재부팅됩니다"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen가 재부팅됩니다"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "언어"
|
||||
@@ -378,9 +375,6 @@ msgstr "필라 넣기"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "노즐 낮춤"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "사이드바에 매크로 아이콘 표시"
|
||||
|
||||
@@ -402,6 +396,9 @@ msgstr "감속을 위한 최대 가속"
|
||||
msgid "Max Velocity"
|
||||
msgstr "출력 속도"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "XY축 모두 측정"
|
||||
|
||||
@@ -417,6 +414,9 @@ msgstr "중간"
|
||||
msgid "Menu"
|
||||
msgstr "메뉴"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "수정됨"
|
||||
|
||||
@@ -435,6 +435,9 @@ msgstr "이름"
|
||||
msgid "Network"
|
||||
msgstr "네트워크"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr "신규"
|
||||
|
||||
@@ -446,9 +449,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "아무것도 선택하지 않ㅇ"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "끄기"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "%d 보다 오래됨"
|
||||
@@ -499,9 +499,15 @@ msgstr "출력 제어"
|
||||
msgid "Print Time"
|
||||
msgstr "출력 시간"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "프린터 연결"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "출력중"
|
||||
|
||||
@@ -511,12 +517,18 @@ msgstr "프로브 오프셋"
|
||||
msgid "Profile Name:"
|
||||
msgstr "프로파일 이름:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "쿼드 갠트리 레벨"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "노즐 높임"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "강화 복구 모드"
|
||||
|
||||
@@ -547,9 +559,8 @@ msgstr "퇴추 길이"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "퇴출 속도"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "재시도 #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
@@ -601,6 +612,12 @@ msgstr "설정"
|
||||
msgid "Show"
|
||||
msgstr "보기"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr "크기"
|
||||
|
||||
@@ -616,12 +633,6 @@ msgstr "슬라이서:"
|
||||
msgid "Small"
|
||||
msgstr "작은"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "분류 기준: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "종류:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "속도 (mm/s)"
|
||||
|
||||
@@ -664,10 +675,6 @@ msgstr "온도 (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "온도 제어"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "%s을(를) 적용하려면 클리퍼 스크린을 다시 시작해야 합니다"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "총:"
|
||||
|
||||
@@ -698,27 +705,12 @@ msgstr "업데이트 중.."
|
||||
msgid "Uploaded"
|
||||
msgstr "업로드됨"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "메쉬 프로파일 보기"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY 이동 속도 (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY 속도 (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z 옵셋 교정"
|
||||
|
||||
@@ -734,12 +726,6 @@ msgstr "Z 기울기"
|
||||
msgid "Z offset:"
|
||||
msgstr "Z 옵셋:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "커밋"
|
||||
@@ -763,6 +749,58 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "종류:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "교정 중.."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "재시도 #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "프린터 추가"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "초기화 중.."
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "삭제"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "홈"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "끄기"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "메쉬 프로파일 보기"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "분류 기준: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch가 적용된 오프셋"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+143
-109
@@ -7,17 +7,17 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-03-31 11:06-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:14-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: pl_PL\n"
|
||||
"Language: pl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 "
|
||||
"|| n%100>14) ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -33,13 +33,13 @@ msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "FIRMWARE_RESTART może rozwiązać problem."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr ""
|
||||
msgstr "ADXL nieskonfigurowany"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Odwołaj"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr ""
|
||||
msgstr "Przyśpieszenie:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "Akceptuj"
|
||||
@@ -47,22 +47,22 @@ msgstr "Akceptuj"
|
||||
msgid "Actions"
|
||||
msgstr "Akcje"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Dodaj drukarkę"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "Dodaj profil"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
msgstr "Stosować"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr ""
|
||||
msgstr "Zastosować przesunięcie %.2f do Endstop?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
msgstr "Zastosować przesunięcie %s%.2f do sondy?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Czy na pewno chcesz wykluczyć obiekt?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Czy na pewno chcesz Awaryjnie Zatrzymać?"
|
||||
@@ -83,10 +83,10 @@ msgid "Auto"
|
||||
msgstr "Automatyczny"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr ""
|
||||
msgstr "Automatyczna kalibracja"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "Powiadomienia o automatycznym zamknięciu"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto-scroll"
|
||||
@@ -98,22 +98,19 @@ msgid "Bed Mesh"
|
||||
msgstr "Poziom siatki stołu"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "Konfiguracja śrub łóżka:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Kalibracja"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr ""
|
||||
msgstr "Skalibrowany"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Skalibrowano, zapisz konfigurację aby została na stałe"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
msgstr "Kalibracja"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Nie można ustawić powyżej maksymum:"
|
||||
@@ -137,10 +134,10 @@ msgid "Channel"
|
||||
msgstr "Kanał"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr ""
|
||||
msgstr "Sprawdź okablowanie ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "Trwa sprawdzanie dostępności aktualizacji, proszę czekać..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
@@ -179,11 +176,8 @@ msgstr "Data"
|
||||
msgid "Decrease"
|
||||
msgstr "Obniż"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Skasuj"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "Usunąć plik?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Odznacz"
|
||||
@@ -211,7 +205,10 @@ msgid "Estimated Time Method"
|
||||
msgstr "Sposób Oszacowania Czasu"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
msgstr "Wyklucz obiekt"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Bardzo duży"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extruduj"
|
||||
@@ -232,22 +229,22 @@ msgid "Filament Used"
|
||||
msgstr "Filament w Użytku"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr ""
|
||||
msgstr "Całkowita ilość filamentu:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr ""
|
||||
msgstr "Zastosowane włókno:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr ""
|
||||
msgstr "Włókno:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "Plik"
|
||||
|
||||
msgid "File:"
|
||||
msgstr ""
|
||||
msgstr "Plik:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr ""
|
||||
msgstr "Znalezienie ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Regulacja Precyzyjna"
|
||||
@@ -259,10 +256,10 @@ msgid "Firmware Restart"
|
||||
msgstr ""
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr ""
|
||||
msgstr "Pływ:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr ""
|
||||
msgstr "Pływ:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Rozmiar trzcionki"
|
||||
@@ -274,7 +271,7 @@ msgid "Go Back"
|
||||
msgstr "Powróć"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr ""
|
||||
msgstr "Wzrost:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Ukryty"
|
||||
@@ -286,10 +283,7 @@ msgid "Hide sensors in Temp."
|
||||
msgstr "Ukryj czujniki w Temp."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Baza"
|
||||
msgstr "Ukryj temp."
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Baza Wszystkich"
|
||||
@@ -321,9 +315,6 @@ msgstr "Motyw Ikon"
|
||||
msgid "Increase"
|
||||
msgstr "Zwiększ"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Startowanie"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Drukarka Startuje..."
|
||||
|
||||
@@ -336,6 +327,9 @@ msgstr "Interfejs"
|
||||
msgid "Invalid"
|
||||
msgstr "Nieprawidłowy"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Odwróć X"
|
||||
|
||||
@@ -361,7 +355,10 @@ msgid "Klipper is attempting to start"
|
||||
msgstr "Klipper próbuje wystartować"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper będzie się restartował"
|
||||
msgstr "Klipper uruchomi się ponownie"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen uruchomi się ponownie"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Język"
|
||||
@@ -370,7 +367,7 @@ msgid "Large"
|
||||
msgstr "Duży"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr ""
|
||||
msgstr "Warstwa:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Lewo:"
|
||||
@@ -384,9 +381,6 @@ msgstr "Ładuj"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Obniż dyszę"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Skrót do makr na pasku bocznym"
|
||||
|
||||
@@ -397,10 +391,10 @@ msgid "Main Menu"
|
||||
msgstr "Główne Menu"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "Maks"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr ""
|
||||
msgstr "Maksymalne przyspieszenie"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Maks Przyśpieszenie i Opóźnienie"
|
||||
@@ -408,14 +402,17 @@ msgstr "Maks Przyśpieszenie i Opóźnienie"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Maks Prędkość"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maksymalny"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
msgstr "Zmierz oba"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr ""
|
||||
msgstr "Zmierz X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr ""
|
||||
msgstr "Zmierz Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Średni"
|
||||
@@ -423,6 +420,9 @@ msgstr "Średni"
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Kalibracja siatki"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Zmodyfikowane"
|
||||
|
||||
@@ -441,20 +441,22 @@ msgstr "Nazwa"
|
||||
msgid "Network"
|
||||
msgstr "Sieć"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Nigdy"
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
msgstr "Nowy"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Nieobsługiwany do automatycznego wykrywania, musi być skonfigurowany w pliku "
|
||||
"klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nic nie wybrano"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Wyłącz"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Nieaktualne przez %d"
|
||||
@@ -496,7 +498,7 @@ msgid "Power On Printer"
|
||||
msgstr "Zasilanie włączone"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr ""
|
||||
msgstr "Postęp ciśnienia:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Drukuj"
|
||||
@@ -507,24 +509,36 @@ msgstr "Kontrola Druku"
|
||||
msgid "Print Time"
|
||||
msgstr "Czas Druku"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Drukarka"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Połączenia Drukarki"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Wybierz drukarkę"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Drukujemy"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr ""
|
||||
msgstr "Przesunięcie sondy"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Nazwa Profilu:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Poziom Bramy"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Podnieś dyszę"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Odzyskaj"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Odzyskaj Twardo"
|
||||
|
||||
@@ -535,7 +549,7 @@ msgid "Reference"
|
||||
msgstr "Sprawdzenie"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
msgstr "Odświeżać"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Restartuj"
|
||||
@@ -547,20 +561,19 @@ msgid "Retract"
|
||||
msgstr "Cofnij"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr ""
|
||||
msgstr "Wycofanie"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr ""
|
||||
msgstr "Długość wycofania"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
msgstr "Szybkość wycofania"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Spróbuj ponownie #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Spróbować ponownie"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "Ponawianie próby"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Zapisz"
|
||||
@@ -569,17 +582,17 @@ msgid "Save Config"
|
||||
msgstr "Zapisz Konfigurację"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr ""
|
||||
msgstr "Zapisz Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr ""
|
||||
msgstr "Zapisać konfigurację?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr ""
|
||||
msgstr "Zapisane"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr ""
|
||||
msgstr "Zapisane przesunięcie: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Ekran DPMS"
|
||||
@@ -609,6 +622,12 @@ msgstr "Ustawienia"
|
||||
msgid "Show"
|
||||
msgstr "Pokaż"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Pokaż moc grzałki"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Zamknąć"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Rozmiar"
|
||||
|
||||
@@ -624,12 +643,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr "Mały"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sortuj wg: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Prędkość (mm/s)"
|
||||
|
||||
@@ -640,7 +653,7 @@ msgid "Speed -"
|
||||
msgstr "Prędkość -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
msgstr "Prędkość:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "Prędkość w narożniku kwadratowym"
|
||||
@@ -672,10 +685,6 @@ msgstr "Temp (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Aby zastosować %s KlipperScreen musi zostać ponownie uruchomiony"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Całkowity:"
|
||||
|
||||
@@ -683,7 +692,7 @@ msgid "Unknown Heater"
|
||||
msgstr "Nieznany Podgrzewacz"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "Nieznana pozycja śruby"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Wyładuj"
|
||||
@@ -706,26 +715,11 @@ msgstr "Aktualizacja"
|
||||
msgid "Uploaded"
|
||||
msgstr "Przesłane"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Wyświetl siatkę"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Prędkość ruchu XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y0"
|
||||
msgstr "Prędkość XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Kalibracja Z"
|
||||
@@ -734,7 +728,7 @@ msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Prędkość ruchu Z (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr ""
|
||||
msgstr "Prędkość Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Przechył Z"
|
||||
@@ -742,12 +736,6 @@ msgstr "Przechył Z"
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "zmiana"
|
||||
@@ -775,6 +763,55 @@ msgstr "mm/s²"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Sortować:"
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y0"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Spróbuj ponownie #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Dodaj drukarkę"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Startowanie"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Skasuj"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Baza"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Wyłącz"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Wyświetl siatkę"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sortuj wg: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch znalazł zastosowane przesunięcie"
|
||||
|
||||
@@ -803,9 +840,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Nieznany Podgrzewacz "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Rozłącz"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,769 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:14-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: pt\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
msgstr "%s será atualizado para a versão"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr "(padrão)"
|
||||
|
||||
msgid "24 Hour Time"
|
||||
msgstr "24 Horas"
|
||||
|
||||
msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "Reinicie para corrigir."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr "ADXL não configurado"
|
||||
|
||||
msgid "Abort"
|
||||
msgstr "Abortar"
|
||||
|
||||
msgid "Acceleration:"
|
||||
msgstr "Aceleração:"
|
||||
|
||||
msgid "Accept"
|
||||
msgstr "Aceitar"
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "Ações"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Adicionar perfil"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Aplicar"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %.2f offset to Endstop?"
|
||||
msgstr "Aplicar deslocamento de %.2f para Endstop?"
|
||||
|
||||
#, python-format
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Aplicar deslocamento %s%.2f ao Sonda?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Tem certeza de que deseja excluir o objeto?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Interromper ?"
|
||||
|
||||
msgid "Are you sure you wish to cancel this print?"
|
||||
msgstr "Cancelar a impressão ?"
|
||||
|
||||
msgid "Are you sure you wish to disable motors?"
|
||||
msgstr "Desativar os motores ?"
|
||||
|
||||
msgid "Are you sure you wish to reboot the system?"
|
||||
msgstr "Reiniciar o sistema ?"
|
||||
|
||||
msgid "Are you sure you wish to shutdown the system?"
|
||||
msgstr "Desligar o sistema ?"
|
||||
|
||||
msgid "Auto"
|
||||
msgstr "Automatico"
|
||||
|
||||
msgid "Auto-calibrate"
|
||||
msgstr "Calibrar automaticamente"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr "Notificações de fechamento automático"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Auto-scroll"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "Nível da cama"
|
||||
|
||||
msgid "Bed Mesh"
|
||||
msgstr "Nivelamento da Cama"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr "Configuração do parafuso de cama:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Calibrar"
|
||||
|
||||
msgid "Calibrated"
|
||||
msgstr "Calibrado"
|
||||
|
||||
msgid "Calibrated, save configuration to make it permanent"
|
||||
msgstr "Calibrado, use o comando para salvar definitivamente"
|
||||
|
||||
msgid "Calibrating"
|
||||
msgstr "Calibrando"
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Não é possível definir o máximo:"
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
msgid "Cancel Print"
|
||||
msgstr "Cancelar Impressão"
|
||||
|
||||
msgid "Cancelled"
|
||||
msgstr "Cancelado"
|
||||
|
||||
msgid "Cancelling"
|
||||
msgstr "Cancelando"
|
||||
|
||||
msgid "Cannot connect to Moonraker"
|
||||
msgstr "Não foi possível conectar a Moonraker"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "Canal"
|
||||
|
||||
msgid "Check ADXL Wiring"
|
||||
msgstr "Verifique a fiação ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr "Verificando atualizações, aguarde..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr ""
|
||||
|
||||
msgid "Close"
|
||||
msgstr "Fechar"
|
||||
|
||||
msgid "Complete"
|
||||
msgstr "Completado"
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "Configuração"
|
||||
|
||||
msgid "Confirm Emergency Stop"
|
||||
msgstr "Confirmar Parada de Emergência"
|
||||
|
||||
msgid "Connected"
|
||||
msgstr "Conectado"
|
||||
|
||||
#, python-format
|
||||
msgid "Connecting to %s"
|
||||
msgstr "Conectando %s"
|
||||
|
||||
msgid "Console"
|
||||
msgstr "Console"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "Continuar"
|
||||
|
||||
msgid "Cooldown"
|
||||
msgstr "Resfriar"
|
||||
|
||||
msgid "Date"
|
||||
msgstr "Data"
|
||||
|
||||
msgid "Decrease"
|
||||
msgstr "Diminuir"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Excluir arquivo?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Deselecionar"
|
||||
|
||||
msgid "Disable Motors"
|
||||
msgstr "Desabilitar Motores"
|
||||
|
||||
msgid "Disable XY"
|
||||
msgstr "Desabilitar YX"
|
||||
|
||||
msgid "Distance (mm)"
|
||||
msgstr "Distancia (mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "Deseja recuperar %s?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "Decorrido:"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "Erro"
|
||||
|
||||
msgid "Estimated Time Method"
|
||||
msgstr "Método de tempo estimado"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr "Excluir objeto"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Extra grande"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extrusão"
|
||||
|
||||
msgid "Extrusion +"
|
||||
msgstr "+ Extrusão"
|
||||
|
||||
msgid "Extrusion -"
|
||||
msgstr "- Extrusão"
|
||||
|
||||
msgid "Failed, adjust position first"
|
||||
msgstr "Falhou, ajuste a posição primeiro"
|
||||
|
||||
msgid "Fan"
|
||||
msgstr "Fan"
|
||||
|
||||
msgid "Filament Used"
|
||||
msgstr "Filamento Usado"
|
||||
|
||||
msgid "Filament total:"
|
||||
msgstr "Filamento total:"
|
||||
|
||||
msgid "Filament used:"
|
||||
msgstr "Filamento usado:"
|
||||
|
||||
msgid "Filament:"
|
||||
msgstr "Filamento:"
|
||||
|
||||
msgid "File"
|
||||
msgstr "Arquivo"
|
||||
|
||||
msgid "File:"
|
||||
msgstr "Arquivo:"
|
||||
|
||||
msgid "Finding ADXL"
|
||||
msgstr "Encontrar ADXL"
|
||||
|
||||
msgid "Fine Tuning"
|
||||
msgstr "Correção Fina"
|
||||
|
||||
msgid "Finish"
|
||||
msgstr "Terminar"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Reiniciar Firmware"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr "Fluxo:"
|
||||
|
||||
msgid "Flowrate:"
|
||||
msgstr "Flow:"
|
||||
|
||||
msgid "Font Size"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
msgid "Full Update"
|
||||
msgstr "Atualização completa"
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Voltar"
|
||||
|
||||
msgid "Height:"
|
||||
msgstr "Altura:"
|
||||
|
||||
msgid "Hidden"
|
||||
msgstr "Oculto"
|
||||
|
||||
msgid "Hide"
|
||||
msgstr "Ocultar"
|
||||
|
||||
msgid "Hide sensors in Temp."
|
||||
msgstr "Ocultar temperatura."
|
||||
|
||||
msgid "Hide temp."
|
||||
msgstr "Ocultar temperatura"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Calibrar XYZ"
|
||||
|
||||
msgid "Home X"
|
||||
msgstr "Calibrar X"
|
||||
|
||||
msgid "Home XY"
|
||||
msgstr "Calibrar XY"
|
||||
|
||||
msgid "Home Y"
|
||||
msgstr "Calibrar Y"
|
||||
|
||||
msgid "Home Z"
|
||||
msgstr "Calibrar Z"
|
||||
|
||||
msgid "Homing"
|
||||
msgstr "Calibrar"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Hostname"
|
||||
|
||||
msgid "Icon Theme"
|
||||
msgstr "Tema dos icones"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "Aumentar"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Inicializando impressora..."
|
||||
|
||||
msgid "Input Shaper"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interface"
|
||||
msgstr "Interface"
|
||||
|
||||
msgid "Invalid"
|
||||
msgstr "Inválido"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Inverter X"
|
||||
|
||||
msgid "Invert Y"
|
||||
msgstr "Inverter Y"
|
||||
|
||||
msgid "Invert Z"
|
||||
msgstr "Inverter Z"
|
||||
|
||||
msgid "Klipper Restart"
|
||||
msgstr "Reinicialização do Klipper"
|
||||
|
||||
msgid "Klipper has disconnected"
|
||||
msgstr "Klipper desconectado"
|
||||
|
||||
msgid "Klipper has encountered an error."
|
||||
msgstr "Klipper encontrou um erro."
|
||||
|
||||
msgid "Klipper has shutdown"
|
||||
msgstr "Klipper desligado"
|
||||
|
||||
msgid "Klipper is attempting to start"
|
||||
msgstr "Klipper está tentando iniciar"
|
||||
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper será reiniciado"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen será reiniciado"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Idioma"
|
||||
|
||||
msgid "Large"
|
||||
msgstr "Grande"
|
||||
|
||||
msgid "Layer:"
|
||||
msgstr "Camada:"
|
||||
|
||||
msgid "Left:"
|
||||
msgstr "Restante:"
|
||||
|
||||
msgid "Limits"
|
||||
msgstr "Limites"
|
||||
|
||||
msgid "Load"
|
||||
msgstr "Carregar"
|
||||
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Descer bocal"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Atalho de macro na barra lateral"
|
||||
|
||||
msgid "Macros"
|
||||
msgstr "Macros"
|
||||
|
||||
msgid "Main Menu"
|
||||
msgstr "Menu principal"
|
||||
|
||||
msgid "Max"
|
||||
msgstr "Máx"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Aceleração Máxima"
|
||||
|
||||
msgid "Max Acceleration to Deceleration"
|
||||
msgstr "Max. aceleração de desaceleração"
|
||||
|
||||
msgid "Max Velocity"
|
||||
msgstr "Velocidade máxima"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Máximo"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Medir ambos"
|
||||
|
||||
msgid "Measure X"
|
||||
msgstr "Medida X"
|
||||
|
||||
msgid "Measure Y"
|
||||
msgstr "Medida Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Médio"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Calibrar malha"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Modificado"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Moonraker: Conectado"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "Mover"
|
||||
|
||||
msgid "Move Distance (mm)"
|
||||
msgstr "Distancia do movimento (mm)"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "Rede"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Nunca"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Novo"
|
||||
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Não é compatível com detecção automática, precisa ser configurado no "
|
||||
"klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Nada selecionado"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Desatualizado por %d"
|
||||
|
||||
msgid "PSK for"
|
||||
msgstr "PSK por"
|
||||
|
||||
msgid "Package will be updated"
|
||||
msgid_plural "Packages will be updated"
|
||||
msgstr[0] "O pacote será atualizado"
|
||||
msgstr[1] "Os pacotes serão atualizados"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr "Fã de parte"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Senha salva"
|
||||
|
||||
msgid "Pause"
|
||||
msgstr "Pausar"
|
||||
|
||||
msgid "Paused"
|
||||
msgstr "Pausado"
|
||||
|
||||
msgid "Perform a full upgrade?"
|
||||
msgstr "Realizar uma atualização completa?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Por favor, recompile e atualize o microcontrolador."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "Ligue"
|
||||
|
||||
msgid "Power On Printer"
|
||||
msgstr "Ligue a impressora"
|
||||
|
||||
msgid "Pressure Advance:"
|
||||
msgstr "Avanço de pressão:"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Impressão"
|
||||
|
||||
msgid "Print Control"
|
||||
msgstr "Controle de impressão"
|
||||
|
||||
msgid "Print Time"
|
||||
msgstr "Tempo de impressão"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Impressora"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Conexões da impressora"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Selecione a impressora"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Imprimindo"
|
||||
|
||||
msgid "Probe Offset"
|
||||
msgstr "Deslocamento da Sonda"
|
||||
|
||||
msgid "Profile Name:"
|
||||
msgstr "Nome do perfil:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Nível do pórtico quádruplo"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Elevar o bocal"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Recuperar"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Recuperar Difícil"
|
||||
|
||||
msgid "Recover Soft"
|
||||
msgstr "Recuperar Suave"
|
||||
|
||||
msgid "Reference"
|
||||
msgstr "Referência"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "Atualizar"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Reiniciar"
|
||||
|
||||
msgid "Resume"
|
||||
msgstr "Resumir"
|
||||
|
||||
msgid "Retract"
|
||||
msgstr "Retrair"
|
||||
|
||||
msgid "Retraction"
|
||||
msgstr "Retratação"
|
||||
|
||||
msgid "Retraction Length"
|
||||
msgstr "Comprimento de retração"
|
||||
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Velocidade de retração"
|
||||
|
||||
msgid "Retry"
|
||||
msgstr "Tentar novamente"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Tentando novamente"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Salvar"
|
||||
|
||||
msgid "Save Config"
|
||||
msgstr "Salvar configuração"
|
||||
|
||||
msgid "Save Z"
|
||||
msgstr "Salvar Z"
|
||||
|
||||
msgid "Save configuration?"
|
||||
msgstr "Salvar configuração?"
|
||||
|
||||
msgid "Saved"
|
||||
msgstr "Salvou"
|
||||
|
||||
#, python-format
|
||||
msgid "Saved offset: %s"
|
||||
msgstr "Deslocamento salvo: %s"
|
||||
|
||||
msgid "Screen DPMS"
|
||||
msgstr "Tela DPMS"
|
||||
|
||||
msgid "Screen Power Off Time"
|
||||
msgstr "Tempo de desligamento da tela"
|
||||
|
||||
msgid "Screws Adjust"
|
||||
msgstr "Ajustes"
|
||||
|
||||
msgid "Select"
|
||||
msgstr "Selecionar"
|
||||
|
||||
msgid "Send"
|
||||
msgstr "Enviar"
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
msgstr "Enviando sinal de energia para: %s"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Definir temperatura"
|
||||
|
||||
msgid "Settings"
|
||||
msgstr "Definições"
|
||||
|
||||
msgid "Show"
|
||||
msgstr "Mostrar"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Mostrar Potência do Aquecedor"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Desligar"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Tamanho"
|
||||
|
||||
msgid "Slicer"
|
||||
msgstr "Fatiador"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "Correção do tempo do fatiador (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Pequeno"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Velocidade (mm/s)"
|
||||
|
||||
msgid "Speed +"
|
||||
msgstr "+ Velocidade"
|
||||
|
||||
msgid "Speed -"
|
||||
msgstr "- Velocidade"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr "Velocidade:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "Velocidade de canto quadrado"
|
||||
|
||||
msgid "Start"
|
||||
msgstr "Começar"
|
||||
|
||||
msgid "Starting WiFi Association"
|
||||
msgstr "Iniciando a associação WiFi"
|
||||
|
||||
msgid "Starting recovery for"
|
||||
msgstr "Iniciando a recuperação para"
|
||||
|
||||
msgid "Starting update for"
|
||||
msgstr "Iniciando atualização para"
|
||||
|
||||
msgid "System"
|
||||
msgstr "Sistema"
|
||||
|
||||
msgid "System Restart"
|
||||
msgstr "Reinicialização do sistema"
|
||||
|
||||
msgid "System Shutdown"
|
||||
msgstr "Desligamento do sistema"
|
||||
|
||||
msgid "Temp (°C)"
|
||||
msgstr "Temp (°C)"
|
||||
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Total:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "Aquecedor Desconhecido"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr "Posição desconhecida do parafuso"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Descarregar"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Atualizado"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "Atualizar"
|
||||
|
||||
msgid "Updating"
|
||||
msgstr "Atualizando"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Carregado"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Velocidade de Movimento XY (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "Velocidade XY (mm/s)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Calibrar Z"
|
||||
|
||||
msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Velocidade de Movimento Z (mm/s)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr "Velocidade Z (mm/s)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Inclinação Z"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr "Deslocamento Z:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "comprometer-se"
|
||||
msgstr[1] "compromete"
|
||||
|
||||
msgid "dBm"
|
||||
msgstr "dBm"
|
||||
|
||||
msgid "hour"
|
||||
msgid_plural "hours"
|
||||
msgstr[0] "hora"
|
||||
msgstr[1] "horas"
|
||||
|
||||
msgid "minutes"
|
||||
msgstr "minutos"
|
||||
|
||||
msgid "mm"
|
||||
msgstr "mm"
|
||||
|
||||
msgid "mm/s"
|
||||
msgstr "mm/s"
|
||||
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Ordenar:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Calibrando..."
|
||||
Binary file not shown.
+151
-102
@@ -6,22 +6,22 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-06-03 20:25-0500\n"
|
||||
"POT-Creation-Date: 2023-01-29 09:28-0600\n"
|
||||
"PO-Revision-Date: 2022-11-30 18:15-0300\n"
|
||||
"Last-Translator: Jakob Kais <schpuntik@freenet.de>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: ru_RU\n"
|
||||
"Language: ru\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
"X-Poedit-Flags-xgettext: --add-comments\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
msgstr "% s будет обновлен до версии"
|
||||
msgstr "%s будет обновлен до версии"
|
||||
|
||||
msgid "(default)"
|
||||
msgstr "(дефолт)"
|
||||
@@ -30,7 +30,7 @@ msgid "24 Hour Time"
|
||||
msgstr "24-часовой формат"
|
||||
|
||||
msgid "A FIRMWARE_RESTART may fix the issue."
|
||||
msgstr "FIRMWARE_RESTART может решить проблему."
|
||||
msgstr "Выполните перезагрузку прошивки, чтобы попытаться исправить проблему."
|
||||
|
||||
msgid "ADXL Not Configured"
|
||||
msgstr "ADXL не настроен"
|
||||
@@ -47,11 +47,8 @@ msgstr "Применить"
|
||||
msgid "Actions"
|
||||
msgstr "Действия"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Добавить принтер"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
msgstr "Добавить профиль"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Применить"
|
||||
@@ -64,6 +61,9 @@ msgstr "Применить смещение %.2f к Endstop?"
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Применить смещение %s%.2f к зонду?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Вы уверены, что хотите исключить объект?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Вы уверены, что хотите запустить аварийную остановку?"
|
||||
|
||||
@@ -86,10 +86,10 @@ msgid "Auto-calibrate"
|
||||
msgstr "Автоматическая калибровка"
|
||||
|
||||
msgid "Auto-close notifications"
|
||||
msgstr ""
|
||||
msgstr "Автоматическое закрытие уведомлений"
|
||||
|
||||
msgid "Auto-scroll"
|
||||
msgstr "Автопрокрутка"
|
||||
msgstr "Автоматическая прокрутка"
|
||||
|
||||
msgid "Bed Level"
|
||||
msgstr "Уровень стола"
|
||||
@@ -98,7 +98,7 @@ msgid "Bed Mesh"
|
||||
msgstr "Сетка стола"
|
||||
|
||||
msgid "Bed screw configuration:"
|
||||
msgstr ""
|
||||
msgstr "Конфигурация винтов кровати:"
|
||||
|
||||
msgid "Calibrate"
|
||||
msgstr "Калибровка"
|
||||
@@ -112,8 +112,8 @@ msgstr "Откалибровано, сохраните конфигурацию,
|
||||
msgid "Calibrating"
|
||||
msgstr "Калибровка"
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Калибровка..."
|
||||
msgid "Camera"
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Невозможно установить выше максимума:"
|
||||
@@ -131,7 +131,7 @@ msgid "Cancelling"
|
||||
msgstr "Отменить"
|
||||
|
||||
msgid "Cannot connect to Moonraker"
|
||||
msgstr "Не могу подключиться к Moonraker"
|
||||
msgstr "Не удается подключиться к Moonraker"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "Канал"
|
||||
@@ -140,7 +140,7 @@ msgid "Check ADXL Wiring"
|
||||
msgstr "Проверьте проводку ADXL"
|
||||
|
||||
msgid "Checking for updates, please wait..."
|
||||
msgstr ""
|
||||
msgstr "Проверка обновлений, подождите..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Очистить"
|
||||
@@ -176,14 +176,11 @@ msgstr "Остудить"
|
||||
msgid "Date"
|
||||
msgstr "Дата"
|
||||
|
||||
msgid "Decrease"
|
||||
msgstr "Уменьшить"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Удалить"
|
||||
msgid "Delete Directory?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
msgstr "Удалить Файл?"
|
||||
|
||||
msgid "Deselect"
|
||||
msgstr "Отменить выбор"
|
||||
@@ -199,7 +196,7 @@ msgstr "Расстояние (mm)"
|
||||
|
||||
#, python-format
|
||||
msgid "Do you want to recover %s?"
|
||||
msgstr "Вы хотите восстановить% s?"
|
||||
msgstr "Вы хотите восстановить%s?"
|
||||
|
||||
msgid "Elapsed:"
|
||||
msgstr "Прошло:"
|
||||
@@ -211,7 +208,10 @@ msgid "Estimated Time Method"
|
||||
msgstr "Расчётное время"
|
||||
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
msgstr "Исключить Объект"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Очень большой"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Заправить"
|
||||
@@ -256,7 +256,7 @@ msgid "Finish"
|
||||
msgstr "Конец"
|
||||
|
||||
msgid "Firmware Restart"
|
||||
msgstr "Прошивка Рестарт"
|
||||
msgstr "Перезапуск прошивки"
|
||||
|
||||
msgid "Flow:"
|
||||
msgstr "Поток:"
|
||||
@@ -270,6 +270,9 @@ msgstr "Размер шрифта"
|
||||
msgid "Full Update"
|
||||
msgstr "Полный Обновлять"
|
||||
|
||||
msgid "Fullscreen"
|
||||
msgstr ""
|
||||
|
||||
msgid "Go Back"
|
||||
msgstr "Назад"
|
||||
|
||||
@@ -288,9 +291,6 @@ msgstr "Скрыть датчики в Temp."
|
||||
msgid "Hide temp."
|
||||
msgstr "Скрыть температуру."
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Парковка"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Парковать все"
|
||||
|
||||
@@ -310,7 +310,7 @@ msgid "Homing"
|
||||
msgstr "Парковка"
|
||||
|
||||
msgid "Host"
|
||||
msgstr ""
|
||||
msgstr "Хост"
|
||||
|
||||
msgid "Hostname"
|
||||
msgstr "Имя хоста"
|
||||
@@ -318,12 +318,6 @@ msgstr "Имя хоста"
|
||||
msgid "Icon Theme"
|
||||
msgstr "Темы"
|
||||
|
||||
msgid "Increase"
|
||||
msgstr "Поднять"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Запуск"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Принтер стартует..."
|
||||
|
||||
@@ -336,6 +330,9 @@ msgstr "Интерфейс"
|
||||
msgid "Invalid"
|
||||
msgstr "Неверный"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Инверсия X"
|
||||
|
||||
@@ -363,6 +360,9 @@ msgstr "Klipper готов"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper перезагружается"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen перезагружается"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Язык"
|
||||
|
||||
@@ -384,9 +384,6 @@ msgstr "Загрузить"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Опустить сопло"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Показать макросы в панели"
|
||||
|
||||
@@ -397,7 +394,7 @@ msgid "Main Menu"
|
||||
msgstr "Главное меню"
|
||||
|
||||
msgid "Max"
|
||||
msgstr ""
|
||||
msgstr "Максимум"
|
||||
|
||||
msgid "Max Acceleration"
|
||||
msgstr "Максимальное ускорение"
|
||||
@@ -408,6 +405,9 @@ msgstr "Ускорения торможения"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Скорость"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Максимум"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Измерьте и то, и другое"
|
||||
|
||||
@@ -418,16 +418,19 @@ msgid "Measure Y"
|
||||
msgstr "Измерьте Y"
|
||||
|
||||
msgid "Medium"
|
||||
msgstr "Среднее"
|
||||
msgstr "Средний"
|
||||
|
||||
msgid "Menu"
|
||||
msgstr "Меню"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Калибровка сетки"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Изменено"
|
||||
|
||||
msgid "Moonraker: connected"
|
||||
msgstr "Мунрейкер: подключен"
|
||||
msgstr "Moonraker: подключен"
|
||||
|
||||
msgid "Move"
|
||||
msgstr "Двигать"
|
||||
@@ -441,6 +444,9 @@ msgstr "Имя"
|
||||
msgid "Network"
|
||||
msgstr "Сеть"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Никогда"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Новый"
|
||||
|
||||
@@ -448,13 +454,12 @@ msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Не поддерживается для автоматического обнаружения, его необходимо настроить "
|
||||
"в klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Ничего не выбрано"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Выкл"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Устарело на %d"
|
||||
@@ -469,7 +474,7 @@ msgstr[1] "Пакеты будут обновляться"
|
||||
msgstr[2] "Пакеты будут обновляться"
|
||||
|
||||
msgid "Part Fan"
|
||||
msgstr ""
|
||||
msgstr "Частичный вентилятор"
|
||||
|
||||
msgid "Password saved"
|
||||
msgstr "Пароль сохранен"
|
||||
@@ -484,10 +489,10 @@ msgid "Perform a full upgrade?"
|
||||
msgstr "Выполнить полное обновление?"
|
||||
|
||||
msgid "Pins"
|
||||
msgstr ""
|
||||
msgstr "Пины"
|
||||
|
||||
msgid "Please recompile and flash the micro-controller."
|
||||
msgstr "Пожалуйста, перекомпилируйте и прошейте микроконтроллер."
|
||||
msgstr "Прошейте заново микроконтроллер."
|
||||
|
||||
msgid "Power"
|
||||
msgstr "Включено"
|
||||
@@ -507,9 +512,15 @@ msgstr "Управление печатью"
|
||||
msgid "Print Time"
|
||||
msgstr "Время печати"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Принтер"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Подключение принтера"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Выбор принтера"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Печатается"
|
||||
|
||||
@@ -519,12 +530,18 @@ msgstr "Смещение зонда"
|
||||
msgid "Profile Name:"
|
||||
msgstr "Имя профиля:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Уровень Quad Gantry"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Поднять сопло"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Восстановить"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Восстановить Hard"
|
||||
|
||||
@@ -535,6 +552,9 @@ msgid "Reference"
|
||||
msgstr "Ссылка"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "Обновить"
|
||||
|
||||
msgid "Rename/Move:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart"
|
||||
@@ -555,12 +575,11 @@ msgstr "Длина ретракта"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Скорость ретракта"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Повторить #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Повторить попытку"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
msgstr "Повторная попытка"
|
||||
|
||||
msgid "Save"
|
||||
msgstr "Сохранить"
|
||||
@@ -594,11 +613,7 @@ msgid "Select"
|
||||
msgstr "Выбирать"
|
||||
|
||||
msgid "Send"
|
||||
msgstr "Отправлять"
|
||||
|
||||
#, python-format
|
||||
msgid "Sending Power ON signal to: %s"
|
||||
msgstr "Отправка сигнала включения питания на: %s"
|
||||
msgstr "Отправить"
|
||||
|
||||
msgid "Set Temp"
|
||||
msgstr "Заданная температура"
|
||||
@@ -609,6 +624,12 @@ msgstr "Настройки"
|
||||
msgid "Show"
|
||||
msgstr "Показывать"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Показать мощность нагрева"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Выключить"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Размер"
|
||||
|
||||
@@ -616,20 +637,14 @@ msgid "Slicer"
|
||||
msgstr "Слайсер"
|
||||
|
||||
msgid "Slicer Time correction (%)"
|
||||
msgstr "Коррекция времени слайсера (%)"
|
||||
msgstr "Коррекция времени Слайсер (%)"
|
||||
|
||||
msgid "Slicer:"
|
||||
msgstr ""
|
||||
msgstr "Слайсер:"
|
||||
|
||||
msgid "Small"
|
||||
msgstr "Маленький"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Орден: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Сортировать:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Скорость (мм/с)"
|
||||
|
||||
@@ -640,7 +655,7 @@ msgid "Speed -"
|
||||
msgstr "Скорость -"
|
||||
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
msgstr "Скорость:"
|
||||
|
||||
msgid "Square Corner Velocity"
|
||||
msgstr "Квадратная угловая скорость"
|
||||
@@ -672,27 +687,23 @@ msgstr "Темп (°С)"
|
||||
msgid "Temperature"
|
||||
msgstr "Tемпература"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Чтобы применить %s необходимо перезапустить KlipperScreen"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Всего:"
|
||||
msgstr "Итого:"
|
||||
|
||||
msgid "Unknown Heater"
|
||||
msgstr "Неизвестный обогреватель"
|
||||
|
||||
msgid "Unknown screw position"
|
||||
msgstr ""
|
||||
msgstr "Неизвестное положение винта"
|
||||
|
||||
msgid "Unload"
|
||||
msgstr "Загружено"
|
||||
|
||||
msgid "Unretract Extra Length"
|
||||
msgstr ""
|
||||
msgstr "Дополнительная длина подачи перед возобновлением печати"
|
||||
|
||||
msgid "Unretract Speed"
|
||||
msgstr ""
|
||||
msgstr "Скорость дополнительная подачи"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Обновлено"
|
||||
@@ -704,28 +715,13 @@ msgid "Updating"
|
||||
msgstr "Обновление"
|
||||
|
||||
msgid "Uploaded"
|
||||
msgstr "Дата"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Смотреть сетку"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
msgstr "Загружено"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Скорость перемещения по осям XY (мм/с)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
msgstr "Скорость по осям XY (мм/с)"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Калибр. Z"
|
||||
@@ -734,19 +730,13 @@ msgid "Z Move Speed (mm/s)"
|
||||
msgstr "Скорость перемещения по оси Z (мм/с)"
|
||||
|
||||
msgid "Z Speed (mm/s)"
|
||||
msgstr ""
|
||||
msgstr "Скорость оси Z (мм/с)"
|
||||
|
||||
msgid "Z Tilt"
|
||||
msgstr "Z Наклон"
|
||||
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
msgstr "Смещение Z:"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
@@ -775,6 +765,68 @@ msgstr "мм/с"
|
||||
msgid "mm/s²"
|
||||
msgstr "мм/с²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "мм/с³"
|
||||
|
||||
#~ msgid "Decrease"
|
||||
#~ msgstr "Уменьшить"
|
||||
|
||||
#~ msgid "Increase"
|
||||
#~ msgstr "Поднять"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Sending Power ON signal to: %s"
|
||||
#~ msgstr "Отправка сигнала включения питания на: %s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Сортировать:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Калибровка..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Добавить принтер"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Запуск"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Повторная попытка #%s"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Удалить"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Парковка"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Выкл"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Смотреть сетку"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Орден: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch обнаружил примененное смещение"
|
||||
|
||||
@@ -803,9 +855,6 @@ msgstr "мм/с²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "Неизвестный обогреватель "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "Отключить"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+83
-58
@@ -7,16 +7,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-04-15 17:25+0200\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-21 21:31-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: sv_SE\n"
|
||||
"Language: sv\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -46,9 +46,6 @@ msgstr "Godkänn"
|
||||
msgid "Actions"
|
||||
msgstr "Åtgärder"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Lägg till skrivare"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr ""
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Är du säker på att du vill köra Nödstopp?"
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr "Kalibrerad, spara konfiguration för att göra den permanent"
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Kan inte ställa in över maxgränsen:"
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr "Datum"
|
||||
msgid "Decrease"
|
||||
msgstr "Minska"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Radera"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr ""
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Extrudera"
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr "Dölj sensorer i Temp."
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Hem"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Hem Alla"
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr "Ikon tema"
|
||||
msgid "Increase"
|
||||
msgstr "Öka"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Initierar"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Initierar skrivaren..."
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr "Gränssnitt"
|
||||
msgid "Invalid"
|
||||
msgstr "Ogiltig"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Invertera X"
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper försöker starta"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper kommer att starta om"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr ""
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Språk"
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr "Ladda"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Sänk munstycket"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Makro genväg på sidofältet"
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr ""
|
||||
msgid "Max Velocity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr "Medium"
|
||||
msgid "Menu"
|
||||
msgstr "Meny"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Ändrad"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "Namn"
|
||||
msgid "Network"
|
||||
msgstr "Nätverk"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
@@ -451,9 +454,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "Inget valt"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Avstängd"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr ""
|
||||
@@ -505,9 +505,15 @@ msgstr "Utskriftskontroll"
|
||||
msgid "Print Time"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Skriver ut"
|
||||
|
||||
@@ -517,12 +523,18 @@ msgstr ""
|
||||
msgid "Profile Name:"
|
||||
msgstr "Profilens namn:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr ""
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr ""
|
||||
|
||||
@@ -553,8 +565,7 @@ msgstr ""
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
@@ -607,6 +618,12 @@ msgstr "Inställningar"
|
||||
msgid "Show"
|
||||
msgstr "Visa"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Storlek"
|
||||
|
||||
@@ -622,12 +639,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr "Liten"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sortera efter: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Hastighet (mm/s)"
|
||||
|
||||
@@ -670,10 +681,6 @@ msgstr "Temperatur (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatur"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "För att tillämpa %s måste KlipperScreen startas om"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr ""
|
||||
|
||||
@@ -704,27 +711,12 @@ msgstr "Uppdaterar"
|
||||
msgid "Uploaded"
|
||||
msgstr "Uppladdad"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr ""
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY rörelsehastighet (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z Kalibrering"
|
||||
|
||||
@@ -740,12 +732,6 @@ msgstr ""
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] ""
|
||||
@@ -771,6 +757,45 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Lägg till skrivare"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Initierar"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Radera"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Hem"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Avstängd"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sortera efter: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch hittade tillämpad offset"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+100
-59
@@ -7,16 +7,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-09-21 19:32+0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-12-10 14:52+0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: tr_TR\n"
|
||||
"Language: tr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -46,9 +46,6 @@ msgstr "Kabul et"
|
||||
msgid "Actions"
|
||||
msgstr "Eylemler"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Yazıcı Ekle"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Profil ekle"
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr "Sonlandırıcı için %.2f ofset uygula?"
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Prob için %s%.2f ofset uygula?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Nesneyi hariç tutmak istediğinizden emin misiniz?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Acil Durdurma'yı çalıştırmak istediğinizden emin misiniz?"
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr "Kalibre edildi, kalıcı hale getirmek için yapılandırmayı kaydedin"
|
||||
msgid "Calibrating"
|
||||
msgstr "Kalibre Ediliyor"
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Kalibre Ediliyor..."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Maksimumun üzerine ayarlanamaz:"
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr "Tarih"
|
||||
msgid "Decrease"
|
||||
msgstr "Azalt"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Sil"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Dosyayı Sil?"
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr "Tahmini Zaman Metodu"
|
||||
msgid "Exclude Object"
|
||||
msgstr "Nesneyi Hariç Tut"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Çok Büyük"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "Ekstrüzyon"
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr "Sıcaklıktaki sensörleri gizleyin."
|
||||
msgid "Hide temp."
|
||||
msgstr "Sıcaklığı gizle."
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Ana Ekran"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Eksenleri Sıfırla"
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr "Simge Teması"
|
||||
msgid "Increase"
|
||||
msgstr "Artır"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Başlatılıyor"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Yazıcı başlatılıyor..."
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr "Arayüz"
|
||||
msgid "Invalid"
|
||||
msgstr "Geçersiz"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Geçersiz şifre"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "X Ters çevir"
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper başlatılmaya çalışılıyor"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper yeniden başlayacak"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen yeniden başlayacak"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Dil"
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr "Yükle"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Nozzle düşür"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr "Makine"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Kenar çubuğunda makro kısayolu"
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr "Maksimum Hızlanma ve Yavaşlama"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Maksimum Hız"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Maksimum"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "İkisini de ölçüle"
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr "Orta"
|
||||
msgid "Menu"
|
||||
msgstr "Menü"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Mesh Kalibre et"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Değiştirilmiş"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "İsim"
|
||||
msgid "Network"
|
||||
msgstr "Ağ"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Asla"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Yeni"
|
||||
|
||||
@@ -453,9 +456,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "Hiçbir şey seçilmedi"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Kapa"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Güncelliğini yitiren %d"
|
||||
@@ -507,9 +507,15 @@ msgstr "Yazdırma Kontrolü"
|
||||
msgid "Print Time"
|
||||
msgstr "Yazdırma Süresi"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Yazıcı"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Yazıcı Bağlantıları"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Yazıcı Seçimi"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Yazdırılıyor"
|
||||
|
||||
@@ -519,12 +525,18 @@ msgstr "Prob ofseti"
|
||||
msgid "Profile Name:"
|
||||
msgstr "Profil ismi:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Yardım isterken KlipperScreen.log dosyasını sağlayın.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Dörtlü Köprü Seviyesi"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Nozzle yükselt"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Kurtar"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Zorla Kurtar"
|
||||
|
||||
@@ -555,9 +567,8 @@ msgstr "Geri Çekme Uzunluğu"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Geri Çekme Hızı"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Yeniden Dene #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Tekrar dene"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Yeniden Deneniyor"
|
||||
@@ -609,6 +620,12 @@ msgstr "Ayarlar"
|
||||
msgid "Show"
|
||||
msgstr "Göster"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Isıtıcı Gücünü Göster"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Kapat"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Boyut"
|
||||
|
||||
@@ -624,12 +641,6 @@ msgstr "Dilimleyici:"
|
||||
msgid "Small"
|
||||
msgstr "Küçük"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Sırala: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Sırala:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Hız (mm/s)"
|
||||
|
||||
@@ -672,10 +683,6 @@ msgstr "Sıcaklık (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Sıcaklık"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Uygulamak için %s KlipperScreen yeniden başlatılmalı"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Toplam:"
|
||||
|
||||
@@ -706,27 +713,12 @@ msgstr "Yükleniyor"
|
||||
msgid "Uploaded"
|
||||
msgstr "Yüklendi"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Örgüyü Görüntüle"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY Hareket hızı (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY Hızı (mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z Kalibrasyonu"
|
||||
|
||||
@@ -742,12 +734,6 @@ msgstr "Z Eğim"
|
||||
msgid "Z offset:"
|
||||
msgstr "Z ofset:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "commit"
|
||||
@@ -773,6 +759,61 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr "mm³/s"
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Sırala:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Kalibre Ediliyor..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Yeniden Dene #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Yazıcı Ekle"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Başlatılıyor"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Sil"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Ana Ekran"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Kapa"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Örgüyü Görüntüle"
|
||||
|
||||
#~ msgid "Machine"
|
||||
#~ msgstr "Makine"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Sırala: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch uygulanmış ofseti buldu"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+119
-71
@@ -7,17 +7,17 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: 2022-09-04 14:53-0300\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-09-04 13:01+0300\n"
|
||||
"PO-Revision-Date: 2022-09-16 21:40+0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2023-03-10 20:26-0600\n"
|
||||
"Last-Translator: Andrii Komarovskyi\n"
|
||||
"Language-Team: Andrii Komarovskyi\n"
|
||||
"Language: uk\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n"
|
||||
"%100<12 || n%100>14) ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 3.1\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
||||
"X-Generator: Poedit 2.4.2\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -47,9 +47,6 @@ msgstr "Прийняти"
|
||||
msgid "Actions"
|
||||
msgstr "Дії"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "Додати принтер"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr "Додати профіль"
|
||||
|
||||
@@ -64,6 +61,9 @@ msgstr "Застосувати зміщення %.2f до кінцевика?"
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "Застосувати зміщення %s%.2f до зонда?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr "Ви впевнені, що бажаєте виключити об’єкт?"
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "Ви впевнені, що хочете зробити аварійну зупинку?"
|
||||
|
||||
@@ -112,9 +112,6 @@ msgstr "Відкалібровано, збережіть конфігураці
|
||||
msgid "Calibrating"
|
||||
msgstr "Калібрування"
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "Калібрування..."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "Не можна встановити вище максимум:"
|
||||
|
||||
@@ -179,9 +176,6 @@ msgstr "Дата"
|
||||
msgid "Decrease"
|
||||
msgstr "Зменшити"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "Видалити"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr "Видалити файл?"
|
||||
|
||||
@@ -213,6 +207,9 @@ msgstr "Метод розрахунку часу"
|
||||
msgid "Exclude Object"
|
||||
msgstr "Виключити об’єкт"
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr "Дуже Великий"
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr ""
|
||||
"Заміна\n"
|
||||
@@ -292,9 +289,6 @@ msgstr "Сховати датчик t°."
|
||||
msgid "Hide temp."
|
||||
msgstr "Приховати темп."
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Домашня сторінка"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "Дім Всі"
|
||||
|
||||
@@ -325,9 +319,6 @@ msgstr "Тема оформлення"
|
||||
msgid "Increase"
|
||||
msgstr "Збільшити"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "Ініціалізація"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "Ініціалізація принтера..."
|
||||
|
||||
@@ -340,6 +331,9 @@ msgstr "Інтерфейс"
|
||||
msgid "Invalid"
|
||||
msgstr "Недійсний"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr "Недійсний пароль"
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "Інвертувати X"
|
||||
|
||||
@@ -369,6 +363,9 @@ msgstr "Кліппер намагається стартувати"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper перезавантажиться"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen перезавантажиться"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "Мова"
|
||||
|
||||
@@ -390,9 +387,6 @@ msgstr "Завантажити"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "Опустити сопло"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr "Машина"
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "Ярлик макросу на бічній панелі"
|
||||
|
||||
@@ -414,6 +408,9 @@ msgstr "Макс. прискорення до гальмування"
|
||||
msgid "Max Velocity"
|
||||
msgstr "Макс. швидкість"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr "Максимум"
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr "Виміряти все"
|
||||
|
||||
@@ -429,6 +426,9 @@ msgstr "Середній"
|
||||
msgid "Menu"
|
||||
msgstr "Меню"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr "Калібрування сітки столу"
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "Змінено"
|
||||
|
||||
@@ -445,21 +445,24 @@ msgid "Name"
|
||||
msgstr "Ім'я"
|
||||
|
||||
msgid "Network"
|
||||
msgstr "Сітка"
|
||||
msgstr "Мережа"
|
||||
|
||||
msgid "Never"
|
||||
msgstr "Ніколи"
|
||||
|
||||
msgid "New"
|
||||
msgstr "Новий"
|
||||
|
||||
msgid "Not supported for auto-detection, it needs to be configured in klipperscreen.conf"
|
||||
msgid ""
|
||||
"Not supported for auto-detection, it needs to be configured in klipperscreen."
|
||||
"conf"
|
||||
msgstr ""
|
||||
"Автоматичне визначення не підтримується, його потрібно налаштувати у klipperscreen.conf"
|
||||
"Автоматичне визначення не підтримується, його потрібно налаштувати у "
|
||||
"klipperscreen.conf"
|
||||
|
||||
msgid "Nothing selected"
|
||||
msgstr "Не обрано"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "Вимк"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "Застаріло на %d"
|
||||
@@ -514,9 +517,15 @@ msgstr "Контроль друку"
|
||||
msgid "Print Time"
|
||||
msgstr "Час друку"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr "Принтер"
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "Підключення принтера"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr "Вибір Принтера"
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "Друк"
|
||||
|
||||
@@ -526,12 +535,18 @@ msgstr "Зміщення зонда"
|
||||
msgid "Profile Name:"
|
||||
msgstr "Ім'я профілю:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr "Надайте KlipperScreen.log, коли звертаєтесь по допомогу.\n"
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "Портальне вирівнювання"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "Підняти сопло"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr "Відновити"
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "Відновити все"
|
||||
|
||||
@@ -542,7 +557,9 @@ msgid "Reference"
|
||||
msgstr "Довідка"
|
||||
|
||||
msgid "Refresh"
|
||||
msgstr "Оновити"
|
||||
msgstr ""
|
||||
"Перевірка\n"
|
||||
"Оновлень"
|
||||
|
||||
msgid "Restart"
|
||||
msgstr "Перезапуск"
|
||||
@@ -564,9 +581,8 @@ msgstr "Довжина втягування"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "Швидкість втягування"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "Повторіть #%s"
|
||||
msgid "Retry"
|
||||
msgstr "Повторіть спробу"
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr "Повторна спроба"
|
||||
@@ -618,6 +634,12 @@ msgstr "Налаштування"
|
||||
msgid "Show"
|
||||
msgstr "Показати"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr "Показати Потужність Нагрівача"
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr "Вимкнути"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Розмір"
|
||||
|
||||
@@ -633,12 +655,6 @@ msgstr "Слайсер:"
|
||||
msgid "Small"
|
||||
msgstr "Малий"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "Сортувати за: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "Сортувати:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "Швидкість (мм/с)"
|
||||
|
||||
@@ -681,10 +697,6 @@ msgstr "Teмп (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "Температура"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "Щоб застосувати %s, потрібно перезапустити KlipperScreen"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "Всього:"
|
||||
|
||||
@@ -704,7 +716,7 @@ msgid "Unretract Speed"
|
||||
msgstr "Швидкість повернення"
|
||||
|
||||
msgid "Up To Date"
|
||||
msgstr "Оновити"
|
||||
msgstr "Актуально"
|
||||
|
||||
msgid "Update"
|
||||
msgstr "Оновлення"
|
||||
@@ -715,27 +727,12 @@ msgstr "Оновлення"
|
||||
msgid "Uploaded"
|
||||
msgstr "Завантажено"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "Показати сітку"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "Швидкість переміщення XY (мм/с)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "Швидкість XY (мм/с)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Калібровка Z"
|
||||
|
||||
@@ -751,12 +748,6 @@ msgstr "Z Нахил"
|
||||
msgid "Z offset:"
|
||||
msgstr "Зміщення по Z:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Бебістеп Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Бебістеп Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "коментар"
|
||||
@@ -784,11 +775,68 @@ msgstr "мм/с"
|
||||
msgid "mm/s²"
|
||||
msgstr "мм/с²"
|
||||
|
||||
msgid "Auto Calibration"
|
||||
msgstr "Автоматичне калібрування"
|
||||
msgid "mm³/s"
|
||||
msgstr "мм/с³"
|
||||
|
||||
msgid "Manual Calibration"
|
||||
msgstr "Ручне калібрування"
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "Сортувати:"
|
||||
|
||||
msgid "NOTE: Edit your printer.cfg to save manual calibration changes."
|
||||
msgstr "ПРИМІТКА. Відредагуйте файл printer.cfg, щоб зберегти зміни калібрування вручну."
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "Калібрування..."
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Бебістеп Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Бебістеп Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "Повторіть #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "Додати принтер"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "Ініціалізація"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "Видалити"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "Домашня сторінка"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "Вимк"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "Показати сітку"
|
||||
|
||||
#~ msgid "Machine"
|
||||
#~ msgstr "Машина"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "Сортувати за: "
|
||||
|
||||
#~ msgid "Auto Calibration"
|
||||
#~ msgstr "Автоматичне калібрування"
|
||||
|
||||
#~ msgid "Manual Calibration"
|
||||
#~ msgstr "Ручне калібрування"
|
||||
|
||||
#~ msgid "NOTE: Edit your printer.cfg to save manual calibration changes."
|
||||
#~ msgstr ""
|
||||
#~ "ПРИМІТКА. Відредагуйте файл printer.cfg, щоб зберегти зміни калібрування "
|
||||
#~ "вручну."
|
||||
Binary file not shown.
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-07-16 23:03+0800\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-28 11:36-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -16,7 +16,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 3.0\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -46,9 +46,6 @@ msgstr "应用"
|
||||
msgid "Actions"
|
||||
msgstr "控制"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "添加打印机"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr "对Endstop应用%.2f的偏移量?"
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr "将%s%.2f的偏移量应用于探针?"
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "您确定要紧急停止吗?"
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr "已校准,保存配置后生效"
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr "校准中..."
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "设置值超出最大值:"
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr "日期"
|
||||
msgid "Decrease"
|
||||
msgstr "减少"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "删除"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr "估算剩余时间方式"
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "挤出机"
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr "隐藏温度传感器。"
|
||||
msgid "Hide temp."
|
||||
msgstr "隐藏温度。"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "首页"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "全部归零"
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr "主题风格"
|
||||
msgid "Increase"
|
||||
msgstr "增加"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "初始化"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "初始化打印机中..."
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr "接口"
|
||||
msgid "Invalid"
|
||||
msgstr "无效"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "反转X轴"
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper正在启动"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper将重新启动"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen 将重新启动"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "语言"
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr "载入耗材"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "降低喷嘴"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "显示侧边栏宏快捷方式"
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr "最大加速至减速"
|
||||
msgid "Max Velocity"
|
||||
msgstr "最大速度"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr "中"
|
||||
msgid "Menu"
|
||||
msgstr "菜单"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "修改时间"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "文件名称"
|
||||
msgid "Network"
|
||||
msgstr "网络"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
@@ -451,9 +454,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "未选择任何内容"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "关闭"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "已过时 %d"
|
||||
@@ -504,9 +504,15 @@ msgstr "打印控制"
|
||||
msgid "Print Time"
|
||||
msgstr "打印用时"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "龙门架调平"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "打印中"
|
||||
|
||||
@@ -516,12 +522,18 @@ msgstr "探头偏移"
|
||||
msgid "Profile Name:"
|
||||
msgstr "配置文件名称:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "龙门架调平"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "升高喷嘴"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "重置(Hard)"
|
||||
|
||||
@@ -552,9 +564,8 @@ msgstr "回抽长度"
|
||||
msgid "Retraction Speed"
|
||||
msgstr "回抽速度"
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "重试 #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
@@ -606,6 +617,12 @@ msgstr "设置"
|
||||
msgid "Show"
|
||||
msgstr "显示"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr "大小"
|
||||
|
||||
@@ -621,12 +638,6 @@ msgstr "切片:"
|
||||
msgid "Small"
|
||||
msgstr "小"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "排序: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr "排序:"
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "速度(mm/s)"
|
||||
|
||||
@@ -669,10 +680,6 @@ msgstr "温度 (°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "温度控制"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "要应用%s请重新启动KlipperScreen"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "总:"
|
||||
|
||||
@@ -703,27 +710,12 @@ msgstr "更新中"
|
||||
msgid "Uploaded"
|
||||
msgstr "上传时间"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "查看热床网格"
|
||||
|
||||
msgid "X+"
|
||||
msgstr ""
|
||||
|
||||
msgid "X-"
|
||||
msgstr ""
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY轴移动速度(mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr "XY轴速度(mm/s)"
|
||||
|
||||
msgid "Y+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y-"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z轴校准"
|
||||
|
||||
@@ -739,12 +731,6 @@ msgstr "Z 倾斜校准"
|
||||
msgid "Z offset:"
|
||||
msgstr "Z轴偏移:"
|
||||
|
||||
msgid "Z+"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z-"
|
||||
msgstr ""
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "更改"
|
||||
@@ -768,6 +754,40 @@ msgstr ""
|
||||
msgid "mm/s²"
|
||||
msgstr ""
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Sort:"
|
||||
#~ msgstr "排序:"
|
||||
|
||||
#~ msgid "Calibrating..."
|
||||
#~ msgstr "校准中..."
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "重试 #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "添加打印机"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "初始化"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "删除"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "首页"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "关闭"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "查看热床网格"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "排序: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch 发现应用的偏移量"
|
||||
|
||||
@@ -796,9 +816,6 @@ msgstr ""
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6 地址"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "未知加热器 "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "断开"
|
||||
|
||||
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: KlipperScreen\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-08-18 23:05-0300\n"
|
||||
"PO-Revision-Date: 2022-03-31 11:25-0300\n"
|
||||
"POT-Creation-Date: 2022-11-30 18:17-0300\n"
|
||||
"PO-Revision-Date: 2022-11-28 11:37-0300\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: zh_TW\n"
|
||||
@@ -16,7 +16,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 3.0.1\n"
|
||||
"X-Generator: Poedit 3.2.1\n"
|
||||
|
||||
#, python-format
|
||||
msgid "%s will be updated to version"
|
||||
@@ -46,9 +46,6 @@ msgstr "接受"
|
||||
msgid "Actions"
|
||||
msgstr "動作"
|
||||
|
||||
msgid "Add Printer"
|
||||
msgstr "新增列印機"
|
||||
|
||||
msgid "Add profile"
|
||||
msgstr ""
|
||||
|
||||
@@ -63,6 +60,9 @@ msgstr ""
|
||||
msgid "Apply %s%.2f offset to Probe?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure do you want to exclude the object?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Are you sure you want to run Emergency Stop?"
|
||||
msgstr "您確定要運行緊急停止嗎?"
|
||||
|
||||
@@ -111,9 +111,6 @@ msgstr "校準,保存配置以使其永久化"
|
||||
msgid "Calibrating"
|
||||
msgstr ""
|
||||
|
||||
msgid "Calibrating..."
|
||||
msgstr ""
|
||||
|
||||
msgid "Can't set above the maximum:"
|
||||
msgstr "不能設置超過最大值:"
|
||||
|
||||
@@ -178,9 +175,6 @@ msgstr "日期"
|
||||
msgid "Decrease"
|
||||
msgstr "減少"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "刪除"
|
||||
|
||||
msgid "Delete File?"
|
||||
msgstr ""
|
||||
|
||||
@@ -212,6 +206,9 @@ msgstr "預估時間方法"
|
||||
msgid "Exclude Object"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extra Large"
|
||||
msgstr ""
|
||||
|
||||
msgid "Extrude"
|
||||
msgstr "擠出機"
|
||||
|
||||
@@ -287,9 +284,6 @@ msgstr "在溫度中隱藏傳感器。"
|
||||
msgid "Hide temp."
|
||||
msgstr ""
|
||||
|
||||
msgid "Home"
|
||||
msgstr "首頁"
|
||||
|
||||
msgid "Home All"
|
||||
msgstr "歸零全部"
|
||||
|
||||
@@ -320,9 +314,6 @@ msgstr "圖標主題"
|
||||
msgid "Increase"
|
||||
msgstr "增加"
|
||||
|
||||
msgid "Initializing"
|
||||
msgstr "初始化中"
|
||||
|
||||
msgid "Initializing printer..."
|
||||
msgstr "初始化列印機中.."
|
||||
|
||||
@@ -335,6 +326,9 @@ msgstr "介面"
|
||||
msgid "Invalid"
|
||||
msgstr "無效的"
|
||||
|
||||
msgid "Invalid password"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invert X"
|
||||
msgstr "反轉 X"
|
||||
|
||||
@@ -362,6 +356,9 @@ msgstr "Klipper 正在嘗試重新啟動"
|
||||
msgid "Klipper will reboot"
|
||||
msgstr "Klipper 將重新啟動"
|
||||
|
||||
msgid "KlipperScreen will reboot"
|
||||
msgstr "KlipperScreen 將重新啟動"
|
||||
|
||||
msgid "Language"
|
||||
msgstr "語言"
|
||||
|
||||
@@ -383,9 +380,6 @@ msgstr "載入"
|
||||
msgid "Lower Nozzle"
|
||||
msgstr "降低噴嘴"
|
||||
|
||||
msgid "Machine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Macro shortcut on sidebar"
|
||||
msgstr "在側邊欄上顯示巨集快捷鍵"
|
||||
|
||||
@@ -407,6 +401,9 @@ msgstr "最大加速到減速"
|
||||
msgid "Max Velocity"
|
||||
msgstr "最大速度"
|
||||
|
||||
msgid "Maximum"
|
||||
msgstr ""
|
||||
|
||||
msgid "Measure Both"
|
||||
msgstr ""
|
||||
|
||||
@@ -422,6 +419,9 @@ msgstr "中"
|
||||
msgid "Menu"
|
||||
msgstr "選單"
|
||||
|
||||
msgid "Mesh calibrate"
|
||||
msgstr ""
|
||||
|
||||
msgid "Modified"
|
||||
msgstr "修改"
|
||||
|
||||
@@ -440,6 +440,9 @@ msgstr "名稱"
|
||||
msgid "Network"
|
||||
msgstr "網路"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
|
||||
@@ -451,9 +454,6 @@ msgstr ""
|
||||
msgid "Nothing selected"
|
||||
msgstr "未選擇任何內容"
|
||||
|
||||
msgid "Off"
|
||||
msgstr "關閉"
|
||||
|
||||
#, python-format
|
||||
msgid "Outdated by %d"
|
||||
msgstr "已過時 %d"
|
||||
@@ -504,9 +504,15 @@ msgstr "列印控制"
|
||||
msgid "Print Time"
|
||||
msgstr "列印時間"
|
||||
|
||||
msgid "Printer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printer Connections"
|
||||
msgstr "連接列印機"
|
||||
|
||||
msgid "Printer Select"
|
||||
msgstr ""
|
||||
|
||||
msgid "Printing"
|
||||
msgstr "列印中"
|
||||
|
||||
@@ -516,12 +522,18 @@ msgstr ""
|
||||
msgid "Profile Name:"
|
||||
msgstr "配置檔案名稱:"
|
||||
|
||||
msgid "Provide KlipperScreen.log when asking for help.\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Quad Gantry Level"
|
||||
msgstr "龍門調平"
|
||||
|
||||
msgid "Raise Nozzle"
|
||||
msgstr "上升噴嘴"
|
||||
|
||||
msgid "Recover"
|
||||
msgstr ""
|
||||
|
||||
msgid "Recover Hard"
|
||||
msgstr "恢復 Hard"
|
||||
|
||||
@@ -552,9 +564,8 @@ msgstr ""
|
||||
msgid "Retraction Speed"
|
||||
msgstr ""
|
||||
|
||||
#, python-format
|
||||
msgid "Retry #%s"
|
||||
msgstr "重試 #%s"
|
||||
msgid "Retry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Retrying"
|
||||
msgstr ""
|
||||
@@ -606,6 +617,12 @@ msgstr "設定"
|
||||
msgid "Show"
|
||||
msgstr "展示"
|
||||
|
||||
msgid "Show Heater Power"
|
||||
msgstr ""
|
||||
|
||||
msgid "Shutdown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr "大小"
|
||||
|
||||
@@ -621,12 +638,6 @@ msgstr ""
|
||||
msgid "Small"
|
||||
msgstr "小的"
|
||||
|
||||
msgid "Sort by: "
|
||||
msgstr "排序: "
|
||||
|
||||
msgid "Sort:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Speed (mm/s)"
|
||||
msgstr "速度(mm/s)"
|
||||
|
||||
@@ -669,10 +680,6 @@ msgstr "溫度(°C)"
|
||||
msgid "Temperature"
|
||||
msgstr "溫度"
|
||||
|
||||
#, python-format
|
||||
msgid "To apply %s KlipperScreen needs to be restarted"
|
||||
msgstr "要應用 %s,需要重新啟動 KlipperScreen"
|
||||
|
||||
msgid "Total:"
|
||||
msgstr "全部的:"
|
||||
|
||||
@@ -703,27 +710,12 @@ msgstr "更新"
|
||||
msgid "Uploaded"
|
||||
msgstr "上傳時間"
|
||||
|
||||
msgid "View Mesh"
|
||||
msgstr "檢視網格"
|
||||
|
||||
msgid "X+"
|
||||
msgstr "X+"
|
||||
|
||||
msgid "X-"
|
||||
msgstr "X-"
|
||||
|
||||
msgid "XY Move Speed (mm/s)"
|
||||
msgstr "XY 移動速度 (mm/s)"
|
||||
|
||||
msgid "XY Speed (mm/s)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Y+"
|
||||
msgstr "Y+"
|
||||
|
||||
msgid "Y-"
|
||||
msgstr "Y-"
|
||||
|
||||
msgid "Z Calibrate"
|
||||
msgstr "Z 校準"
|
||||
|
||||
@@ -739,12 +731,6 @@ msgstr "Z 傾斜"
|
||||
msgid "Z offset:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Z+"
|
||||
msgstr "Z+"
|
||||
|
||||
msgid "Z-"
|
||||
msgstr "Z-"
|
||||
|
||||
msgid "commit"
|
||||
msgid_plural "commits"
|
||||
msgstr[0] "改變"
|
||||
@@ -768,6 +754,52 @@ msgstr "mm/s"
|
||||
msgid "mm/s²"
|
||||
msgstr "mm/s²"
|
||||
|
||||
msgid "mm³/s"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Z+"
|
||||
#~ msgstr "Z+"
|
||||
|
||||
#~ msgid "Z-"
|
||||
#~ msgstr "Z-"
|
||||
|
||||
#~ msgid "X+"
|
||||
#~ msgstr "X+"
|
||||
|
||||
#~ msgid "X-"
|
||||
#~ msgstr "X-"
|
||||
|
||||
#~ msgid "Y+"
|
||||
#~ msgstr "Y+"
|
||||
|
||||
#~ msgid "Y-"
|
||||
#~ msgstr "Y-"
|
||||
|
||||
#, python-format
|
||||
#~ msgid "Retry #%s"
|
||||
#~ msgstr "重試 #%s"
|
||||
|
||||
#~ msgid "Add Printer"
|
||||
#~ msgstr "新增列印機"
|
||||
|
||||
#~ msgid "Initializing"
|
||||
#~ msgstr "初始化中"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "刪除"
|
||||
|
||||
#~ msgid "Home"
|
||||
#~ msgstr "首頁"
|
||||
|
||||
#~ msgid "Off"
|
||||
#~ msgstr "關閉"
|
||||
|
||||
#~ msgid "View Mesh"
|
||||
#~ msgstr "檢視網格"
|
||||
|
||||
#~ msgid "Sort by: "
|
||||
#~ msgstr "排序: "
|
||||
|
||||
#~ msgid "Bltouch found applied offset"
|
||||
#~ msgstr "Bltouch 發現應用的偏移量"
|
||||
|
||||
@@ -796,9 +828,6 @@ msgstr "mm/s²"
|
||||
#~ msgid "IPv6"
|
||||
#~ msgstr "IPv6"
|
||||
|
||||
#~ msgid "Unknown Heater "
|
||||
#~ msgstr "未知加熱器 "
|
||||
|
||||
#~ msgid "Disconnect"
|
||||
#~ msgstr "斷開"
|
||||
|
||||
|
||||
+96
-149
@@ -1,73 +1,45 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gdk, GLib
|
||||
from gi.repository import GLib
|
||||
|
||||
|
||||
class Printer:
|
||||
def __init__(self, printer_info, data, state_execute_cb):
|
||||
self.klipper = {"version": printer_info['software_version']}
|
||||
self.tempstore = None
|
||||
self.config = None
|
||||
def __init__(self, state_cb, state_callbacks, busy_cb):
|
||||
self.config = {}
|
||||
self.data = {}
|
||||
self.state = "disconnected"
|
||||
self.state_cb = state_execute_cb
|
||||
self.power_devices = {}
|
||||
self.store_timeout = False
|
||||
self.data = data
|
||||
self.state_cb = state_cb
|
||||
self.state_callbacks = state_callbacks
|
||||
self.devices = {}
|
||||
self.power_devices = {}
|
||||
self.state_callbacks = {
|
||||
"disconnected": None,
|
||||
"error": None,
|
||||
"paused": None,
|
||||
"printing": None,
|
||||
"ready": None,
|
||||
"startup": None,
|
||||
"shutdown": None
|
||||
}
|
||||
self.tools = []
|
||||
self.extrudercount = 0
|
||||
self.tempdevcount = 0
|
||||
self.fancount = 0
|
||||
self.output_pin_count = 0
|
||||
|
||||
def reset(self):
|
||||
GLib.source_remove(self.store_timeout)
|
||||
self.store_timeout = None
|
||||
self.state = None
|
||||
self.state_cb = None
|
||||
self.data = None
|
||||
self.devices = None
|
||||
self.power_devices = None
|
||||
self.state_callbacks = None
|
||||
self.tools = None
|
||||
self.extrudercount = None
|
||||
self.tempdevcount = None
|
||||
self.fancount = None
|
||||
self.config = None
|
||||
self.klipper = None
|
||||
self.tempstore = None
|
||||
self.output_pin_count = None
|
||||
self.tempstore = {}
|
||||
self.busy_cb = busy_cb
|
||||
self.busy = False
|
||||
self.tempstore_size = 1200
|
||||
|
||||
def reinit(self, printer_info, data):
|
||||
logging.debug(f"Moonraker object status: {data}")
|
||||
self.config = data['configfile']['config']
|
||||
self.data = data
|
||||
self.devices = {}
|
||||
self.tools = []
|
||||
self.extrudercount = 0
|
||||
self.tempdevcount = 0
|
||||
self.fancount = 0
|
||||
self.output_pin_count = 0
|
||||
self.tools = []
|
||||
self.devices = {}
|
||||
self.data = data
|
||||
self.klipper = {}
|
||||
self.tempstore = {}
|
||||
self.busy = False
|
||||
if not self.store_timeout:
|
||||
self.store_timeout = GLib.timeout_add_seconds(1, self._update_temp_store)
|
||||
|
||||
self.klipper = {
|
||||
"version": printer_info['software_version']
|
||||
}
|
||||
self.tempstore_size = 1200
|
||||
|
||||
for x in self.config.keys():
|
||||
if x[:8] == "extruder":
|
||||
@@ -84,10 +56,9 @@ class Printer:
|
||||
or x.startswith('heater_generic ') \
|
||||
or x.startswith('temperature_sensor ') \
|
||||
or x.startswith('temperature_fan '):
|
||||
self.devices[x] = {
|
||||
"temperature": 0,
|
||||
"target": 0
|
||||
}
|
||||
self.devices[x] = {"temperature": 0}
|
||||
if not x.startswith('temperature_sensor '):
|
||||
self.devices[x]["target"] = 0
|
||||
# Support for hiding devices by name
|
||||
name = x.split()[1] if len(x.split()) > 1 else x
|
||||
if not name.startswith("_"):
|
||||
@@ -100,28 +71,19 @@ class Printer:
|
||||
name = x.split()[1] if len(x.split()) > 1 else x
|
||||
if not name.startswith("_"):
|
||||
self.fancount += 1
|
||||
if x.startswith('output_pin '):
|
||||
# Support for hiding devices by name
|
||||
if not x.split()[1].startswith("_"):
|
||||
self.output_pin_count += 1
|
||||
if x.startswith('bed_mesh '):
|
||||
r = self.config[x]
|
||||
r['x_count'] = int(r['x_count'])
|
||||
r['y_count'] = int(r['y_count'])
|
||||
r['max_x'] = float(r['max_x'])
|
||||
r['min_x'] = float(r['min_x'])
|
||||
r['max_y'] = float(r['max_y'])
|
||||
r['min_y'] = float(r['min_y'])
|
||||
r['points'] = [[float(j.strip()) for j in i.split(",")] for i in r['points'].strip().split("\n")]
|
||||
if x.startswith('output_pin ') and not x.split()[1].startswith("_"):
|
||||
self.output_pin_count += 1
|
||||
self.process_update(data)
|
||||
|
||||
logging.info(f"Klipper version: {self.klipper['version']}")
|
||||
logging.info(f"Klipper version: {printer_info['software_version']}")
|
||||
logging.info(f"# Extruders: {self.extrudercount}")
|
||||
logging.info(f"# Temperature devices: {self.tempdevcount}")
|
||||
logging.info(f"# Fans: {self.fancount}")
|
||||
logging.info(f"# Output pins: {self.output_pin_count}")
|
||||
|
||||
def process_update(self, data):
|
||||
if self.data is None:
|
||||
return
|
||||
for x in (self.get_tools() + self.get_heaters() + self.get_filament_sensors()):
|
||||
if x in data:
|
||||
for i in data[x]:
|
||||
@@ -134,59 +96,46 @@ class Printer:
|
||||
self.data[x] = {}
|
||||
self.data[x].update(data[x])
|
||||
|
||||
if "webhooks" in data or "idle_timeout" in data or "print_stats" in data or "pause_resume" in data:
|
||||
self.evaluate_state()
|
||||
|
||||
def get_updates(self):
|
||||
updates = self.data.copy()
|
||||
updates.update(self.devices)
|
||||
return updates
|
||||
if "webhooks" in data or "print_stats" in data or "idle_timeout" in data:
|
||||
self.process_status_update()
|
||||
|
||||
def evaluate_state(self):
|
||||
wh_state = self.data['webhooks']['state'].lower() # possible values: startup, ready, shutdown, error
|
||||
# webhooks states: startup, ready, shutdown, error
|
||||
# print_stats: standby, printing, paused, error, complete
|
||||
# idle_timeout: Idle, Printing, Ready
|
||||
if self.data['webhooks']['state'] == "ready" and self.data['print_stats']:
|
||||
if self.data['print_stats']['state'] == 'paused':
|
||||
return "paused"
|
||||
if self.data['print_stats']['state'] == 'printing':
|
||||
return "printing"
|
||||
if self.data['idle_timeout'] and self.data['idle_timeout']['state'].lower() == "printing":
|
||||
return "busy"
|
||||
return self.data['webhooks']['state']
|
||||
|
||||
if wh_state == "ready":
|
||||
new_state = "ready"
|
||||
if self.data['pause_resume']['is_paused']:
|
||||
new_state = "paused"
|
||||
elif self.data['print_stats']:
|
||||
print_state = self.data['print_stats']['state'].lower() # complete, error, paused, printing, standby
|
||||
if print_state == "paused":
|
||||
new_state = "paused"
|
||||
if self.data['idle_timeout']:
|
||||
idle_state = self.data['idle_timeout']['state'].lower() # idle, printing, ready
|
||||
if idle_state == "printing":
|
||||
if print_state == "complete":
|
||||
new_state = "ready"
|
||||
elif print_state != "printing": # Not printing a file, toolhead moving
|
||||
new_state = "busy"
|
||||
else:
|
||||
new_state = "printing"
|
||||
|
||||
if new_state != "busy":
|
||||
self.change_state(new_state)
|
||||
else:
|
||||
self.change_state(wh_state)
|
||||
def process_status_update(self):
|
||||
state = self.evaluate_state()
|
||||
if state == "busy":
|
||||
self.busy = True
|
||||
return GLib.idle_add(self.busy_cb, True)
|
||||
if self.busy:
|
||||
self.busy = False
|
||||
GLib.idle_add(self.busy_cb, False)
|
||||
if state != self.state:
|
||||
self.change_state(state)
|
||||
|
||||
def process_power_update(self, data):
|
||||
if data['device'] in self.power_devices:
|
||||
self.power_devices[data['device']]['status'] = data['status']
|
||||
|
||||
def change_state(self, state):
|
||||
if state == self.state or state not in list(self.state_callbacks):
|
||||
return
|
||||
|
||||
logging.debug(f"Changing state from '{self.state}' to '{state}'")
|
||||
prev_state = self.state
|
||||
self.state = state
|
||||
if state not in list(self.state_callbacks):
|
||||
return # disconnected, startup, ready, shutdown, error, paused, printing
|
||||
if state != self.state:
|
||||
logging.debug(f"Changing state from '{self.state}' to '{state}'")
|
||||
self.state = state
|
||||
if self.state_callbacks[state] is not None:
|
||||
logging.debug(f"Adding callback for state: {state}")
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_HIGH_IDLE,
|
||||
self.state_cb,
|
||||
self.state_callbacks[state],
|
||||
prev_state
|
||||
)
|
||||
GLib.idle_add(self.state_cb, self.state_callbacks[state])
|
||||
|
||||
def configure_power_devices(self, data):
|
||||
self.power_devices = {}
|
||||
@@ -206,8 +155,15 @@ class Printer:
|
||||
def get_config_section(self, section):
|
||||
return self.config[section] if section in self.config else False
|
||||
|
||||
def get_data(self):
|
||||
return self.data
|
||||
def get_macro(self, macro):
|
||||
return next(
|
||||
(
|
||||
self.config[key]
|
||||
for key in self.config.keys()
|
||||
if key.find(macro) > -1
|
||||
),
|
||||
False,
|
||||
)
|
||||
|
||||
def get_fans(self):
|
||||
fans = []
|
||||
@@ -221,7 +177,6 @@ class Printer:
|
||||
def get_output_pins(self):
|
||||
output_pins = []
|
||||
output_pins.extend(iter(self.get_config_section_list("output_pin ")))
|
||||
logging.debug(f"{output_pins}")
|
||||
return output_pins
|
||||
|
||||
def get_gcode_macros(self):
|
||||
@@ -241,6 +196,14 @@ class Printer:
|
||||
sensors.extend(iter(self.get_config_section_list("filament_motion_sensor ")))
|
||||
return sensors
|
||||
|
||||
def get_probe(self):
|
||||
probe_types = ["probe", "bltouch", "smart_effector", "dockable_probe"]
|
||||
for probe_type in probe_types:
|
||||
if self.config_section_exists(probe_type):
|
||||
logging.info(f"Probe type: {probe_type}")
|
||||
return self.get_config_section(probe_type)
|
||||
return None
|
||||
|
||||
def get_printer_status_data(self):
|
||||
data = {
|
||||
"printer": {
|
||||
@@ -266,9 +229,6 @@ class Printer:
|
||||
|
||||
return data
|
||||
|
||||
def get_klipper_version(self):
|
||||
return self.klipper['version']
|
||||
|
||||
def get_power_devices(self):
|
||||
return list(self.power_devices)
|
||||
|
||||
@@ -284,30 +244,17 @@ class Printer:
|
||||
return self.data[stat][substat] if substat in self.data[stat] else {}
|
||||
return self.data[stat]
|
||||
|
||||
def get_state(self):
|
||||
return self.state
|
||||
|
||||
def set_dev_temps(self, dev, temp, target=None, power=None):
|
||||
if dev in self.devices:
|
||||
self.devices[dev]['temperature'] = temp
|
||||
if target is not None:
|
||||
self.devices[dev]['target'] = target
|
||||
if power is not None:
|
||||
self.devices[dev]['power'] = power
|
||||
|
||||
def get_dev_stats(self, dev):
|
||||
return self.devices[dev] if dev in self.devices else None
|
||||
|
||||
def get_dev_stat(self, dev, stat):
|
||||
if dev in self.devices and stat in self.devices[dev]:
|
||||
return self.devices[dev][stat]
|
||||
return None
|
||||
|
||||
def get_fan_speed(self, fan="fan", speed=None):
|
||||
def get_fan_speed(self, fan="fan"):
|
||||
speed = 0
|
||||
if fan not in self.config or fan not in self.data:
|
||||
logging.debug(f"Error getting {fan} config")
|
||||
return speed if speed is not None else 0
|
||||
if speed is None and "speed" in self.data[fan]:
|
||||
return speed
|
||||
if "speed" in self.data[fan]:
|
||||
speed = self.data[fan]["speed"]
|
||||
if 'max_power' in self.config[fan]:
|
||||
max_power = float(self.config[fan]['max_power'])
|
||||
@@ -326,15 +273,12 @@ class Printer:
|
||||
return self.config[pin]["value"]
|
||||
return 0
|
||||
|
||||
def get_extruder_count(self):
|
||||
return self.extrudercount
|
||||
|
||||
def get_temp_store_devices(self):
|
||||
if self.tempstore is not None:
|
||||
return list(self.tempstore)
|
||||
|
||||
def get_temp_store_device_has_target(self, device):
|
||||
return device in self.tempstore and "targets" in self.tempstore[device]
|
||||
def device_has_target(self, device):
|
||||
return "target" in self.devices[device] or (device in self.tempstore and "targets" in self.tempstore[device])
|
||||
|
||||
def get_temp_store(self, device, section=False, results=0):
|
||||
if device not in self.tempstore:
|
||||
@@ -364,23 +308,25 @@ class Printer:
|
||||
if "heater_bed" in self.devices:
|
||||
return True
|
||||
|
||||
def init_temp_store(self, result):
|
||||
for dev in result:
|
||||
self.tempstore[dev] = {}
|
||||
if "targets" in result[dev]:
|
||||
self.tempstore[dev]["targets"] = result[dev]["targets"]
|
||||
if "temperatures" in result[dev]:
|
||||
self.tempstore[dev]["temperatures"] = result[dev]["temperatures"]
|
||||
logging.info(f"Temp store: {list(self.tempstore)}")
|
||||
def init_temp_store(self, tempstore):
|
||||
if tempstore and 'result' in tempstore:
|
||||
if self.tempstore and list(self.tempstore) != list(tempstore['result']):
|
||||
logging.debug("Tempstore has changed")
|
||||
self.tempstore = tempstore['result']
|
||||
self.change_state(self.state)
|
||||
else:
|
||||
self.tempstore = tempstore['result']
|
||||
for device in self.tempstore:
|
||||
for x in self.tempstore[device]:
|
||||
length = len(self.tempstore[device][x])
|
||||
if length < self.tempstore_size:
|
||||
for i in range(1, self.tempstore_size - length):
|
||||
self.tempstore[device][x].insert(0, 0)
|
||||
logging.info(f"Temp store: {list(self.tempstore)}")
|
||||
|
||||
def config_section_exists(self, section):
|
||||
return section in self.get_config_section_list()
|
||||
|
||||
def set_callbacks(self, callbacks):
|
||||
for name, cb in callbacks.items():
|
||||
if name in list(self.state_callbacks):
|
||||
self.state_callbacks[name] = cb
|
||||
|
||||
def set_dev_stat(self, dev, stat, value):
|
||||
if dev not in self.devices:
|
||||
return
|
||||
@@ -388,12 +334,13 @@ class Printer:
|
||||
self.devices[dev][stat] = value
|
||||
|
||||
def _update_temp_store(self):
|
||||
if self.tempstore is None:
|
||||
return False
|
||||
for device in self.tempstore:
|
||||
for x in self.tempstore[device]:
|
||||
if len(self.tempstore[device][x]) >= 1200:
|
||||
self.tempstore[device][x].pop(0)
|
||||
self.tempstore[device][x].pop(0)
|
||||
temp = self.get_dev_stat(device, x[:-1])
|
||||
if temp is None:
|
||||
temp = 0
|
||||
self.tempstore[device][x].append(round(temp, 2))
|
||||
self.tempstore[device][x].append(temp)
|
||||
return True
|
||||
+44
-67
@@ -1,109 +1,69 @@
|
||||
import gi
|
||||
import logging
|
||||
import datetime
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
from ks_includes.KlippyGcodes import KlippyGcodes
|
||||
|
||||
|
||||
class ScreenPanel:
|
||||
_screen = None
|
||||
_config = None
|
||||
_files = None
|
||||
_printer = None
|
||||
_gtk = None
|
||||
ks_printer_cfg = None
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
def __init__(self, screen, title):
|
||||
self.menu = None
|
||||
self._screen = screen
|
||||
self._config = screen._config
|
||||
self._files = screen.files
|
||||
self.lang = self._screen.lang
|
||||
self._printer = screen.printer
|
||||
ScreenPanel._screen = screen
|
||||
ScreenPanel._config = screen._config
|
||||
ScreenPanel._files = screen.files
|
||||
ScreenPanel._printer = screen.printer
|
||||
ScreenPanel._gtk = screen.gtk
|
||||
self.labels = {}
|
||||
self._gtk = screen.gtk
|
||||
self.control = {}
|
||||
self.title = title
|
||||
self.devices = {}
|
||||
self.active_heaters = []
|
||||
|
||||
self.layout = Gtk.Layout()
|
||||
self.layout.set_size(self._screen.width, self._screen.height)
|
||||
|
||||
self.content = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.content.get_style_context().add_class("content")
|
||||
self.content.set_hexpand(True)
|
||||
self.content.set_vexpand(True)
|
||||
|
||||
self._show_heater_power = self._config.get_main_config().getboolean('show_heater_power', False)
|
||||
self.bts = self._gtk.bsidescale
|
||||
|
||||
def initialize(self, panel_name):
|
||||
# Create gtk items here
|
||||
return
|
||||
self.update_dialog = None
|
||||
|
||||
def _autoscroll(self, scroll, *args):
|
||||
adj = scroll.get_vadjustment()
|
||||
adj.set_value(adj.get_upper() - adj.get_page_size())
|
||||
|
||||
def emergency_stop(self, widget):
|
||||
|
||||
if self._config.get_main_config().getboolean('confirm_estop', False):
|
||||
self._screen._confirm_send_action(widget, _("Are you sure you want to run Emergency Stop?"),
|
||||
"printer.emergency_stop")
|
||||
else:
|
||||
self._screen._ws.klippy.emergency_stop()
|
||||
|
||||
def get(self):
|
||||
return self.layout
|
||||
|
||||
def get_content(self):
|
||||
return self.content
|
||||
|
||||
def get_file_image(self, filename, width=1, height=1, small=False):
|
||||
def get_file_image(self, filename, width=None, height=None, small=False):
|
||||
if not self._files.has_thumbnail(filename):
|
||||
return None
|
||||
|
||||
loc = self._files.get_thumbnail_location(filename, small)
|
||||
if loc is None:
|
||||
return None
|
||||
width = width if width is not None else self._gtk.img_width
|
||||
height = height if height is not None else self._gtk.img_height
|
||||
if loc[0] == "file":
|
||||
return self._gtk.PixbufFromFile(loc[1], width, height)
|
||||
if loc[0] == "http":
|
||||
return self._gtk.PixbufFromHttp(loc[1], width, height)
|
||||
return None
|
||||
|
||||
def get_title(self):
|
||||
return self.title
|
||||
|
||||
def home(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
|
||||
def homexy(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME_XY)
|
||||
|
||||
def z_tilt(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.Z_TILT)
|
||||
|
||||
def quad_gantry_level(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.QUAD_GANTRY_LEVEL)
|
||||
|
||||
def menu_item_clicked(self, widget, panel, item):
|
||||
logging.info(f"### Creating panel {item['panel']} : {panel} {item}")
|
||||
if "items" in item:
|
||||
self._screen.show_panel(f'{self._screen._cur_panels[-1]}_{panel}',
|
||||
item['panel'], item['name'], 1, False, items=item['items'])
|
||||
return
|
||||
self._screen.show_panel(f'{self._screen._cur_panels[-1]}_{panel}', item['panel'], item['name'], 1, False)
|
||||
self._screen.show_panel(panel, item['panel'], item['name'], 1, False)
|
||||
|
||||
def menu_return(self, widget, home=False):
|
||||
if home is False:
|
||||
self._screen._menu_go_back()
|
||||
return
|
||||
self._screen._menu_go_home()
|
||||
|
||||
def set_title(self, title):
|
||||
self.title = title
|
||||
|
||||
def show_all(self):
|
||||
self._screen.show_all()
|
||||
|
||||
def update_image_text(self, label, text):
|
||||
if label in self.labels and 'l' in self.labels[label]:
|
||||
self.labels[label]['l'].set_text(text)
|
||||
|
||||
def load_menu(self, widget, name):
|
||||
def load_menu(self, widget, name, title=None):
|
||||
if f"{name}_menu" not in self.labels:
|
||||
return
|
||||
|
||||
@@ -113,12 +73,14 @@ class ScreenPanel:
|
||||
self.menu.append(f'{name}_menu')
|
||||
self.content.add(self.labels[self.menu[-1]])
|
||||
self.content.show_all()
|
||||
if title:
|
||||
self._screen.base_panel.set_title(f"{self.title} | {title}")
|
||||
|
||||
def unload_menu(self, widget=None):
|
||||
logging.debug(f"self.menu: {self.menu}")
|
||||
if len(self.menu) <= 1 or self.menu[-2] not in self.labels:
|
||||
return
|
||||
|
||||
self._screen.base_panel.set_title(self._screen.panels[self._screen._cur_panels[-1]].title)
|
||||
self.menu.pop()
|
||||
for child in self.content.get_children():
|
||||
self.content.remove(child)
|
||||
@@ -156,7 +118,6 @@ class ScreenPanel:
|
||||
def format_time(seconds):
|
||||
if seconds is None or seconds <= 0:
|
||||
return "-"
|
||||
seconds = int(seconds)
|
||||
days = seconds // 86400
|
||||
seconds %= 86400
|
||||
hours = seconds // 3600
|
||||
@@ -168,6 +129,22 @@ class ScreenPanel:
|
||||
f"{f'{minutes:2.0f}m ' if minutes > 0 else ''}" \
|
||||
f"{f'{seconds:2.0f}s' if days == 0 and hours == 0 and minutes == 0 else ''}"
|
||||
|
||||
def format_eta(self, total, elapsed):
|
||||
if total is None:
|
||||
return "-"
|
||||
seconds = total - elapsed
|
||||
if seconds <= 0:
|
||||
return "-"
|
||||
days = seconds // 86400
|
||||
seconds %= 86400
|
||||
hours = seconds // 3600
|
||||
seconds %= 3600
|
||||
minutes = seconds // 60
|
||||
eta = datetime.datetime.now() + datetime.timedelta(days=days, hours=hours, minutes=minutes)
|
||||
if self._config.get_main_config().getboolean("24htime", True):
|
||||
return f"{self.format_time(total - elapsed)} | {eta:%H:%M} {f' +{days:2.0f}d' if days > 0 else ''}"
|
||||
return f"{self.format_time(total - elapsed)} | {eta:%I:%M %p} {f' +{days:2.0f}d' if days > 0 else ''}"
|
||||
|
||||
@staticmethod
|
||||
def format_size(size):
|
||||
size = float(size)
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
|
||||
class BedMap(Gtk.DrawingArea):
|
||||
def __init__(self, font_size, bm):
|
||||
super().__init__()
|
||||
self.set_hexpand(True)
|
||||
self.set_vexpand(True)
|
||||
self.connect('draw', self.draw_graph)
|
||||
self.font_size = font_size
|
||||
self.font_spacing = round(self.font_size * 1.5)
|
||||
self.bm = list(reversed(bm)) if bm is not None else None
|
||||
|
||||
def update_bm(self, bm):
|
||||
self.bm = list(reversed(bm)) if bm is not None else None
|
||||
|
||||
def draw_graph(self, da, ctx):
|
||||
width = da.get_allocated_width()
|
||||
height = da.get_allocated_height()
|
||||
# Styling
|
||||
ctx.set_line_width(1)
|
||||
ctx.set_font_size(self.font_size)
|
||||
|
||||
if self.bm is None:
|
||||
ctx.move_to(self.font_spacing, height / 2)
|
||||
ctx.set_source_rgb(0.5, 0.5, 0.5)
|
||||
ctx.show_text(_("No mesh has been loaded"))
|
||||
ctx.stroke()
|
||||
return
|
||||
|
||||
rows = len(self.bm)
|
||||
columns = len(self.bm[0])
|
||||
for i, row in enumerate(self.bm):
|
||||
ty = height / rows * i
|
||||
by = ty + height / rows
|
||||
for j, column in enumerate(row):
|
||||
lx = width / columns * j
|
||||
rx = lx + width / columns
|
||||
# Colors
|
||||
ctx.set_source_rgb(*self.colorbar(column))
|
||||
ctx.move_to(lx, ty)
|
||||
ctx.line_to(lx, by)
|
||||
ctx.line_to(rx, by)
|
||||
ctx.line_to(rx, ty)
|
||||
ctx.close_path()
|
||||
ctx.fill()
|
||||
ctx.stroke()
|
||||
if rows > 16 or columns > 8:
|
||||
continue
|
||||
# Numbers
|
||||
ctx.set_source_rgb(0, 0, 0)
|
||||
if column > 0:
|
||||
ctx.move_to((lx + rx) / 2 - self.font_size, (ty + by + self.font_size) / 2)
|
||||
else:
|
||||
ctx.move_to((lx + rx) / 2 - self.font_size * 1.2, (ty + by + self.font_size) / 2)
|
||||
ctx.show_text(f"{column:.2f}")
|
||||
ctx.stroke()
|
||||
|
||||
@staticmethod
|
||||
def colorbar(value):
|
||||
rmax = 0.25
|
||||
color = min(1, max(0, 1 - 1 / rmax * abs(value)))
|
||||
if value > 0:
|
||||
return [1, color, color]
|
||||
if value < 0:
|
||||
return [color, color, 1]
|
||||
return [1, 1, 1]
|
||||
@@ -1,8 +1,9 @@
|
||||
import datetime
|
||||
import gi
|
||||
import logging
|
||||
import math
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gdk, Gtk
|
||||
|
||||
@@ -33,7 +34,6 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
"fill": fill,
|
||||
"rgb": rgb
|
||||
}})
|
||||
self.max_length = max(self.max_length, len(self.printer.get_temp_store(name, ev_type)))
|
||||
|
||||
@staticmethod
|
||||
def event_cb(da, ev):
|
||||
@@ -47,9 +47,15 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
for name in self.store if "temperatures" in self.store[name])
|
||||
|
||||
def get_max_num(self, data_points=0):
|
||||
mnum = []
|
||||
for x in self.store:
|
||||
mnum.extend(max(self.printer.get_temp_store(x, t, data_points)) for t in self.store[x] if t != "show")
|
||||
mnum = [0]
|
||||
for device in self.store:
|
||||
if self.store[device]['show']:
|
||||
temp = self.printer.get_temp_store(device, "temperatures", data_points)
|
||||
if temp:
|
||||
mnum.append(max(temp))
|
||||
target = self.printer.get_temp_store(device, "targets", data_points)
|
||||
if target:
|
||||
mnum.append(max(target))
|
||||
return max(mnum)
|
||||
|
||||
def draw_graph(self, da, ctx):
|
||||
@@ -85,6 +91,8 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
points_per_pixel = self.max_length / graph_width
|
||||
data_points = int(round(graph_width * points_per_pixel, 0))
|
||||
max_num = math.ceil(self.get_max_num(data_points) * 1.1 / 10) * 10
|
||||
if points_per_pixel == 0:
|
||||
return
|
||||
d_width = 1 / points_per_pixel
|
||||
|
||||
d_height_scale = self.graph_lines(ctx, gsize, max_num)
|
||||
@@ -181,7 +189,7 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
ctx.set_font_size(self.font_size)
|
||||
ctx.show_text(f"{h:2}:{m:02}")
|
||||
ctx.stroke()
|
||||
i += 1 if self.max_length < 600 else 2
|
||||
i += 1 + self.max_length // 601
|
||||
|
||||
def is_showing(self, device):
|
||||
return False if device not in self.store else self.store[device]['show']
|
||||
+119
-38
@@ -1,3 +1,6 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
@@ -5,63 +8,139 @@ from gi.repository import Gtk, GLib
|
||||
|
||||
|
||||
class Keyboard(Gtk.Box):
|
||||
langs = ["de", "en", "fr", "es"]
|
||||
|
||||
def __init__(self, screen, close_cb, entry=None):
|
||||
super().__init__(orientation=Gtk.Orientation.VERTICAL)
|
||||
_ = screen.lang.gettext
|
||||
self._gtk = screen.gtk
|
||||
self.close_cb = close_cb
|
||||
self.keyboard = Gtk.Grid()
|
||||
self.keyboard.set_direction(Gtk.TextDirection.LTR)
|
||||
self.timeout = self.clear_timeout = None
|
||||
self.entry = entry
|
||||
|
||||
self.keys = [
|
||||
[["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "'"],
|
||||
["ABC", "z", "x", "c", "v", "b", "n", "m", ",", ".", "?123"],
|
||||
["✕", " ", "✔"]
|
||||
],
|
||||
[["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L", "'"],
|
||||
["?123", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "abc"],
|
||||
["✕", " ", "✔"]
|
||||
],
|
||||
[["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["=", "-", "+", "*", "/", "\\", ":", ";", "'", "\""],
|
||||
["abc", "(", ")", "#", "$", "!", "?", "@", "_", ",", "ABC"],
|
||||
["✕", " ", "✔"]
|
||||
]
|
||||
]
|
||||
language = self.detect_language(screen._config.get_main_config().get("language", None))
|
||||
logging.info(f"Keyboard {language}")
|
||||
|
||||
self.labels = self.keys.copy()
|
||||
if language == "de":
|
||||
self.keys = [
|
||||
[
|
||||
["q", "w", "e", "r", "t", "z", "u", "i", "o", "p", "ü", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "ö", "ä"],
|
||||
["ABC", "123", "#+=", "y", "x", "c", "v", "b", "n", "m"],
|
||||
],
|
||||
[
|
||||
["Q", "W", "E", "R", "T", "Z", "U", "I", "O", "P", "Ü", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L", "Ö", "Ä"],
|
||||
["abc", "123", "#+=", "Y", "X", "C", "V", "B", "N", "M"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "ß", "⌫"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\"", "ẞ"],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
elif language == "fr":
|
||||
self.keys = [
|
||||
[
|
||||
["a", "z", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["q", "s", "d", "f", "g", "h", "j", "k", "l", "m"],
|
||||
["ABC", "123", "#+=", "w", "x", "c", "v", "b", "n"],
|
||||
],
|
||||
[
|
||||
["A", "Z", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["Q", "S", "D", "F", "G", "H", "J", "K", "L", "M"],
|
||||
["abc", "123", "#+=", "W", "X", "C", "V", "B", "N"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\""],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
else:
|
||||
self.keys = [
|
||||
[
|
||||
["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l"],
|
||||
["ABC", "123", "#+=", "z", "x", "c", "v", "b", "n", "m"],
|
||||
],
|
||||
[
|
||||
["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L"],
|
||||
["abc", "123", "#+=", "Z", "X", "C", "V", "B", "N", "M"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\""],
|
||||
["ABC", "abc", "#+=", ".", ",", "?", "!", "'"],
|
||||
],
|
||||
[
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["ABC", "abc", "123", ".", ",", "?", "!", "'"],
|
||||
]
|
||||
]
|
||||
|
||||
if language == "es":
|
||||
self.keys[0][1].append("ñ")
|
||||
self.keys[1][1].append("Ñ")
|
||||
|
||||
for pallet in self.keys:
|
||||
pallet.append(["✕", " ", "✔"])
|
||||
|
||||
self.buttons = self.keys.copy()
|
||||
for p, pallet in enumerate(self.keys):
|
||||
for r, row in enumerate(pallet):
|
||||
for k, key in enumerate(row):
|
||||
self.labels[p][r][k] = self._gtk.Button(key)
|
||||
self.labels[p][r][k].set_hexpand(True)
|
||||
self.labels[p][r][k].set_vexpand(True)
|
||||
self.labels[p][r][k].connect('button-press-event', self.repeat, key)
|
||||
self.labels[p][r][k].connect('button-release-event', self.release)
|
||||
self.labels[p][r][k].get_style_context().add_class("keyboard_pad")
|
||||
if key == "⌫":
|
||||
self.buttons[p][r][k] = screen.gtk.Button("backspace", scale=.6)
|
||||
elif key == "✕":
|
||||
self.buttons[p][r][k] = screen.gtk.Button("cancel", scale=.6)
|
||||
elif key == "✔":
|
||||
self.buttons[p][r][k] = screen.gtk.Button("complete", scale=.6)
|
||||
else:
|
||||
self.buttons[p][r][k] = screen.gtk.Button(label=key, lines=1)
|
||||
self.buttons[p][r][k].set_hexpand(True)
|
||||
self.buttons[p][r][k].set_vexpand(True)
|
||||
self.buttons[p][r][k].connect('button-press-event', self.repeat, key)
|
||||
self.buttons[p][r][k].connect('button-release-event', self.release)
|
||||
self.buttons[p][r][k].get_style_context().add_class("keyboard_pad")
|
||||
|
||||
self.pallet_nr = 0
|
||||
self.set_pallet(self.pallet_nr)
|
||||
self.add(self.keyboard)
|
||||
|
||||
def detect_language(self, language):
|
||||
if language is None or language == "system_lang":
|
||||
for language in self.langs:
|
||||
if os.getenv('LANG').lower().startswith(language):
|
||||
return language
|
||||
for _ in self.langs:
|
||||
if language.startswith(_):
|
||||
return _
|
||||
return "en"
|
||||
|
||||
def set_pallet(self, p):
|
||||
pallet = self.keys[p]
|
||||
span = 2
|
||||
for r, row in enumerate(pallet[:-1]):
|
||||
for _ in range(len(self.keys[self.pallet_nr]) + 1):
|
||||
self.keyboard.remove_row(0)
|
||||
self.pallet_nr = p
|
||||
for r, row in enumerate(self.keys[p][:-1]):
|
||||
for k, key in enumerate(row):
|
||||
x = k * 2 + 1 if r == 1 else k * 2
|
||||
old = self.keyboard.get_child_at(x, r)
|
||||
if old:
|
||||
self.keyboard.remove(old)
|
||||
self.keyboard.attach(self.labels[p][r][k], x, r, span, 1)
|
||||
if not self.keyboard.get_child_at(0, 4):
|
||||
self.keyboard.attach(self.labels[p][3][0], 0, 4, 3, 1)
|
||||
self.keyboard.attach(self.labels[p][3][1], 3, 4, 16, 1)
|
||||
self.keyboard.attach(self.labels[p][3][2], 19, 4, 3, 1)
|
||||
self.keyboard.attach(self.buttons[p][r][k], x, r, 2, 1)
|
||||
self.keyboard.attach(self.buttons[p][3][0], 0, 4, 3, 1) # ✕
|
||||
self.keyboard.attach(self.buttons[p][3][1], 3, 4, 16, 1) # Space
|
||||
self.keyboard.attach(self.buttons[p][3][2], 19, 4, 3, 1) # ✔
|
||||
self.show_all()
|
||||
|
||||
def repeat(self, widget, event, key):
|
||||
@@ -104,7 +183,9 @@ class Keyboard(Gtk.Box):
|
||||
self.set_pallet(0)
|
||||
elif key == "ABC":
|
||||
self.set_pallet(1)
|
||||
elif key == "?123":
|
||||
elif key == "123":
|
||||
self.set_pallet(2)
|
||||
elif key == "#+=":
|
||||
self.set_pallet(3)
|
||||
else:
|
||||
Gtk.Entry.do_insert_at_cursor(self.entry, key)
|
||||
@@ -8,7 +8,6 @@ class Keypad(Gtk.Box):
|
||||
def __init__(self, screen, change_temp, close_function):
|
||||
super().__init__(orientation=Gtk.Orientation.VERTICAL)
|
||||
|
||||
_ = screen.lang.gettext
|
||||
self.labels = {}
|
||||
self.change_temp = change_temp
|
||||
self.screen = screen
|
||||
@@ -35,11 +34,11 @@ class Keypad(Gtk.Box):
|
||||
for i in range(len(keys)):
|
||||
k_id = f'button_{str(keys[i][0])}'
|
||||
if keys[i][0] == "B":
|
||||
self.labels[k_id] = self._gtk.ButtonImage("backspace", scale=1)
|
||||
self.labels[k_id] = self._gtk.Button("backspace", scale=1)
|
||||
elif keys[i][0] == "E":
|
||||
self.labels[k_id] = self._gtk.ButtonImage("complete", scale=1)
|
||||
self.labels[k_id] = self._gtk.Button("complete", scale=1)
|
||||
else:
|
||||
self.labels[k_id] = Gtk.Button(keys[i][0])
|
||||
self.labels[k_id] = Gtk.Button(label=keys[i][0])
|
||||
self.labels[k_id].connect('clicked', self.update_entry, keys[i][0])
|
||||
self.labels[k_id].get_style_context().add_class(keys[i][1])
|
||||
numpad.attach(self.labels[k_id], i % 3, i / 3, 1, 1)
|
||||
@@ -49,7 +48,7 @@ class Keypad(Gtk.Box):
|
||||
self.labels['entry'].props.xalign = 0.5
|
||||
self.labels['entry'].connect("activate", self.update_entry, "E")
|
||||
|
||||
b = self._gtk.ButtonImage('cancel', _('Close'), None, .66, Gtk.PositionType.LEFT, 1)
|
||||
b = self._gtk.Button('cancel', _('Close'), None, .66, Gtk.PositionType.LEFT, 1)
|
||||
b.connect("clicked", close_function)
|
||||
|
||||
self.add(self.labels['entry'])
|
||||
|
||||
+17
-46
@@ -3,46 +3,38 @@ import logging
|
||||
import re
|
||||
import socket
|
||||
import threading
|
||||
|
||||
from threading import Thread
|
||||
|
||||
from queue import Queue
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import GLib, Gdk
|
||||
from gi.repository import GLib
|
||||
|
||||
|
||||
class WifiManager:
|
||||
networks_in_supplicant = []
|
||||
connected = False
|
||||
_stop_loop = False
|
||||
thread = None
|
||||
|
||||
def __init__(self, interface, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.loop = None
|
||||
self._poll_task = None
|
||||
self._scanning = False
|
||||
self._callbacks = {
|
||||
"connected": [],
|
||||
"connecting_status": [],
|
||||
"scan_results": []
|
||||
"scan_results": [],
|
||||
"popup": [],
|
||||
}
|
||||
self._stop_loop = False
|
||||
self.connected = False
|
||||
self.connected_ssid = None
|
||||
self.connecting_info = []
|
||||
self.event = threading.Event()
|
||||
self.initialized = False
|
||||
self.interface = interface
|
||||
self.networks = {}
|
||||
self.supplicant_networks = {}
|
||||
self.queue = Queue()
|
||||
self.tasks = []
|
||||
self.timeout = None
|
||||
self.scan_time = 0
|
||||
|
||||
ks_socket_file = "/tmp/.KS_wpa_supplicant"
|
||||
if os.path.exists(ks_socket_file):
|
||||
@@ -103,10 +95,7 @@ class WifiManager:
|
||||
def callback(self, cb_type, msg):
|
||||
if cb_type in self._callbacks:
|
||||
for cb in self._callbacks[cb_type]:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_DEFAULT_IDLE,
|
||||
cb,
|
||||
msg)
|
||||
GLib.idle_add(cb, msg)
|
||||
|
||||
def connect(self, ssid):
|
||||
netid = None
|
||||
@@ -120,8 +109,8 @@ class WifiManager:
|
||||
return False
|
||||
|
||||
logging.info(f"Attempting to connect to wifi: {netid}")
|
||||
self.connecting_info = [f"Attempting to connect to {ssid}"]
|
||||
self.wpa_cli(f"SELECT_NETWORK {id}")
|
||||
self.callback("connecting_status", f"Attempting to connect to {ssid}")
|
||||
self.wpa_cli(f"SELECT_NETWORK {netid}")
|
||||
self.save_wpa_conf()
|
||||
|
||||
def delete_network(self, ssid):
|
||||
@@ -164,9 +153,8 @@ class WifiManager:
|
||||
self.networks[ssid]['connected'] = ssid == con_ssid
|
||||
if prev_ssid != self.connected_ssid:
|
||||
for cb in self._callbacks['connected']:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_DEFAULT_IDLE,
|
||||
cb, self.connected_ssid, prev_ssid)
|
||||
args = self.connected_ssid, prev_ssid
|
||||
GLib.idle_add(cb, *args)
|
||||
return [con_ssid, con_bssid]
|
||||
elif "ssid" in variables and "bssid" in variables:
|
||||
self.connected = True
|
||||
@@ -175,9 +163,8 @@ class WifiManager:
|
||||
self.networks[ssid]['connected'] = ssid == variables['ssid']
|
||||
if prev_ssid != self.connected_ssid:
|
||||
for cb in self._callbacks['connected']:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_DEFAULT_IDLE,
|
||||
cb, self.connected_ssid, prev_ssid)
|
||||
args = self.connected_ssid, prev_ssid
|
||||
GLib.idle_add(cb, *args)
|
||||
return [variables['ssid'], variables['bssid']]
|
||||
else:
|
||||
logging.info("Resetting connected_ssid")
|
||||
@@ -187,9 +174,8 @@ class WifiManager:
|
||||
self.networks[ssid]['connected'] = False
|
||||
if prev_ssid != self.connected_ssid:
|
||||
for cb in self._callbacks['connected']:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_DEFAULT_IDLE,
|
||||
cb, self.connected_ssid, prev_ssid)
|
||||
args = self.connected_ssid, prev_ssid
|
||||
GLib.idle_add(cb, *args)
|
||||
return None
|
||||
|
||||
def get_current_wifi_idle_add(self):
|
||||
@@ -203,7 +189,7 @@ class WifiManager:
|
||||
for net in self.networks:
|
||||
if mac == net['mac']:
|
||||
return net
|
||||
return None
|
||||
return {}
|
||||
|
||||
def get_networks(self):
|
||||
return list(self.networks)
|
||||
@@ -211,12 +197,6 @@ class WifiManager:
|
||||
def get_supplicant_networks(self):
|
||||
return self.supplicant_networks
|
||||
|
||||
def is_connected(self):
|
||||
return self.connected
|
||||
|
||||
def is_initialized(self):
|
||||
return self.initialized
|
||||
|
||||
def read_wpa_supplicant(self):
|
||||
results = self.wpa_cli("LIST_NETWORKS").split('\n')
|
||||
results.pop(0)
|
||||
@@ -230,13 +210,8 @@ class WifiManager:
|
||||
}
|
||||
self.networks_in_supplicant.append(self.supplicant_networks[net[0]])
|
||||
|
||||
def remove_callback(self, name, callback):
|
||||
if name in self._callbacks and callback in self._callbacks[name]:
|
||||
self._callbacks[name].remove(callback)
|
||||
|
||||
def rescan(self):
|
||||
self.wpa_cli("SCAN", False)
|
||||
return True
|
||||
|
||||
def save_wpa_conf(self):
|
||||
logging.info("Saving WPA config")
|
||||
@@ -289,9 +264,8 @@ class WifiManager:
|
||||
new_networks.append(net)
|
||||
if new_networks or deleted_networks:
|
||||
for cb in self._callbacks['scan_results']:
|
||||
Gdk.threads_add_idle(
|
||||
GLib.PRIORITY_DEFAULT_IDLE,
|
||||
cb, new_networks, deleted_networks)
|
||||
args = new_networks, deleted_networks
|
||||
GLib.idle_add(cb, *args)
|
||||
|
||||
def wpa_cli(self, command, wait=True):
|
||||
if wait is False:
|
||||
@@ -326,7 +300,7 @@ class WpaSocket(Thread):
|
||||
continue
|
||||
if msg.startswith("<"):
|
||||
if "CTRL-EVENT-SCAN-RESULTS" in msg:
|
||||
Gdk.threads_add_idle(GLib.PRIORITY_DEFAULT_IDLE, self.wm.scan_results)
|
||||
GLib.idle_add(self.wm.scan_results)
|
||||
elif "CTRL-EVENT-DISCONNECTED" in msg:
|
||||
self.callback("connecting_status", msg)
|
||||
match = re.match('<3>CTRL-EVENT-DISCONNECTED bssid=(\\S+) reason=3 locally_generated=1', msg)
|
||||
@@ -338,7 +312,7 @@ class WpaSocket(Thread):
|
||||
elif "Trying to associate" in msg or "CTRL-EVENT-REGDOM-CHANGE" in msg:
|
||||
self.callback("connecting_status", msg)
|
||||
elif "CTRL-EVENT-CONNECTED" in msg:
|
||||
Gdk.threads_add_idle(GLib.PRIORITY_DEFAULT_IDLE, self.wm.get_current_wifi_idle_add)
|
||||
GLib.idle_add(self.wm.get_current_wifi_idle_add)
|
||||
self.callback("connecting_status", msg)
|
||||
elif self.skip_commands > 0:
|
||||
self.skip_commands = self.skip_commands - 1
|
||||
@@ -349,9 +323,6 @@ class WpaSocket(Thread):
|
||||
def skip_command(self):
|
||||
self.skip_commands = self.skip_commands + 1
|
||||
|
||||
def stop(self):
|
||||
self._stop_loop = True
|
||||
|
||||
|
||||
class WifiChannels:
|
||||
@staticmethod
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
# Network in KlipperScreen is a connection in NetworkManager
|
||||
# Interface in KlipperScreen is a device in NetworkManager
|
||||
|
||||
import contextlib
|
||||
import logging
|
||||
import uuid
|
||||
|
||||
from ks_includes import NetworkManager
|
||||
import dbus
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
import gi
|
||||
|
||||
gi.require_version('Gdk', '3.0')
|
||||
from gi.repository import GLib
|
||||
|
||||
from ks_includes.wifi import WifiChannels
|
||||
|
||||
|
||||
class WifiManager:
|
||||
networks_in_supplicant = []
|
||||
|
||||
def __init__(self, interface_name, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
DBusGMainLoop(set_as_default=True)
|
||||
self._callbacks = {
|
||||
"connected": [],
|
||||
"connecting_status": [],
|
||||
"scan_results": [],
|
||||
"popup": [],
|
||||
}
|
||||
self.connected = False
|
||||
self.connected_ssid = None
|
||||
self.interface_name = interface_name
|
||||
self.known_networks = {} # List of known connections
|
||||
self.visible_networks = {} # List of visible access points
|
||||
self.ssid_by_path = {}
|
||||
self.path_by_ssid = {}
|
||||
self.hidden_ssid_index = 0
|
||||
|
||||
self.wifi_dev = NetworkManager.NetworkManager.GetDeviceByIpIface(interface_name)
|
||||
self.wifi_dev.OnAccessPointAdded(self._ap_added)
|
||||
self.wifi_dev.OnAccessPointRemoved(self._ap_removed)
|
||||
self.wifi_dev.OnStateChanged(self._ap_state_changed)
|
||||
|
||||
for ap in self.wifi_dev.GetAccessPoints():
|
||||
self._add_ap(ap)
|
||||
self._update_known_connections()
|
||||
self.initialized = True
|
||||
|
||||
def _update_known_connections(self):
|
||||
self.known_networks = {}
|
||||
for con in NetworkManager.Settings.ListConnections():
|
||||
settings = con.GetSettings()
|
||||
if "802-11-wireless" in settings:
|
||||
ssid = settings["802-11-wireless"]['ssid']
|
||||
self.known_networks[ssid] = con
|
||||
|
||||
def _ap_added(self, nm, interface, signal, access_point):
|
||||
with contextlib.suppress(NetworkManager.ObjectVanished):
|
||||
access_point.OnPropertiesChanged(self._ap_prop_changed)
|
||||
ssid = self._add_ap(access_point)
|
||||
for cb in self._callbacks['scan_results']:
|
||||
args = (cb, [ssid], [])
|
||||
GLib.idle_add(*args)
|
||||
|
||||
def _ap_removed(self, dev, interface, signal, access_point):
|
||||
path = access_point.object_path
|
||||
if path in self.ssid_by_path:
|
||||
ssid = self.ssid_by_path[path]
|
||||
self._remove_ap(path)
|
||||
for cb in self._callbacks['scan_results']:
|
||||
args = (cb, [ssid], [])
|
||||
GLib.idle_add(*args)
|
||||
|
||||
def _ap_state_changed(self, nm, interface, signal, old_state, new_state, reason):
|
||||
msg = ""
|
||||
if new_state in (NetworkManager.NM_DEVICE_STATE_UNKNOWN, NetworkManager.NM_DEVICE_STATE_REASON_UNKNOWN):
|
||||
msg = "State is unknown"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_UNMANAGED:
|
||||
msg = "Error: Not managed by NetworkManager"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_UNAVAILABLE:
|
||||
msg = "Error: Not available for use:\nReasons may include the wireless switched off, missing firmware, etc."
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_DISCONNECTED:
|
||||
msg = "Currently disconnected"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_PREPARE:
|
||||
msg = "Preparing the connection to the network"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_CONFIG:
|
||||
msg = "Connecting to the requested network..."
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_NEED_AUTH:
|
||||
msg = "Authorizing"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_IP_CONFIG:
|
||||
msg = "Requesting IP addresses and routing information"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_IP_CHECK:
|
||||
msg = "Checking whether further action is required for the requested network connection"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_SECONDARIES:
|
||||
msg = "Waiting for a secondary connection (like a VPN)"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_ACTIVATED:
|
||||
msg = "Connected"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_DEACTIVATING:
|
||||
msg = "A disconnection from the current network connection was requested"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_FAILED:
|
||||
msg = "Failed to connect to the requested network"
|
||||
self.callback("popup", msg)
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_REASON_DEPENDENCY_FAILED:
|
||||
msg = "A dependency of the connection failed"
|
||||
elif new_state == NetworkManager.NM_DEVICE_STATE_REASON_CARRIER:
|
||||
msg = ""
|
||||
else:
|
||||
logging.info(f"State {new_state}")
|
||||
if msg != "":
|
||||
self.callback("connecting_status", msg)
|
||||
|
||||
if new_state == NetworkManager.NM_DEVICE_STATE_ACTIVATED:
|
||||
self.connected = True
|
||||
for cb in self._callbacks['connected']:
|
||||
args = (cb, self.get_connected_ssid(), None)
|
||||
GLib.idle_add(*args)
|
||||
else:
|
||||
self.connected = False
|
||||
|
||||
def _ap_prop_changed(self, ap, interface, signal, properties):
|
||||
pass
|
||||
|
||||
def _add_ap(self, ap):
|
||||
ssid = ap.Ssid
|
||||
if ssid == "":
|
||||
ssid = _("Hidden") + f" {self.hidden_ssid_index}"
|
||||
self.hidden_ssid_index += 1
|
||||
self.ssid_by_path[ap.object_path] = ssid
|
||||
self.path_by_ssid[ssid] = ap.object_path
|
||||
self.visible_networks[ap.object_path] = ap
|
||||
return ssid
|
||||
|
||||
def _remove_ap(self, path):
|
||||
self.ssid_by_path.pop(path, None)
|
||||
self.visible_networks.pop(path, None)
|
||||
|
||||
def add_callback(self, name, callback):
|
||||
if name in self._callbacks and callback not in self._callbacks[name]:
|
||||
self._callbacks[name].append(callback)
|
||||
|
||||
def callback(self, cb_type, msg):
|
||||
if cb_type in self._callbacks:
|
||||
for cb in self._callbacks[cb_type]:
|
||||
GLib.idle_add(cb, msg)
|
||||
|
||||
def add_network(self, ssid, psk):
|
||||
aps = self._visible_networks_by_ssid()
|
||||
if ssid in aps:
|
||||
ap = aps[ssid]
|
||||
new_connection = {
|
||||
'802-11-wireless': {
|
||||
'mode': 'infrastructure',
|
||||
'security': '802-11-wireless-security',
|
||||
'ssid': ssid
|
||||
},
|
||||
'802-11-wireless-security': {
|
||||
'auth-alg': 'open',
|
||||
'key-mgmt': 'wpa-psk',
|
||||
'psk': psk
|
||||
},
|
||||
'connection': {
|
||||
'id': ssid,
|
||||
'type': '802-11-wireless',
|
||||
'uuid': str(uuid.uuid4())
|
||||
},
|
||||
'ipv4': {
|
||||
'method': 'auto'
|
||||
},
|
||||
'ipv6': {
|
||||
'method': 'auto'
|
||||
}
|
||||
}
|
||||
try:
|
||||
NetworkManager.Settings.AddConnection(new_connection)
|
||||
except dbus.exceptions.DBusException as e:
|
||||
msg = _("Invalid password") if "802-11-wireless-security.psk" in e else f"{e}"
|
||||
self.callback("popup", msg)
|
||||
logging.info(f"Error adding network {e}")
|
||||
self._update_known_connections()
|
||||
return True
|
||||
|
||||
def connect(self, ssid):
|
||||
if ssid in self.known_networks:
|
||||
conn = self.known_networks[ssid]
|
||||
with contextlib.suppress(NetworkManager.ObjectVanished):
|
||||
msg = f"Connecting to: {ssid}"
|
||||
logging.info(msg)
|
||||
self.callback("connecting_status", msg)
|
||||
NetworkManager.NetworkManager.ActivateConnection(conn, self.wifi_dev, "/")
|
||||
|
||||
def delete_network(self, ssid):
|
||||
for ssid in self.known_networks:
|
||||
con = self.known_networks[ssid]
|
||||
if con.GetSettings()['connection']['id'] == ssid:
|
||||
con.Delete()
|
||||
self._update_known_connections()
|
||||
|
||||
def get_connected_ssid(self):
|
||||
if self.wifi_dev.SpecificDevice().ActiveAccessPoint:
|
||||
return self.wifi_dev.SpecificDevice().ActiveAccessPoint.Ssid
|
||||
return None
|
||||
|
||||
def _get_connected_ap(self):
|
||||
return self.wifi_dev.SpecificDevice().ActiveAccessPoint
|
||||
|
||||
def _visible_networks_by_ssid(self):
|
||||
aps = self.wifi_dev.GetAccessPoints()
|
||||
ret = {}
|
||||
for ap in aps:
|
||||
with contextlib.suppress(NetworkManager.ObjectVanished):
|
||||
ret[ap.Ssid] = ap
|
||||
return ret
|
||||
|
||||
def get_network_info(self, ssid):
|
||||
netinfo = {}
|
||||
if ssid in self.known_networks:
|
||||
con = self.known_networks[ssid]
|
||||
with contextlib.suppress(NetworkManager.ObjectVanished):
|
||||
settings = con.GetSettings()
|
||||
if settings and '802-11-wireless' in settings:
|
||||
netinfo.update({
|
||||
"ssid": settings['802-11-wireless']['ssid'],
|
||||
"connected": self.get_connected_ssid() == ssid
|
||||
})
|
||||
path = self.path_by_ssid[ssid]
|
||||
aps = self.visible_networks
|
||||
if path in aps:
|
||||
ap = aps[path]
|
||||
with contextlib.suppress(NetworkManager.ObjectVanished):
|
||||
netinfo.update({
|
||||
"mac": ap.HwAddress,
|
||||
"channel": WifiChannels.lookup(str(ap.Frequency))[1],
|
||||
"configured": ssid in self.known_networks,
|
||||
"frequency": str(ap.Frequency),
|
||||
"flags": ap.Flags,
|
||||
"ssid": ssid,
|
||||
"connected": self._get_connected_ap() == ap,
|
||||
"encryption": self._get_encryption(ap.RsnFlags),
|
||||
"signal_level_dBm": str(ap.Strength)
|
||||
})
|
||||
return netinfo
|
||||
|
||||
@staticmethod
|
||||
def _get_encryption(flags):
|
||||
encryption = ""
|
||||
if (flags & NetworkManager.NM_802_11_AP_SEC_PAIR_WEP40 or
|
||||
flags & NetworkManager.NM_802_11_AP_SEC_PAIR_WEP104 or
|
||||
flags & NetworkManager.NM_802_11_AP_SEC_GROUP_WEP40 or
|
||||
flags & NetworkManager.NM_802_11_AP_SEC_GROUP_WEP104):
|
||||
encryption += "WEP "
|
||||
if (flags & NetworkManager.NM_802_11_AP_SEC_PAIR_TKIP or
|
||||
flags & NetworkManager.NM_802_11_AP_SEC_GROUP_TKIP):
|
||||
encryption += "TKIP "
|
||||
if (flags & NetworkManager.NM_802_11_AP_SEC_PAIR_CCMP or
|
||||
flags & NetworkManager.NM_802_11_AP_SEC_GROUP_CCMP):
|
||||
encryption += "AES "
|
||||
if flags & NetworkManager.NM_802_11_AP_SEC_KEY_MGMT_PSK:
|
||||
encryption += "WPA-PSK "
|
||||
if flags & NetworkManager.NM_802_11_AP_SEC_KEY_MGMT_802_1X:
|
||||
encryption += "802.1x "
|
||||
return encryption.strip()
|
||||
|
||||
def get_networks(self):
|
||||
return list(set(list(self.known_networks.keys()) + list(self.ssid_by_path.values())))
|
||||
|
||||
def get_supplicant_networks(self):
|
||||
return {ssid: {"ssid": ssid} for ssid in self.known_networks.keys()}
|
||||
|
||||
def rescan(self):
|
||||
try:
|
||||
self.wifi_dev.RequestScan({})
|
||||
except dbus.exceptions.DBusException as e:
|
||||
logging.error(f"Error during rescan {e}")
|
||||
+178
-125
@@ -1,47 +1,50 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import contextlib
|
||||
import datetime
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import GLib, Gtk, Pango
|
||||
from jinja2 import Environment
|
||||
from datetime import datetime
|
||||
from math import log
|
||||
|
||||
from ks_includes.screen_panel import ScreenPanel
|
||||
|
||||
|
||||
class BasePanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.current_panel = None
|
||||
self.time_min = -1
|
||||
self.time_format = self._config.get_main_config().getboolean("24htime", True)
|
||||
self.time_update = None
|
||||
self.titlebar_items = []
|
||||
self.titlebar_name_type = None
|
||||
self.buttons_showing = {
|
||||
'back': not back,
|
||||
'macros_shortcut': False,
|
||||
'printer_select': False
|
||||
'printer_select': len(self._config.get_printers()) > 1,
|
||||
}
|
||||
self.current_extruder = None
|
||||
# Action bar buttons
|
||||
self.control['back'] = self._gtk.ButtonImage('back', scale=1)
|
||||
abscale = self.bts * 1.1
|
||||
self.control['back'] = self._gtk.Button('back', scale=abscale)
|
||||
self.control['back'].connect("clicked", self.back)
|
||||
self.control['home'] = self._gtk.ButtonImage('main', scale=1)
|
||||
self.control['home'].connect("clicked", self.menu_return, True)
|
||||
self.control['home'] = self._gtk.Button('main', scale=abscale)
|
||||
self.control['home'].connect("clicked", self._screen._menu_go_back, True)
|
||||
|
||||
if len(self._config.get_printers()) > 1:
|
||||
self.control['printer_select'] = self._gtk.ButtonImage('shuffle', scale=1)
|
||||
self.control['printer_select'] = self._gtk.Button('shuffle', scale=abscale)
|
||||
self.control['printer_select'].connect("clicked", self._screen.show_printer_select)
|
||||
|
||||
self.control['macros_shortcut'] = self._gtk.ButtonImage('custom-script', scale=1)
|
||||
self.control['macros_shortcut'] = self._gtk.Button('custom-script', scale=abscale)
|
||||
self.control['macros_shortcut'].connect("clicked", self.menu_item_clicked, "gcode_macros", {
|
||||
"name": "Macros",
|
||||
"panel": "gcode_macros"
|
||||
})
|
||||
|
||||
self.control['estop'] = self._gtk.ButtonImage('emergency', scale=1)
|
||||
self.control['estop'] = self._gtk.Button('emergency', scale=abscale)
|
||||
self.control['estop'].connect("clicked", self.emergency_stop)
|
||||
|
||||
# Any action bar button should close the keyboard
|
||||
@@ -53,19 +56,19 @@ class BasePanel(ScreenPanel):
|
||||
if self._screen.vertical_mode:
|
||||
self.action_bar.set_hexpand(True)
|
||||
self.action_bar.set_vexpand(False)
|
||||
self.action_bar.set_size_request(0, self._gtk.get_action_bar_height())
|
||||
else:
|
||||
self.action_bar.set_hexpand(False)
|
||||
self.action_bar.set_vexpand(True)
|
||||
self.action_bar.set_size_request(self._gtk.get_action_bar_width(), 0)
|
||||
|
||||
self.action_bar.get_style_context().add_class('action_bar')
|
||||
self.action_bar.set_size_request(self._gtk.action_bar_width, self._gtk.action_bar_height)
|
||||
self.action_bar.add(self.control['back'])
|
||||
self.action_bar.add(self.control['home'])
|
||||
if len(self._config.get_printers()) > 1:
|
||||
self.show_back(False)
|
||||
if self.buttons_showing['printer_select']:
|
||||
self.action_bar.add(self.control['printer_select'])
|
||||
self.action_bar.add(self.control['macros_shortcut'])
|
||||
self.show_macro_shortcut(self._config.get_main_config().getboolean('side_macro_shortcut', True))
|
||||
self.action_bar.add(self.control['estop'])
|
||||
self.show_estop(False)
|
||||
|
||||
# Titlebar
|
||||
|
||||
@@ -81,10 +84,10 @@ class BasePanel(ScreenPanel):
|
||||
self.control['time'] = Gtk.Label("00:00 AM")
|
||||
self.control['time_box'] = Gtk.Box()
|
||||
self.control['time_box'].set_halign(Gtk.Align.END)
|
||||
self.control['time_box'].pack_end(self.control['time'], True, True, 5)
|
||||
self.control['time_box'].pack_end(self.control['time'], True, True, 10)
|
||||
|
||||
self.titlebar = Gtk.Box(spacing=5)
|
||||
self.titlebar.set_size_request(0, self._gtk.get_titlebar_height())
|
||||
self.titlebar.get_style_context().add_class("title_bar")
|
||||
self.titlebar.set_valign(Gtk.Align.CENTER)
|
||||
self.titlebar.add(self.control['temp_box'])
|
||||
self.titlebar.add(self.titlelbl)
|
||||
@@ -92,9 +95,6 @@ class BasePanel(ScreenPanel):
|
||||
|
||||
# Main layout
|
||||
self.main_grid = Gtk.Grid()
|
||||
# To achieve rezisability this needs to be removed
|
||||
# The main issue is that currently the content doesn't expand correctly
|
||||
self.main_grid.set_size_request(self._screen.width, self._screen.height)
|
||||
|
||||
if self._screen.vertical_mode:
|
||||
self.main_grid.attach(self.titlebar, 0, 0, 1, 1)
|
||||
@@ -107,101 +107,82 @@ class BasePanel(ScreenPanel):
|
||||
self.main_grid.attach(self.titlebar, 1, 0, 1, 1)
|
||||
self.main_grid.attach(self.content, 1, 1, 1, 1)
|
||||
|
||||
# Layout is and content are on screen_panel
|
||||
self.layout.add(self.main_grid)
|
||||
|
||||
def initialize(self, panel_name):
|
||||
self.update_time()
|
||||
return
|
||||
|
||||
def show_heaters(self, show=True):
|
||||
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
|
||||
if printer_cfg is not None:
|
||||
self.titlebar_name_type = printer_cfg.get("titlebar_name_type", None)
|
||||
else:
|
||||
self.titlebar_name_type = None
|
||||
logging.info(f"Titlebar name type: {self.titlebar_name_type}")
|
||||
try:
|
||||
for child in self.control['temp_box'].get_children():
|
||||
self.control['temp_box'].remove(child)
|
||||
if not show or self._printer.get_temp_store_devices() is None:
|
||||
return
|
||||
|
||||
for child in self.control['temp_box'].get_children():
|
||||
self.control['temp_box'].remove(child)
|
||||
img_size = self._gtk.img_scale * self.bts
|
||||
for device in self._printer.get_temp_store_devices():
|
||||
self.labels[device] = Gtk.Label(label="100º")
|
||||
self.labels[device].set_ellipsize(Pango.EllipsizeMode.START)
|
||||
|
||||
if not show or self._screen.printer.get_temp_store_devices() is None:
|
||||
return
|
||||
self.labels[f'{device}_box'] = Gtk.Box()
|
||||
icon = self.get_icon(device, img_size)
|
||||
if icon is not None:
|
||||
self.labels[f'{device}_box'].pack_start(icon, False, False, 3)
|
||||
self.labels[f'{device}_box'].pack_start(self.labels[device], False, False, 0)
|
||||
|
||||
for device in self._screen.printer.get_temp_store_devices():
|
||||
if device.startswith("extruder"):
|
||||
if self._screen.printer.extrudercount > 1:
|
||||
if device == "extruder":
|
||||
icon = self._gtk.Image("extruder-0", .5)
|
||||
else:
|
||||
icon = self._gtk.Image(f"extruder-{device[8:]}", .5)
|
||||
else:
|
||||
icon = self._gtk.Image("extruder", .5)
|
||||
elif device.startswith("heater_bed"):
|
||||
icon = self._gtk.Image("bed", .5)
|
||||
# Extra items
|
||||
elif self.titlebar_name_type is not None:
|
||||
# The item has a name, do not use an icon
|
||||
icon = None
|
||||
elif device.startswith("temperature_fan"):
|
||||
icon = self._gtk.Image("fan", .5)
|
||||
elif device.startswith("heater_generic"):
|
||||
icon = self._gtk.Image("heater", .5)
|
||||
else:
|
||||
icon = self._gtk.Image("heat-up", .5)
|
||||
# Limit the number of items according to resolution
|
||||
nlimit = int(round(log(self._screen.width, 10) * 5 - 10.5))
|
||||
|
||||
self.labels[device] = Gtk.Label(label="100º")
|
||||
self.labels[device].set_ellipsize(Pango.EllipsizeMode.START)
|
||||
n = 0
|
||||
if self._printer.get_tools():
|
||||
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
|
||||
if self.current_extruder and f"{self.current_extruder}_box" in self.labels:
|
||||
self.control['temp_box'].add(self.labels[f"{self.current_extruder}_box"])
|
||||
n += 1
|
||||
|
||||
self.labels[f'{device}_box'] = Gtk.Box()
|
||||
if icon is not None:
|
||||
self.labels[f'{device}_box'].pack_start(icon, False, False, 3)
|
||||
self.labels[f'{device}_box'].pack_start(self.labels[device], False, False, 0)
|
||||
|
||||
# Limit the number of items according to resolution
|
||||
if self._screen.width <= 480:
|
||||
nlimit = 3
|
||||
elif self._screen.width <= 800:
|
||||
nlimit = 4
|
||||
else:
|
||||
nlimit = 5
|
||||
|
||||
n = 0
|
||||
if self._screen.printer.get_tools():
|
||||
self.current_extruder = self._screen.printer.get_stat("toolhead", "extruder")
|
||||
if self.current_extruder:
|
||||
self.control['temp_box'].add(self.labels[f"{self.current_extruder}_box"])
|
||||
if self._printer.has_heated_bed():
|
||||
self.control['temp_box'].add(self.labels['heater_bed_box'])
|
||||
n += 1
|
||||
|
||||
if self._screen.printer.has_heated_bed():
|
||||
self.control['temp_box'].add(self.labels['heater_bed_box'])
|
||||
n += 1
|
||||
|
||||
# Options in the config have priority
|
||||
if printer_cfg is not None:
|
||||
titlebar_items = printer_cfg.get("titlebar_items", None)
|
||||
if titlebar_items is not None:
|
||||
titlebar_items = [str(i.strip()) for i in titlebar_items.split(',')]
|
||||
logging.info(f"Titlebar items: {titlebar_items}")
|
||||
for device in self._screen.printer.get_temp_store_devices():
|
||||
# Users can fill the bar if they want
|
||||
if n >= nlimit + 1:
|
||||
# Options in the config have priority
|
||||
for device in self._printer.get_temp_store_devices():
|
||||
# Users can fill the bar if they want
|
||||
if n >= nlimit + 1:
|
||||
break
|
||||
name = device.split()[1] if len(device.split()) > 1 else device
|
||||
for item in self.titlebar_items:
|
||||
if name == item:
|
||||
self.control['temp_box'].add(self.labels[f"{device}_box"])
|
||||
n += 1
|
||||
break
|
||||
name = device.split()[1] if len(device.split()) > 1 else device
|
||||
for item in titlebar_items:
|
||||
if name == item:
|
||||
self.control['temp_box'].add(self.labels[f"{device}_box"])
|
||||
n += 1
|
||||
break
|
||||
|
||||
# If there is enough space fill with heater_generic
|
||||
for device in self._screen.printer.get_temp_store_devices():
|
||||
if n >= nlimit:
|
||||
break
|
||||
if device.startswith("heater_generic"):
|
||||
self.control['temp_box'].add(self.labels[f"{device}_box"])
|
||||
n += 1
|
||||
self.control['temp_box'].show_all()
|
||||
# If there is enough space fill with heater_generic
|
||||
for device in self._printer.get_temp_store_devices():
|
||||
if n >= nlimit:
|
||||
break
|
||||
if device.startswith("heater_generic"):
|
||||
self.control['temp_box'].add(self.labels[f"{device}_box"])
|
||||
n += 1
|
||||
self.control['temp_box'].show_all()
|
||||
except Exception as e:
|
||||
logging.debug(f"Couldn't create heaters box: {e}")
|
||||
|
||||
def get_icon(self, device, img_size):
|
||||
if device.startswith("extruder"):
|
||||
if self._printer.extrudercount > 1:
|
||||
if device == "extruder":
|
||||
device = "extruder0"
|
||||
return self._gtk.Image(f"extruder-{device[8:]}", img_size, img_size)
|
||||
return self._gtk.Image("extruder", img_size, img_size)
|
||||
elif device.startswith("heater_bed"):
|
||||
return self._gtk.Image("bed", img_size, img_size)
|
||||
# Extra items
|
||||
elif self.titlebar_name_type is not None:
|
||||
# The item has a name, do not use an icon
|
||||
return None
|
||||
elif device.startswith("temperature_fan"):
|
||||
return self._gtk.Image("fan", img_size, img_size)
|
||||
elif device.startswith("heater_generic"):
|
||||
return self._gtk.Image("heater", img_size, img_size)
|
||||
else:
|
||||
return self._gtk.Image("heat-up", img_size, img_size)
|
||||
|
||||
def activate(self):
|
||||
if self.time_update is None:
|
||||
@@ -209,10 +190,10 @@ class BasePanel(ScreenPanel):
|
||||
|
||||
def add_content(self, panel):
|
||||
self.current_panel = panel
|
||||
self.set_title(panel.get_title())
|
||||
self.content.add(panel.get_content())
|
||||
self.set_title(panel.title)
|
||||
self.content.add(panel.content)
|
||||
|
||||
def back(self, widget):
|
||||
def back(self, widget=None):
|
||||
if self.current_panel is None:
|
||||
return
|
||||
|
||||
@@ -224,13 +205,32 @@ class BasePanel(ScreenPanel):
|
||||
self._screen._menu_go_back()
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_update_response":
|
||||
if self.update_dialog is None:
|
||||
self.show_update_dialog()
|
||||
with contextlib.suppress(KeyError):
|
||||
self.labels['update_progress'].set_text(
|
||||
f"{self.labels['update_progress'].get_text().strip()}\n"
|
||||
f"{data['message']}\n")
|
||||
with contextlib.suppress(KeyError):
|
||||
if data['complete']:
|
||||
logging.info("Update complete")
|
||||
if self.update_dialog is not None:
|
||||
try:
|
||||
self.update_dialog.set_response_sensitive(Gtk.ResponseType.OK, True)
|
||||
self.update_dialog.get_widget_for_response(Gtk.ResponseType.OK).show()
|
||||
except AttributeError:
|
||||
logging.error("error trying to show the updater button the dialog might be closed")
|
||||
self._screen.updating = False
|
||||
for dialog in self._screen.dialogs:
|
||||
self._gtk.remove_dialog(dialog)
|
||||
|
||||
if action != "notify_status_update" or self._screen.printer is None:
|
||||
return
|
||||
|
||||
devices = self._screen.printer.get_temp_store_devices()
|
||||
devices = self._printer.get_temp_store_devices()
|
||||
if devices is not None:
|
||||
for device in devices:
|
||||
temp = self._screen.printer.get_dev_stat(device, "temperature")
|
||||
temp = self._printer.get_dev_stat(device, "temperature")
|
||||
if temp is not None and device in self.labels:
|
||||
name = ""
|
||||
if not (device.startswith("extruder") or device.startswith("heater_bed")):
|
||||
@@ -242,7 +242,7 @@ class BasePanel(ScreenPanel):
|
||||
name = f"{name[:1].upper()}: "
|
||||
self.labels[device].set_label(f"{name}{int(temp)}°")
|
||||
|
||||
with contextlib.suppress(KeyError):
|
||||
with contextlib.suppress(Exception):
|
||||
if data["toolhead"]["extruder"] != self.current_extruder:
|
||||
self.control['temp_box'].remove(self.labels[f"{self.current_extruder}_box"])
|
||||
self.current_extruder = data["toolhead"]["extruder"]
|
||||
@@ -254,14 +254,12 @@ class BasePanel(ScreenPanel):
|
||||
self.content.remove(widget)
|
||||
|
||||
def show_back(self, show=True):
|
||||
if show is True and self.buttons_showing['back'] is False:
|
||||
if show:
|
||||
self.control['back'].set_sensitive(True)
|
||||
self.control['home'].set_sensitive(True)
|
||||
self.buttons_showing['back'] = True
|
||||
elif show is False and self.buttons_showing['back'] is True:
|
||||
self.control['back'].set_sensitive(False)
|
||||
self.control['home'].set_sensitive(False)
|
||||
self.buttons_showing['back'] = False
|
||||
return
|
||||
self.control['back'].set_sensitive(False)
|
||||
self.control['home'].set_sensitive(False)
|
||||
|
||||
def show_macro_shortcut(self, show=True):
|
||||
if show is True and self.buttons_showing['macros_shortcut'] is False:
|
||||
@@ -270,28 +268,29 @@ class BasePanel(ScreenPanel):
|
||||
self.action_bar.reorder_child(self.control['macros_shortcut'], 2)
|
||||
else:
|
||||
self.action_bar.reorder_child(self.control['macros_shortcut'], 3)
|
||||
self.control['macros_shortcut'].show()
|
||||
self.buttons_showing['macros_shortcut'] = True
|
||||
elif show is False and self.buttons_showing['macros_shortcut'] is True:
|
||||
self.action_bar.remove(self.control['macros_shortcut'])
|
||||
self.buttons_showing['macros_shortcut'] = False
|
||||
self._screen.show_all()
|
||||
|
||||
def show_printer_select(self, show=True):
|
||||
if len(self._config.get_printers()) <= 1:
|
||||
return
|
||||
if show and self.buttons_showing['printer_select'] is False:
|
||||
self.action_bar.add(self.control['printer_select'])
|
||||
self.action_bar.reorder_child(self.control['printer_select'], 2)
|
||||
self.buttons_showing['printer_select'] = True
|
||||
self.control['printer_select'].show()
|
||||
elif show is False and self.buttons_showing['printer_select']:
|
||||
self.action_bar.remove(self.control['printer_select'])
|
||||
self.buttons_showing['printer_select'] = False
|
||||
self._screen.show_all()
|
||||
|
||||
def set_title(self, title):
|
||||
if not title:
|
||||
self.titlelbl.set_label(f"{self._screen.connecting_to_printer}")
|
||||
return
|
||||
try:
|
||||
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
|
||||
env.install_gettext_translations(self.lang)
|
||||
env.install_gettext_translations(self._config.get_lang())
|
||||
j2_temp = env.from_string(title)
|
||||
title = j2_temp.render()
|
||||
except Exception as e:
|
||||
@@ -300,11 +299,65 @@ class BasePanel(ScreenPanel):
|
||||
self.titlelbl.set_label(f"{self._screen.connecting_to_printer} | {title}")
|
||||
|
||||
def update_time(self):
|
||||
now = datetime.datetime.now()
|
||||
now = datetime.now()
|
||||
confopt = self._config.get_main_config().getboolean("24htime", True)
|
||||
if now.minute != self.time_min or self.time_format != confopt:
|
||||
if confopt:
|
||||
self.control['time'].set_text(f'{now:%H:%M}')
|
||||
self.control['time'].set_text(f'{now:%H:%M }')
|
||||
else:
|
||||
self.control['time'].set_text(f'{now:%I:%M %p}')
|
||||
self.time_min = now.minute
|
||||
self.time_format = confopt
|
||||
return True
|
||||
|
||||
def show_estop(self, show=True):
|
||||
if show:
|
||||
self.control['estop'].set_sensitive(True)
|
||||
return
|
||||
self.control['estop'].set_sensitive(False)
|
||||
|
||||
def set_ks_printer_cfg(self, printer):
|
||||
ScreenPanel.ks_printer_cfg = self._config.get_printer_config(printer)
|
||||
if self.ks_printer_cfg is not None:
|
||||
self.titlebar_name_type = self.ks_printer_cfg.get("titlebar_name_type", None)
|
||||
titlebar_items = self.ks_printer_cfg.get("titlebar_items", None)
|
||||
if titlebar_items is not None:
|
||||
self.titlebar_items = [str(i.strip()) for i in titlebar_items.split(',')]
|
||||
logging.info(f"Titlebar name type: {self.titlebar_name_type} items: {self.titlebar_items}")
|
||||
else:
|
||||
self.titlebar_items = []
|
||||
|
||||
def show_update_dialog(self):
|
||||
if self.update_dialog is not None:
|
||||
return
|
||||
button = [{"name": _("Finish"), "response": Gtk.ResponseType.OK}]
|
||||
self.labels['update_progress'] = Gtk.Label()
|
||||
self.labels['update_progress'].set_halign(Gtk.Align.START)
|
||||
self.labels['update_progress'].set_valign(Gtk.Align.START)
|
||||
self.labels['update_progress'].set_ellipsize(Pango.EllipsizeMode.END)
|
||||
self.labels['update_scroll'] = self._gtk.ScrolledWindow()
|
||||
self.labels['update_scroll'].set_property("overlay-scrolling", True)
|
||||
self.labels['update_scroll'].add(self.labels['update_progress'])
|
||||
self.labels['update_scroll'].connect("size-allocate", self._autoscroll)
|
||||
dialog = self._gtk.Dialog(self._screen, button, self.labels['update_scroll'], self.finish_updating)
|
||||
dialog.connect("delete-event", self.close_update_dialog)
|
||||
dialog.set_response_sensitive(Gtk.ResponseType.OK, False)
|
||||
dialog.get_widget_for_response(Gtk.ResponseType.OK).hide()
|
||||
dialog.set_title(_("Updating"))
|
||||
self.update_dialog = dialog
|
||||
self._screen.updating = True
|
||||
|
||||
def finish_updating(self, dialog, response_id):
|
||||
if response_id != Gtk.ResponseType.OK:
|
||||
return
|
||||
logging.info("Finishing update")
|
||||
self._screen.updating = False
|
||||
self._gtk.remove_dialog(dialog)
|
||||
self._screen._menu_go_back(home=True)
|
||||
|
||||
def close_update_dialog(self, *args):
|
||||
logging.info("Closing update dialog")
|
||||
if self.update_dialog in self._screen.dialogs:
|
||||
self._screen.dialogs.remove(self.update_dialog)
|
||||
self.update_dialog = None
|
||||
self._screen._menu_go_back(home=True)
|
||||
+192
-149
@@ -1,6 +1,8 @@
|
||||
import gi
|
||||
import logging
|
||||
import re
|
||||
import math
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
@@ -13,43 +15,66 @@ def create_panel(*args):
|
||||
return BedLevelPanel(*args)
|
||||
|
||||
|
||||
# Find the screw closest to the point,
|
||||
# but return None if the distance is above max_distance.
|
||||
# If remove is set to true, the screw is also removed
|
||||
# from the list of passed in screws.
|
||||
def find_closest(screws, point, max_distance, remove=False):
|
||||
if len(screws) == 0:
|
||||
return None
|
||||
closest = screws[0]
|
||||
min_distance = math.hypot(closest[0] - point[0], closest[1] - point[1])
|
||||
for screw in screws[1:]:
|
||||
distance = math.hypot(screw[0] - point[0], screw[1] - point[1])
|
||||
if distance < min_distance:
|
||||
closest = screw
|
||||
min_distance = distance
|
||||
|
||||
if min_distance > max_distance:
|
||||
return None
|
||||
|
||||
if remove:
|
||||
screws.remove(closest)
|
||||
return closest
|
||||
|
||||
|
||||
class BedLevelPanel(ScreenPanel):
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.response_count = 0
|
||||
self.panel_name = ""
|
||||
self.screw_dict = {}
|
||||
self.screws = []
|
||||
self.y_cnt = 0
|
||||
self.x_cnt = 0
|
||||
self.x_offset = 0
|
||||
self.y_offset = 0
|
||||
|
||||
def initialize(self, panel_name):
|
||||
self.panel_name = panel_name
|
||||
self.labels['dm'] = self._gtk.ButtonImage("motor-off", _("Disable XY"), "color3")
|
||||
self.labels['dm'].connect("clicked", self.disable_motors)
|
||||
self.buttons = {'dm': self._gtk.Button("motor-off", _("Disable XY"), "color3")}
|
||||
self.buttons['dm'].connect("clicked", self.disable_motors)
|
||||
screw_positions = []
|
||||
rotation = None
|
||||
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
grid.attach(self.labels['dm'], 0, 0, 1, 1)
|
||||
grid.attach(self.buttons['dm'], 0, 0, 1, 1)
|
||||
|
||||
if "screws_tilt_adjust" in self._screen.printer.get_config_section_list():
|
||||
self.labels['screws'] = self._gtk.ButtonImage("refresh", _("Screws Adjust"), "color4")
|
||||
self.labels['screws'].connect("clicked", self.screws_tilt_calculate)
|
||||
grid.attach(self.labels['screws'], 0, 1, 1, 1)
|
||||
if "screws_tilt_adjust" in self._printer.get_config_section_list():
|
||||
self.buttons['screws'] = self._gtk.Button("refresh", _("Screws Adjust"), "color4")
|
||||
self.buttons['screws'].connect("clicked", self.screws_tilt_calculate)
|
||||
grid.attach(self.buttons['screws'], 0, 1, 1, 1)
|
||||
|
||||
self.screws = self._get_screws("screws_tilt_adjust")
|
||||
logging.info(f"screws_tilt_adjust: {self.screws}")
|
||||
|
||||
if "bltouch" in self._screen.printer.get_config_section_list():
|
||||
self._get_offsets("bltouch")
|
||||
elif "probe" in self._screen.printer.get_config_section_list():
|
||||
self._get_offsets("probe")
|
||||
probe = self._printer.get_probe()
|
||||
if probe:
|
||||
if "x_offset" in probe:
|
||||
self.x_offset = round(float(probe['x_offset']), 1)
|
||||
if "y_offset" in probe:
|
||||
self.y_offset = round(float(probe['y_offset']), 1)
|
||||
logging.debug(f"offset X: {self.x_offset} Y: {self.y_offset}")
|
||||
# bed_screws uses NOZZLE positions
|
||||
# screws_tilt_adjust uses PROBE positions and to be offseted for the buttons to work equal to bed_screws
|
||||
# screws_tilt_adjust uses PROBE positions and
|
||||
# to be offseted for the buttons to work equal to bed_screws
|
||||
new_screws = [
|
||||
[round(screw[0] + self.x_offset, 1), round(screw[1] + self.y_offset, 1)]
|
||||
for screw in self.screws
|
||||
@@ -57,9 +82,38 @@ class BedLevelPanel(ScreenPanel):
|
||||
|
||||
self.screws = new_screws
|
||||
logging.info(f"screws with offset: {self.screws}")
|
||||
elif "bed_screws" in self._screen.printer.get_config_section_list():
|
||||
elif "bed_screws" in self._printer.get_config_section_list():
|
||||
self.screws = self._get_screws("bed_screws")
|
||||
logging.info(f"bed_screws: {self.screws}")
|
||||
nscrews = len(self.screws)
|
||||
# KS config
|
||||
valid_positions = True
|
||||
valid_screws = ["bl", "fl", "fr", "br", "bm", "fm", "lm", "rm", "center"]
|
||||
if self.ks_printer_cfg is not None:
|
||||
screw_positions = self.ks_printer_cfg.get("screw_positions", "")
|
||||
if screw_positions:
|
||||
screw_positions = [str(i.strip()) for i in screw_positions.split(',')]
|
||||
logging.info(f"Positions: {screw_positions}")
|
||||
for screw in screw_positions:
|
||||
if screw not in valid_screws:
|
||||
logging.error(f"Unknown screw: {screw}")
|
||||
self._screen.show_popup_message(_("Unknown screw position") + f": {screw}")
|
||||
valid_positions = False
|
||||
if not (3 <= len(screw_positions) <= 9):
|
||||
valid_positions = False
|
||||
else:
|
||||
if nscrews in (3, 5, 7):
|
||||
valid_positions = False
|
||||
screw_positions = valid_screws
|
||||
rotation = self.ks_printer_cfg.getint("screw_rotation", 0)
|
||||
logging.info(f"Rotation: {rotation}")
|
||||
else:
|
||||
if nscrews in (3, 5, 7):
|
||||
valid_positions = False
|
||||
screw_positions = valid_screws
|
||||
if 'bed_screws' in self._config.get_config():
|
||||
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
|
||||
logging.debug(f"Rotation: {rotation}")
|
||||
|
||||
# get dimensions
|
||||
x_positions = {x[0] for x in self.screws}
|
||||
@@ -70,91 +124,73 @@ class BedLevelPanel(ScreenPanel):
|
||||
|
||||
min_x = min(x_positions)
|
||||
max_x = max(x_positions)
|
||||
mid_x = round((min_x + max_x) / 2)
|
||||
|
||||
min_y = min(y_positions)
|
||||
max_y = max(y_positions)
|
||||
mid_y = round((min_y + max_y) / 2)
|
||||
|
||||
fl = [min_x, min_y]
|
||||
bl = [min_x, max_y]
|
||||
br = [max_x, max_y]
|
||||
fr = [max_x, min_y]
|
||||
max_distance = math.ceil(
|
||||
math.hypot(max_x - min_x, max_y - min_y)
|
||||
/ min(self.x_cnt, self.y_cnt, 3)
|
||||
)
|
||||
|
||||
if self.x_cnt == 3:
|
||||
mid_x = [x for x in list(zip(*self.screws))[0] if x not in (min_x, max_x)][0]
|
||||
fm = [mid_x, min_y]
|
||||
bm = [mid_x, max_y]
|
||||
else:
|
||||
fm = bm = None
|
||||
if self.y_cnt == 3:
|
||||
mid_y = [y for y in list(zip(*self.screws))[1] if y not in (min_y, max_y)][0]
|
||||
lm = [min_x, mid_y]
|
||||
rm = [max_x, mid_y]
|
||||
else:
|
||||
lm = rm = None
|
||||
logging.debug(f"Using max_distance: {max_distance} to fit: {len(self.screws)} screws.")
|
||||
|
||||
logging.debug(f"Using {len(self.screws)}-screw locations [x,y] [{self.x_cnt}x{self.y_cnt}]")
|
||||
remaining_screws = self.screws[:]
|
||||
|
||||
self.labels['bl'] = self._gtk.ButtonImage("bed-level-t-l", scale=2.5)
|
||||
self.labels['br'] = self._gtk.ButtonImage("bed-level-t-r", scale=2.5)
|
||||
self.labels['fl'] = self._gtk.ButtonImage("bed-level-b-l", scale=2.5)
|
||||
self.labels['fr'] = self._gtk.ButtonImage("bed-level-b-r", scale=2.5)
|
||||
self.labels['lm'] = self._gtk.ButtonImage("bed-level-l-m", scale=2.5)
|
||||
self.labels['rm'] = self._gtk.ButtonImage("bed-level-r-m", scale=2.5)
|
||||
self.labels['fm'] = self._gtk.ButtonImage("bed-level-b-m", scale=2.5)
|
||||
self.labels['bm'] = self._gtk.ButtonImage("bed-level-t-m", scale=2.5)
|
||||
fl = find_closest(remaining_screws, (min_x, min_y), max_distance, remove="fl" in screw_positions)
|
||||
bl = find_closest(remaining_screws, (min_x, max_y), max_distance, remove="bl" in screw_positions)
|
||||
br = find_closest(remaining_screws, (max_x, max_y), max_distance, remove="br" in screw_positions)
|
||||
fr = find_closest(remaining_screws, (max_x, min_y), max_distance, remove="fr" in screw_positions)
|
||||
|
||||
valid_positions = True
|
||||
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
|
||||
if printer_cfg is not None:
|
||||
logging.info(f"printer {printer_cfg}")
|
||||
screw_positions = printer_cfg.get("screw_positions", "")
|
||||
screw_positions = [str(i.strip()) for i in screw_positions.split(',')]
|
||||
logging.info(f"Positions: {screw_positions}")
|
||||
for screw in screw_positions:
|
||||
if screw not in ("bl", "fl", "fr", "br", "bm", "fm", "lm", "rm", ""):
|
||||
logging.error(f"Unknown screw: {screw}")
|
||||
self._screen.show_popup_message(_("Unknown screw position") + f": {screw}")
|
||||
valid_positions = False
|
||||
if not (3 <= len(screw_positions) <= 8):
|
||||
valid_positions = False
|
||||
rotation = printer_cfg.getint("screw_rotation", 0)
|
||||
logging.info(f"Rotation: {rotation}")
|
||||
else:
|
||||
valid_positions = False
|
||||
if 'bed_screws' in self._config.get_config():
|
||||
rotation = self._config.get_config()['bed_screws'].getint("rotation", 0)
|
||||
logging.debug(f"Rotation: {rotation}")
|
||||
fm = find_closest(remaining_screws, (mid_x, min_y), max_distance, remove="fm" in screw_positions)
|
||||
bm = find_closest(remaining_screws, (mid_x, max_y), max_distance, remove="bm" in screw_positions)
|
||||
|
||||
lm = find_closest(remaining_screws, (min_x, mid_y), max_distance, remove="lm" in screw_positions)
|
||||
rm = find_closest(remaining_screws, (max_x, mid_y), max_distance, remove="rm" in screw_positions)
|
||||
|
||||
center = find_closest(remaining_screws, (mid_x, mid_y), max_distance, remove="center" in screw_positions)
|
||||
|
||||
if len(remaining_screws) != 0:
|
||||
logging.debug(f"Screws not used: {remaining_screws}")
|
||||
|
||||
logging.debug(f"Using {len(self.screws) - len(remaining_screws)}/{len(self.screws)}-screw locations")
|
||||
|
||||
button_scale = 2
|
||||
|
||||
self.buttons['bl'] = self._gtk.Button("bed-level-t-l", scale=button_scale)
|
||||
self.buttons['br'] = self._gtk.Button("bed-level-t-r", scale=button_scale)
|
||||
self.buttons['fl'] = self._gtk.Button("bed-level-b-l", scale=button_scale)
|
||||
self.buttons['fr'] = self._gtk.Button("bed-level-b-r", scale=button_scale)
|
||||
self.buttons['lm'] = self._gtk.Button("bed-level-l-m", scale=button_scale)
|
||||
self.buttons['rm'] = self._gtk.Button("bed-level-r-m", scale=button_scale)
|
||||
self.buttons['fm'] = self._gtk.Button("bed-level-b-m", scale=button_scale)
|
||||
self.buttons['bm'] = self._gtk.Button("bed-level-t-m", scale=button_scale)
|
||||
self.buttons['center'] = self._gtk.Button("increase", scale=button_scale)
|
||||
|
||||
bedgrid = Gtk.Grid()
|
||||
nscrews = len(self.screws)
|
||||
|
||||
if valid_positions:
|
||||
if "bl" in screw_positions:
|
||||
bedgrid.attach(self.labels['bl'], 1, 0, 1, 1)
|
||||
if "fl" in screw_positions:
|
||||
bedgrid.attach(self.labels['fl'], 1, 2, 1, 1)
|
||||
if "fr" in screw_positions:
|
||||
bedgrid.attach(self.labels['fr'], 3, 2, 1, 1)
|
||||
if "br" in screw_positions:
|
||||
bedgrid.attach(self.labels['br'], 3, 0, 1, 1)
|
||||
if "bm" in screw_positions:
|
||||
bedgrid.attach(self.labels['bm'], 2, 0, 1, 1)
|
||||
if "fm" in screw_positions:
|
||||
bedgrid.attach(self.labels['fm'], 2, 2, 1, 1)
|
||||
if "lm" in screw_positions:
|
||||
bedgrid.attach(self.labels['lm'], 1, 1, 1, 1)
|
||||
if "rm" in screw_positions:
|
||||
bedgrid.attach(self.labels['rm'], 3, 1, 1, 1)
|
||||
elif nscrews in {4, 6, 8}:
|
||||
bedgrid.attach(self.labels['bl'], 1, 0, 1, 1)
|
||||
bedgrid.attach(self.labels['fl'], 1, 2, 1, 1)
|
||||
bedgrid.attach(self.labels['fr'], 3, 2, 1, 1)
|
||||
bedgrid.attach(self.labels['br'], 3, 0, 1, 1)
|
||||
if self.x_cnt == 3:
|
||||
bedgrid.attach(self.labels['bm'], 2, 0, 1, 1)
|
||||
bedgrid.attach(self.labels['fm'], 2, 2, 1, 1)
|
||||
if self.y_cnt == 3:
|
||||
bedgrid.attach(self.labels['lm'], 1, 1, 1, 1)
|
||||
bedgrid.attach(self.labels['rm'], 3, 1, 1, 1)
|
||||
if "bl" in screw_positions and bl:
|
||||
bedgrid.attach(self.buttons['bl'], 1, 0, 1, 1)
|
||||
if "fl" in screw_positions and fl:
|
||||
bedgrid.attach(self.buttons['fl'], 1, 2, 1, 1)
|
||||
if "fr" in screw_positions and fr:
|
||||
bedgrid.attach(self.buttons['fr'], 3, 2, 1, 1)
|
||||
if "br" in screw_positions and br:
|
||||
bedgrid.attach(self.buttons['br'], 3, 0, 1, 1)
|
||||
if "bm" in screw_positions and bm:
|
||||
bedgrid.attach(self.buttons['bm'], 2, 0, 1, 1)
|
||||
if "fm" in screw_positions and fm:
|
||||
bedgrid.attach(self.buttons['fm'], 2, 2, 1, 1)
|
||||
if "lm" in screw_positions and lm:
|
||||
bedgrid.attach(self.buttons['lm'], 1, 1, 1, 1)
|
||||
if "rm" in screw_positions and rm:
|
||||
bedgrid.attach(self.buttons['rm'], 3, 1, 1, 1)
|
||||
if "center" in screw_positions and center:
|
||||
bedgrid.attach(self.buttons['center'], 2, 1, 1, 1)
|
||||
self.buttons['center'].connect("clicked", self.go_to_position, center)
|
||||
else:
|
||||
label = Gtk.Label(
|
||||
_("Bed screw configuration:") + f" {nscrews}\n\n"
|
||||
@@ -171,14 +207,14 @@ class BedLevelPanel(ScreenPanel):
|
||||
# fm bm
|
||||
# fr rm br
|
||||
|
||||
self.labels['bl'].connect("clicked", self.go_to_position, fl)
|
||||
self.labels['bm'].connect("clicked", self.go_to_position, lm)
|
||||
self.labels['br'].connect("clicked", self.go_to_position, bl)
|
||||
self.labels['rm'].connect("clicked", self.go_to_position, bm)
|
||||
self.labels['fr'].connect("clicked", self.go_to_position, br)
|
||||
self.labels['fm'].connect("clicked", self.go_to_position, rm)
|
||||
self.labels['fl'].connect("clicked", self.go_to_position, fr)
|
||||
self.labels['lm'].connect("clicked", self.go_to_position, fm)
|
||||
self.buttons['bl'].connect("clicked", self.go_to_position, fl)
|
||||
self.buttons['bm'].connect("clicked", self.go_to_position, lm)
|
||||
self.buttons['br'].connect("clicked", self.go_to_position, bl)
|
||||
self.buttons['rm'].connect("clicked", self.go_to_position, bm)
|
||||
self.buttons['fr'].connect("clicked", self.go_to_position, br)
|
||||
self.buttons['fm'].connect("clicked", self.go_to_position, rm)
|
||||
self.buttons['fl'].connect("clicked", self.go_to_position, fr)
|
||||
self.buttons['lm'].connect("clicked", self.go_to_position, fm)
|
||||
self.screw_dict = {
|
||||
'bl': fl,
|
||||
'bm': lm,
|
||||
@@ -193,14 +229,14 @@ class BedLevelPanel(ScreenPanel):
|
||||
# fr fm fl
|
||||
# rm lm
|
||||
# br bm bl
|
||||
self.labels['bl'].connect("clicked", self.go_to_position, fr)
|
||||
self.labels['bm'].connect("clicked", self.go_to_position, fm)
|
||||
self.labels['br'].connect("clicked", self.go_to_position, fl)
|
||||
self.labels['rm'].connect("clicked", self.go_to_position, lm)
|
||||
self.labels['fr'].connect("clicked", self.go_to_position, bl)
|
||||
self.labels['fm'].connect("clicked", self.go_to_position, bm)
|
||||
self.labels['fl'].connect("clicked", self.go_to_position, br)
|
||||
self.labels['lm'].connect("clicked", self.go_to_position, rm)
|
||||
self.buttons['bl'].connect("clicked", self.go_to_position, fr)
|
||||
self.buttons['bm'].connect("clicked", self.go_to_position, fm)
|
||||
self.buttons['br'].connect("clicked", self.go_to_position, fl)
|
||||
self.buttons['rm'].connect("clicked", self.go_to_position, lm)
|
||||
self.buttons['fr'].connect("clicked", self.go_to_position, bl)
|
||||
self.buttons['fm'].connect("clicked", self.go_to_position, bm)
|
||||
self.buttons['fl'].connect("clicked", self.go_to_position, br)
|
||||
self.buttons['lm'].connect("clicked", self.go_to_position, rm)
|
||||
self.screw_dict = {
|
||||
'bl': fr,
|
||||
'bm': fm,
|
||||
@@ -215,14 +251,14 @@ class BedLevelPanel(ScreenPanel):
|
||||
# br rm fr
|
||||
# bm fm
|
||||
# bl lm fl
|
||||
self.labels['bl'].connect("clicked", self.go_to_position, br)
|
||||
self.labels['bm'].connect("clicked", self.go_to_position, rm)
|
||||
self.labels['br'].connect("clicked", self.go_to_position, fr)
|
||||
self.labels['rm'].connect("clicked", self.go_to_position, fm)
|
||||
self.labels['fr'].connect("clicked", self.go_to_position, fl)
|
||||
self.labels['fm'].connect("clicked", self.go_to_position, lm)
|
||||
self.labels['fl'].connect("clicked", self.go_to_position, bl)
|
||||
self.labels['lm'].connect("clicked", self.go_to_position, bm)
|
||||
self.buttons['bl'].connect("clicked", self.go_to_position, br)
|
||||
self.buttons['bm'].connect("clicked", self.go_to_position, rm)
|
||||
self.buttons['br'].connect("clicked", self.go_to_position, fr)
|
||||
self.buttons['rm'].connect("clicked", self.go_to_position, fm)
|
||||
self.buttons['fr'].connect("clicked", self.go_to_position, fl)
|
||||
self.buttons['fm'].connect("clicked", self.go_to_position, lm)
|
||||
self.buttons['fl'].connect("clicked", self.go_to_position, bl)
|
||||
self.buttons['lm'].connect("clicked", self.go_to_position, bm)
|
||||
self.screw_dict = {
|
||||
'bl': br,
|
||||
'bm': rm,
|
||||
@@ -237,14 +273,14 @@ class BedLevelPanel(ScreenPanel):
|
||||
# bl bm br
|
||||
# lm rm
|
||||
# fl fm fr
|
||||
self.labels['bl'].connect("clicked", self.go_to_position, bl)
|
||||
self.labels['bm'].connect("clicked", self.go_to_position, bm)
|
||||
self.labels['br'].connect("clicked", self.go_to_position, br)
|
||||
self.labels['rm'].connect("clicked", self.go_to_position, rm)
|
||||
self.labels['fr'].connect("clicked", self.go_to_position, fr)
|
||||
self.labels['fm'].connect("clicked", self.go_to_position, fm)
|
||||
self.labels['fl'].connect("clicked", self.go_to_position, fl)
|
||||
self.labels['lm'].connect("clicked", self.go_to_position, lm)
|
||||
self.buttons['bl'].connect("clicked", self.go_to_position, bl)
|
||||
self.buttons['bm'].connect("clicked", self.go_to_position, bm)
|
||||
self.buttons['br'].connect("clicked", self.go_to_position, br)
|
||||
self.buttons['rm'].connect("clicked", self.go_to_position, rm)
|
||||
self.buttons['fr'].connect("clicked", self.go_to_position, fr)
|
||||
self.buttons['fm'].connect("clicked", self.go_to_position, fm)
|
||||
self.buttons['fl'].connect("clicked", self.go_to_position, fl)
|
||||
self.buttons['lm'].connect("clicked", self.go_to_position, lm)
|
||||
self.screw_dict = {
|
||||
'bl': bl,
|
||||
'bm': bm,
|
||||
@@ -255,19 +291,24 @@ class BedLevelPanel(ScreenPanel):
|
||||
'fl': fl,
|
||||
'lm': lm
|
||||
}
|
||||
|
||||
self.screw_dict['center'] = center
|
||||
grid.attach(bedgrid, 1, 0, 3, 2)
|
||||
self.content.add(grid)
|
||||
|
||||
def activate(self):
|
||||
for key, value in self.screw_dict.items():
|
||||
self.labels[key].set_label(f"{value}")
|
||||
if self._printer.config_section_exists("screws_tilt_adjust"):
|
||||
self.labels['screws'].set_sensitive(True)
|
||||
self.buttons[key].set_label(f"{value}")
|
||||
|
||||
def home(self):
|
||||
# Test if all axes have been homed. Home if necessary.
|
||||
if self._printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
# do Z_TILT_CALIBRATE if applicable.
|
||||
if self._printer.config_section_exists("z_tilt"):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.Z_TILT)
|
||||
|
||||
def go_to_position(self, widget, position):
|
||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
self.home()
|
||||
logging.debug(f"Going to position: {position}")
|
||||
script = [
|
||||
f"{KlippyGcodes.MOVE_ABSOLUTE}",
|
||||
@@ -285,13 +326,24 @@ class BedLevelPanel(ScreenPanel):
|
||||
"M18" # Disable motors
|
||||
)
|
||||
|
||||
def process_update(self, action, data):
|
||||
def process_busy(self, busy):
|
||||
for button in self.buttons:
|
||||
if button == "screws":
|
||||
self.buttons[button].set_sensitive(
|
||||
self._printer.config_section_exists("screws_tilt_adjust")
|
||||
and (not busy))
|
||||
continue
|
||||
self.buttons[button].set_sensitive((not busy))
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_busy":
|
||||
self.process_busy(data)
|
||||
return
|
||||
if action != "notify_gcode_response":
|
||||
return
|
||||
if data.startswith('!!'):
|
||||
self.response_count = 0
|
||||
self.labels['screws'].set_sensitive(True)
|
||||
self.buttons['screws'].set_sensitive(True)
|
||||
return
|
||||
result = re.match(
|
||||
"^// (.*) : [xX= ]+([\\-0-9\\.]+), [yY= ]+([\\-0-9\\.]+), [zZ= ]+[\\-0-9\\.]+ :" +
|
||||
@@ -306,11 +358,11 @@ class BedLevelPanel(ScreenPanel):
|
||||
for key, value in self.screw_dict.items():
|
||||
if value and x == value[0] and y == value[1]:
|
||||
logging.debug(f"X: {x} Y: {y} Adjust: {result[5]} Pos: {key}")
|
||||
self.labels[key].set_label(result[5])
|
||||
self.buttons[key].set_label(result[5])
|
||||
break
|
||||
self.response_count += 1
|
||||
if self.response_count >= len(self.screws) - 1:
|
||||
self.labels['screws'].set_sensitive(True)
|
||||
self.buttons['screws'].set_sensitive(True)
|
||||
else:
|
||||
result = re.match(
|
||||
"^// (.*) : [xX= ]+([\\-0-9\\.]+), [yY= ]+([\\-0-9\\.]+), [zZ= ]+[\\-0-9\\.]",
|
||||
@@ -325,11 +377,11 @@ class BedLevelPanel(ScreenPanel):
|
||||
for key, value in self.screw_dict.items():
|
||||
if value and x == value[0] and y == value[1]:
|
||||
logging.debug(f"X: {x} Y: {y} Pos: {key}")
|
||||
self.labels[key].set_label(_("Reference"))
|
||||
self.buttons[key].set_label(_("Reference"))
|
||||
|
||||
def _get_screws(self, config_section_name):
|
||||
screws = []
|
||||
config_section = self._screen.printer.get_config_section(config_section_name)
|
||||
config_section = self._printer.get_config_section(config_section_name)
|
||||
for item in config_section:
|
||||
logging.debug(f"{config_section_name}: {config_section[item]}")
|
||||
result = re.match(r"([\-0-9\.]+)\s*,\s*([\-0-9\.]+)", config_section[item])
|
||||
@@ -340,17 +392,8 @@ class BedLevelPanel(ScreenPanel):
|
||||
])
|
||||
return sorted(screws, key=lambda s: (float(s[1]), float(s[0])))
|
||||
|
||||
def _get_offsets(self, section):
|
||||
probe = self._screen.printer.get_config_section(section)
|
||||
if "x_offset" in probe:
|
||||
self.x_offset = round(float(probe['x_offset']), 1)
|
||||
if "y_offset" in probe:
|
||||
self.y_offset = round(float(probe['y_offset']), 1)
|
||||
logging.debug(f"{section} offset X: {self.x_offset} Y: {self.y_offset}")
|
||||
|
||||
def screws_tilt_calculate(self, widget):
|
||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
self.home()
|
||||
self.response_count = 0
|
||||
self.labels['screws'].set_sensitive(False)
|
||||
self.buttons['screws'].set_sensitive(False)
|
||||
self._screen._ws.klippy.gcode_script("SCREWS_TILT_CALCULATE")
|
||||
+122
-221
@@ -1,20 +1,14 @@
|
||||
import gi
|
||||
import logging
|
||||
import contextlib
|
||||
import numpy as np
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib import cm
|
||||
from matplotlib import rc
|
||||
from mpl_toolkits.mplot3d import Axes3D
|
||||
from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas
|
||||
from matplotlib.ticker import LinearLocator
|
||||
|
||||
from ks_includes.KlippyGcodes import KlippyGcodes
|
||||
from ks_includes.screen_panel import ScreenPanel
|
||||
from ks_includes.widgets.bedmap import BedMap
|
||||
|
||||
|
||||
def create_panel(*args):
|
||||
@@ -23,110 +17,119 @@ def create_panel(*args):
|
||||
|
||||
class BedMeshPanel(ScreenPanel):
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
self.profiles = {}
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.show_create = False
|
||||
self.active_mesh = None
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
addprofile = self._gtk.ButtonImage("increase", " " + _("Add profile"), "color1", .66, Gtk.PositionType.LEFT, 1)
|
||||
addprofile.connect("clicked", self.show_create_profile)
|
||||
addprofile.set_hexpand(True)
|
||||
clear = self._gtk.ButtonImage("cancel", " " + _("Clear"), "color2", .66, Gtk.PositionType.LEFT, 1)
|
||||
clear.connect("clicked", self._clear_mesh)
|
||||
clear.set_hexpand(True)
|
||||
top_calibrate = self._gtk.ButtonImage("refresh", " " + _("Calibrate"), "color3", .66, Gtk.PositionType.LEFT, 1)
|
||||
top_calibrate.connect("clicked", self._send_calibrate)
|
||||
top_calibrate.set_hexpand(True)
|
||||
self.profiles = {}
|
||||
self.buttons = {
|
||||
'add': self._gtk.Button("increase", " " + _("Add profile"), "color1", self.bts, Gtk.PositionType.LEFT, 1),
|
||||
'calib': self._gtk.Button("refresh", " " + _("Calibrate"), "color3", self.bts, Gtk.PositionType.LEFT, 1),
|
||||
'clear': self._gtk.Button("cancel", " " + _("Clear"), "color2", self.bts, Gtk.PositionType.LEFT, 1),
|
||||
}
|
||||
self.buttons['add'].connect("clicked", self.show_create_profile)
|
||||
self.buttons['add'].set_hexpand(True)
|
||||
self.buttons['clear'].connect("clicked", self.send_clear_mesh)
|
||||
self.buttons['clear'].set_hexpand(True)
|
||||
self.buttons['calib'].connect("clicked", self.calibrate_mesh)
|
||||
self.buttons['calib'].set_hexpand(True)
|
||||
|
||||
topbar = Gtk.Box(spacing=5)
|
||||
topbar.set_hexpand(True)
|
||||
topbar.set_vexpand(False)
|
||||
topbar.add(addprofile)
|
||||
topbar.add(clear)
|
||||
topbar.add(top_calibrate)
|
||||
topbar.add(self.buttons['add'])
|
||||
topbar.add(self.buttons['clear'])
|
||||
topbar.add(self.buttons['calib'])
|
||||
|
||||
# Create a grid for all profiles
|
||||
self.labels['profiles'] = Gtk.Grid()
|
||||
self.labels['profiles'].get_style_context().add_class("frame-item")
|
||||
self.labels['profiles'].set_valign(Gtk.Align.CENTER)
|
||||
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
scroll.add(self.labels['profiles'])
|
||||
scroll.set_vexpand(True)
|
||||
|
||||
# Create a box to contain all of the above
|
||||
self.labels['main_box'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.labels['main_box'].set_vexpand(True)
|
||||
self.labels['main_box'].pack_start(topbar, False, False, 0)
|
||||
self.labels['main_box'].pack_end(scroll, True, True, 0)
|
||||
|
||||
self.load_meshes()
|
||||
|
||||
self.content.add(self.labels['main_box'])
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
grid.set_row_homogeneous(False)
|
||||
grid.attach(topbar, 0, 0, 2, 1)
|
||||
self.labels['map'] = BedMap(self._gtk.font_size, self.active_mesh)
|
||||
if self._screen.vertical_mode:
|
||||
grid.attach(self.labels['map'], 0, 2, 2, 1)
|
||||
grid.attach(scroll, 0, 3, 2, 1)
|
||||
self.labels['map'].set_size_request(self._gtk.content_width, self._gtk.content_height * .4)
|
||||
else:
|
||||
grid.attach(self.labels['map'], 0, 2, 1, 1)
|
||||
grid.attach(scroll, 1, 2, 1, 1)
|
||||
self.labels['main_grid'] = grid
|
||||
self.content.add(self.labels['main_grid'])
|
||||
|
||||
def activate(self):
|
||||
for child in self.content.get_children():
|
||||
self.content.remove(child)
|
||||
self.content.add(self.labels['main_box'])
|
||||
|
||||
self.activate_mesh(
|
||||
self._screen.printer.get_stat("bed_mesh", "profile_name")
|
||||
)
|
||||
self.load_meshes()
|
||||
with contextlib.suppress(KeyError):
|
||||
self.activate_mesh(self._printer.get_stat("bed_mesh", "profile_name"))
|
||||
|
||||
def activate_mesh(self, profile):
|
||||
if self.active_mesh is not None:
|
||||
self.profiles[self.active_mesh]['name'].set_sensitive(True)
|
||||
self.profiles[self.active_mesh]['name'].get_style_context().remove_class("button_active")
|
||||
if profile == "":
|
||||
profile = "default"
|
||||
|
||||
logging.debug(f"Activating profile: {profile} Current: {self.active_mesh}")
|
||||
logging.info("Clearing active profile")
|
||||
self.active_mesh = None
|
||||
self.update_graph()
|
||||
self.buttons['clear'].set_sensitive(False)
|
||||
return
|
||||
if profile not in self.profiles:
|
||||
self.add_profile(profile)
|
||||
|
||||
if self.active_mesh is not None and self.active_mesh in self.profiles:
|
||||
a = self.profiles[self.active_mesh]
|
||||
with contextlib.suppress(KeyError):
|
||||
a['button_box'].remove(a['calibrate'])
|
||||
a['button_box'].pack_start(a['load'], False, False, 0)
|
||||
|
||||
logging.info(f"Active {self.active_mesh} changing to {profile}")
|
||||
if self.active_mesh != profile:
|
||||
logging.info(f"Active {self.active_mesh} changing to {profile}")
|
||||
self.profiles[profile]['name'].set_sensitive(False)
|
||||
self.profiles[profile]['name'].get_style_context().add_class("button_active")
|
||||
self.active_mesh = profile
|
||||
self.update_graph(profile=profile)
|
||||
self.buttons['clear'].set_sensitive(True)
|
||||
|
||||
if self.active_mesh is not None:
|
||||
a = self.profiles[profile]
|
||||
with contextlib.suppress(KeyError):
|
||||
a['button_box'].remove(a['load'])
|
||||
with contextlib.suppress(KeyError):
|
||||
a['button_box'].remove(a['view'])
|
||||
a['button_box'].pack_start(a['calibrate'], False, False, 0)
|
||||
if self._printer.get_config_section(f"bed_mesh {profile}"):
|
||||
a['button_box'].pack_end(a["view"], False, False, 0)
|
||||
self._screen.show_all()
|
||||
def retrieve_bm(self, profile):
|
||||
if profile is None:
|
||||
return None
|
||||
if profile == self.active_mesh:
|
||||
bm = self._printer.get_stat("bed_mesh")
|
||||
if bm is None:
|
||||
logging.info(f"Unable to load active mesh: {profile}")
|
||||
return None
|
||||
matrix = 'probed_matrix'
|
||||
else:
|
||||
bm = self._printer.get_config_section(f"bed_mesh {profile}")
|
||||
if bm is False:
|
||||
logging.info(f"Unable to load profile: {profile}")
|
||||
self.remove_profile(profile)
|
||||
return None
|
||||
matrix = 'points'
|
||||
return bm[matrix]
|
||||
|
||||
def update_graph(self, widget=None, profile=None):
|
||||
self.labels['map'].update_bm(self.retrieve_bm(profile))
|
||||
self.labels['map'].queue_draw()
|
||||
|
||||
def add_profile(self, profile):
|
||||
|
||||
logging.debug(f"Adding Profile: {profile} Current: {self.active_mesh}")
|
||||
name = Gtk.Label()
|
||||
name.set_markup(f"<big><b>{profile}</b></big>")
|
||||
name.set_hexpand(True)
|
||||
logging.debug(f"Adding Profile: {profile}")
|
||||
name = self._gtk.Button(label=f"<big><b>{profile}</b></big>")
|
||||
name.get_children()[0].set_use_markup(True)
|
||||
name.get_children()[0].set_line_wrap(True)
|
||||
name.get_children()[0].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
name.set_vexpand(False)
|
||||
name.set_halign(Gtk.Align.START)
|
||||
name.set_line_wrap(True)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
name.connect("clicked", self.send_load_mesh, profile)
|
||||
name.connect("clicked", self.update_graph, profile)
|
||||
|
||||
buttons = {
|
||||
"calibrate": self._gtk.ButtonImage("refresh", _("Calibrate"), "color4"),
|
||||
"load": self._gtk.ButtonImage("load", _("Load"), "color2"),
|
||||
"save": self._gtk.ButtonImage("complete", _("Save"), "color3"),
|
||||
"delete": self._gtk.ButtonImage("cancel", _("Delete"), "color3"),
|
||||
"view": self._gtk.ButtonImage("bed-level", _("View Mesh"), "color1"),
|
||||
"save": self._gtk.Button("complete", None, "color4", self.bts),
|
||||
"delete": self._gtk.Button("cancel", None, "color2", self.bts),
|
||||
}
|
||||
buttons["calibrate"].connect("clicked", self.calibrate_mesh)
|
||||
buttons["load"].connect("clicked", self.send_load_mesh, profile)
|
||||
buttons["save"].connect("clicked", self.send_save_mesh, profile)
|
||||
buttons["delete"].connect("clicked", self.send_remove_mesh, profile)
|
||||
buttons["view"].connect("clicked", self.show_mesh, profile)
|
||||
|
||||
for b in buttons.values():
|
||||
b.set_hexpand(False)
|
||||
@@ -134,30 +137,21 @@ class BedMeshPanel(ScreenPanel):
|
||||
b.set_halign(Gtk.Align.END)
|
||||
|
||||
button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
button_box.add(buttons["calibrate"])
|
||||
if profile != "default":
|
||||
button_box.add(buttons["save"])
|
||||
button_box.add(buttons["delete"])
|
||||
if self._printer.get_config_section(f"bed_mesh {profile}"):
|
||||
button_box.add(buttons["load"])
|
||||
button_box.add(buttons["view"])
|
||||
button_box.add(buttons["delete"])
|
||||
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
box.get_style_context().add_class("frame-item")
|
||||
box.pack_start(name, True, True, 0)
|
||||
box.pack_start(button_box, False, False, 0)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(box)
|
||||
|
||||
self.profiles[profile] = {
|
||||
"name": name,
|
||||
"button_box": button_box,
|
||||
"row": frame,
|
||||
"calibrate": buttons["calibrate"],
|
||||
"load": buttons["load"],
|
||||
"row": box,
|
||||
"save": buttons["save"],
|
||||
"delete": buttons["delete"],
|
||||
"view": buttons["view"],
|
||||
}
|
||||
|
||||
pl = list(self.profiles)
|
||||
@@ -177,12 +171,28 @@ class BedMeshPanel(ScreenPanel):
|
||||
return False
|
||||
|
||||
def load_meshes(self):
|
||||
bm_profiles = self._screen.printer.get_config_section_list("bed_mesh ")
|
||||
logging.info(f"Bed profiles: {bm_profiles}")
|
||||
bm_profiles = self._printer.get_stat("bed_mesh", "profiles")
|
||||
for prof in bm_profiles:
|
||||
self.add_profile(prof[9:])
|
||||
if prof not in self.profiles:
|
||||
self.add_profile(prof)
|
||||
for prof in self.profiles:
|
||||
if prof not in bm_profiles:
|
||||
self.remove_profile(prof)
|
||||
|
||||
def process_busy(self, busy):
|
||||
for button in self.buttons:
|
||||
if button == 'clear':
|
||||
self.buttons[button].set_sensitive(self.active_mesh is not None)
|
||||
continue
|
||||
self.buttons[button].set_sensitive((not busy))
|
||||
for profile in self.profiles:
|
||||
self.profiles[profile]["save"].set_sensitive((not busy))
|
||||
self.profiles[profile]["delete"].set_sensitive((not busy))
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_busy":
|
||||
self.process_busy(data)
|
||||
return
|
||||
if action == "notify_status_update":
|
||||
with contextlib.suppress(KeyError):
|
||||
self.activate_mesh(data['bed_mesh']['profile_name'])
|
||||
@@ -196,7 +206,7 @@ class BedMeshPanel(ScreenPanel):
|
||||
self.content.remove(child)
|
||||
|
||||
self.show_create = False
|
||||
self.content.add(self.labels['main_box'])
|
||||
self.content.add(self.labels['main_grid'])
|
||||
self.content.show()
|
||||
|
||||
def remove_profile(self, profile):
|
||||
@@ -210,6 +220,10 @@ class BedMeshPanel(ScreenPanel):
|
||||
pos = profiles.index(profile) + 1 if profile != "default" else 0
|
||||
self.labels['profiles'].remove_row(pos)
|
||||
del self.profiles[profile]
|
||||
if not self.profiles:
|
||||
self.active_mesh = None
|
||||
self.update_graph()
|
||||
self.buttons['clear'].set_sensitive(False)
|
||||
|
||||
def show_create_profile(self, widget):
|
||||
|
||||
@@ -223,10 +237,9 @@ class BedMeshPanel(ScreenPanel):
|
||||
self.labels['profile_name'].set_text('')
|
||||
self.labels['profile_name'].set_hexpand(True)
|
||||
self.labels['profile_name'].connect("activate", self.create_profile)
|
||||
self.labels['profile_name'].connect("focus-in-event", self._show_keyboard)
|
||||
self.labels['profile_name'].grab_focus_without_selecting()
|
||||
self.labels['profile_name'].connect("focus-in-event", self._screen.show_keyboard)
|
||||
|
||||
save = self._gtk.ButtonImage("complete", _("Save"), "color3")
|
||||
save = self._gtk.Button("complete", _("Save"), "color3")
|
||||
save.set_hexpand(False)
|
||||
save.connect("clicked", self.create_profile)
|
||||
|
||||
@@ -242,149 +255,37 @@ class BedMeshPanel(ScreenPanel):
|
||||
self.labels['create_profile'].pack_start(box, True, True, 5)
|
||||
|
||||
self.content.add(self.labels['create_profile'])
|
||||
self._show_keyboard()
|
||||
self.labels['profile_name'].grab_focus_without_selecting()
|
||||
self.show_create = True
|
||||
|
||||
def _show_keyboard(self, widget=None, event=None):
|
||||
self._screen.show_keyboard(entry=self.labels['profile_name'])
|
||||
|
||||
def show_mesh(self, widget, profile):
|
||||
|
||||
bm = self._printer.get_config_section(f"bed_mesh {profile}")
|
||||
if bm is False:
|
||||
logging.info(f"Unable to load profile: {profile}")
|
||||
return
|
||||
|
||||
if profile == self.active_mesh:
|
||||
abm = self._printer.get_stat("bed_mesh")
|
||||
if abm is None:
|
||||
logging.info(f"Unable to load active mesh: {profile}")
|
||||
return
|
||||
x_range = [int(abm['mesh_min'][0]), int(abm['mesh_max'][0])]
|
||||
y_range = [int(abm['mesh_min'][1]), int(abm['mesh_max'][1])]
|
||||
minz_mesh = min(min(abm['mesh_matrix']))
|
||||
maxz_mesh = max(max(abm['mesh_matrix']))
|
||||
# Do not use a very small zscale, because that could be misleading
|
||||
minz_mesh = min(minz_mesh, -0.5)
|
||||
maxz_mesh = max(maxz_mesh, 0.5)
|
||||
z_range = [minz_mesh, maxz_mesh]
|
||||
counts = [len(abm['mesh_matrix'][0]), len(abm['mesh_matrix'])]
|
||||
deltas = [(x_range[1] - x_range[0]) / (counts[0] - 1), (y_range[1] - y_range[0]) / (counts[1] - 1)]
|
||||
x = [(i * deltas[0]) + x_range[0] for i in range(counts[0])]
|
||||
y = [(i * deltas[0]) + y_range[0] for i in range(counts[1])]
|
||||
x, y = np.meshgrid(x, y)
|
||||
z = np.asarray(abm['mesh_matrix'])
|
||||
else:
|
||||
x_range = [int(bm['min_x']), int(bm['max_x'])]
|
||||
y_range = [int(bm['min_y']), int(bm['max_y'])]
|
||||
z_range = [min(min(bm['points'])), max(max(bm['points']))]
|
||||
deltas = [(x_range[1] - x_range[0]) / (int(bm['x_count']) - 1),
|
||||
(y_range[1] - y_range[0]) / (int(bm['y_count']) - 1)]
|
||||
x = [(i * deltas[0]) + x_range[0] for i in range(bm['x_count'])]
|
||||
y = [(i * deltas[0]) + y_range[0] for i in range(bm['y_count'])]
|
||||
x, y = np.meshgrid(x, y)
|
||||
z = np.asarray(bm['points'])
|
||||
|
||||
rc('axes', edgecolor="#e2e2e2", labelcolor="#e2e2e2")
|
||||
rc(('xtick', 'ytick'), color="#e2e2e2")
|
||||
fig = plt.figure(facecolor='#12121277')
|
||||
ax = Axes3D(fig, azim=245, elev=23)
|
||||
ax.set(title=profile, xlabel="X", ylabel="Y", facecolor='none')
|
||||
ax.spines['bottom'].set_color("#e2e2e2")
|
||||
fig.add_axes(ax)
|
||||
surf = ax.plot_surface(x, y, z, cmap=cm.coolwarm, vmin=-0.1, vmax=0.1)
|
||||
|
||||
chartbox = ax.get_position()
|
||||
ax.set_position([chartbox.x0, chartbox.y0 + 0.1, chartbox.width * .92, chartbox.height])
|
||||
|
||||
ax.set_zlim(z_range[0], z_range[1])
|
||||
ax.zaxis.set_major_locator(LinearLocator(5))
|
||||
# A StrMethodFormatter is used automatically
|
||||
ax.zaxis.set_major_formatter('{x:.02f}')
|
||||
fig.colorbar(surf, shrink=0.7, aspect=5, pad=0.25)
|
||||
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
box.set_hexpand(True)
|
||||
box.set_vexpand(True)
|
||||
|
||||
title = Gtk.Label()
|
||||
title.set_markup(f"<b>{profile}</b>")
|
||||
title.set_hexpand(True)
|
||||
title.set_halign(Gtk.Align.CENTER)
|
||||
|
||||
canvas_box = Gtk.Box()
|
||||
canvas_box.set_hexpand(True)
|
||||
canvas_box.set_vexpand(True)
|
||||
|
||||
box.add(title)
|
||||
box.add(canvas_box)
|
||||
|
||||
buttons = [
|
||||
{"name": _("Close"), "response": Gtk.ResponseType.CANCEL}
|
||||
]
|
||||
self._gtk.Dialog(self._screen, buttons, box, self._close_dialog)
|
||||
|
||||
alloc = canvas_box.get_allocation()
|
||||
canvas = FigureCanvas(fig)
|
||||
canvas.set_size_request(alloc.width, self._screen.height / 3 * 2)
|
||||
canvas_box.add(canvas)
|
||||
canvas_box.show_all()
|
||||
# Remove the "matplotlib-canvas" class which forces a white background.
|
||||
# https://github.com/matplotlib/matplotlib/commit/3c832377fb4c4b32fcbdbc60fdfedb57296bc8c0
|
||||
style_ctx = canvas.get_style_context()
|
||||
for css_class in style_ctx.list_classes():
|
||||
style_ctx.remove_class(css_class)
|
||||
|
||||
@staticmethod
|
||||
def _close_dialog(widget, response):
|
||||
widget.destroy()
|
||||
|
||||
def create_profile(self, widget):
|
||||
name = self.labels['profile_name'].get_text()
|
||||
if " " in name:
|
||||
name = f'"{name}"'
|
||||
if self.active_mesh is None:
|
||||
self.calibrate_mesh(None)
|
||||
|
||||
self._screen._ws.klippy.gcode_script(f"BED_MESH_PROFILE SAVE={name}")
|
||||
self.remove_create()
|
||||
|
||||
def calibrate_mesh(self, widget):
|
||||
self._screen.show_popup_message(_("Calibrating"), level=1)
|
||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
if self._printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
"BED_MESH_CALIBRATE"
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script("BED_MESH_CALIBRATE")
|
||||
|
||||
# Load zcalibrate to do a manual mesh
|
||||
if not (self._printer.config_section_exists("probe") or self._printer.config_section_exists("bltouch")):
|
||||
self.menu_item_clicked(widget, "refresh", {"name": "Mesh calibrate", "panel": "zcalibrate"})
|
||||
if not self._printer.get_probe():
|
||||
self.menu_item_clicked(widget, "refresh", {"name": _("Mesh calibrate"), "panel": "zcalibrate"})
|
||||
|
||||
def _clear_mesh(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
"BED_MESH_CLEAR"
|
||||
)
|
||||
|
||||
def _send_calibrate(self, widget):
|
||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
"BED_MESH_CALIBRATE"
|
||||
)
|
||||
def send_clear_mesh(self, widget):
|
||||
self._screen._ws.klippy.gcode_script("BED_MESH_CLEAR")
|
||||
|
||||
def send_load_mesh(self, widget, profile):
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
KlippyGcodes.bed_mesh_load(profile)
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.bed_mesh_load(profile))
|
||||
|
||||
def send_save_mesh(self, widget, profile):
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
KlippyGcodes.bed_mesh_save(profile)
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.bed_mesh_save(profile))
|
||||
|
||||
def send_remove_mesh(self, widget, profile):
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
KlippyGcodes.bed_mesh_remove(profile)
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.bed_mesh_remove(profile))
|
||||
self.remove_profile(profile)
|
||||
@@ -0,0 +1,91 @@
|
||||
import mpv
|
||||
import logging
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Gdk
|
||||
|
||||
from ks_includes.screen_panel import ScreenPanel
|
||||
|
||||
|
||||
def create_panel(*args):
|
||||
return CameraPanel(*args)
|
||||
|
||||
|
||||
class CameraPanel(ScreenPanel):
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.mpv = None
|
||||
self.da = Gtk.DrawingArea()
|
||||
self.da.set_hexpand(True)
|
||||
self.da.set_vexpand(True)
|
||||
fs = self._gtk.Button("move", _("Fullscreen"), None, self.bts, Gtk.PositionType.LEFT, 1)
|
||||
fs.connect("clicked", self.play)
|
||||
fs.set_hexpand(True)
|
||||
fs.set_vexpand(False)
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
box.add(self.da)
|
||||
box.add(fs)
|
||||
self.content.add(box)
|
||||
self.content.show_all()
|
||||
self.url = self.ks_printer_cfg.get("camera_url", "http://127.0.0.1/webcam/?action=stream").replace('"', '')
|
||||
# wayland has no primary monitor with that we can detect it
|
||||
self.wayland = Gdk.Display.get_default().get_primary_monitor() is None
|
||||
# gpu output driver doesn't work on a pi3 and the autoselected sdl doesn't size correctly
|
||||
# consider adding a software switch to enable the gpu backend if set by the user
|
||||
self.vo = 'wlshm' if self.wayland else 'x11'
|
||||
logging.debug(f"Camera URL: {self.url} vo: {self.vo} wayland: {self.wayland}")
|
||||
|
||||
def activate(self):
|
||||
self.play()
|
||||
|
||||
def deactivate(self):
|
||||
if self.mpv:
|
||||
self.mpv.terminate()
|
||||
self.mpv = None
|
||||
|
||||
def play(self, fs=None):
|
||||
if self.mpv:
|
||||
self.mpv.terminate()
|
||||
self.mpv = None
|
||||
# Create mpv after show or the 'window' property will be None
|
||||
try:
|
||||
self.mpv = mpv.MPV(
|
||||
log_handler=self.log,
|
||||
vo=self.vo,
|
||||
profile='sw-fast',
|
||||
)
|
||||
except ValueError:
|
||||
self.mpv = mpv.MPV(
|
||||
log_handler=self.log,
|
||||
vo=self.vo,
|
||||
)
|
||||
# On wayland mpv cannot be embedded at least for now
|
||||
# https://github.com/mpv-player/mpv/issues/9654
|
||||
# if fs or self.wayland:
|
||||
self.mpv.fullscreen = True
|
||||
|
||||
@self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
def clicked():
|
||||
self.mpv.quit(0)
|
||||
# else:
|
||||
# self.mpv.wid = f'{self.da.get_property("window").get_xid()}'
|
||||
#
|
||||
# @self.mpv.on_key_press('MBTN_LEFT' or 'MBTN_LEFT_DBL')
|
||||
# def clicked():
|
||||
# self._screen.show_popup_message(self.url, level=1)
|
||||
self.mpv.play(self.url)
|
||||
# if fs or self.wayland:
|
||||
try:
|
||||
self.mpv.wait_for_playback()
|
||||
except mpv.ShutdownError:
|
||||
logging.info('Exiting Fullscreen')
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
self.mpv.terminate()
|
||||
self.mpv = None
|
||||
self._screen._menu_go_back()
|
||||
|
||||
@staticmethod
|
||||
def log(loglevel, component, message):
|
||||
logging.debug(f'[{loglevel}] {component}: {message}')
|
||||
+31
-26
@@ -1,7 +1,8 @@
|
||||
import gi
|
||||
import time
|
||||
import re
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
@@ -23,41 +24,44 @@ COLORS = {
|
||||
|
||||
|
||||
class ConsolePanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.autoscroll = True
|
||||
self.hidetemps = True
|
||||
|
||||
def initialize(self, panel_name):
|
||||
self._screen._ws.send_method("server.gcode_store", {"count": 100}, self.gcode_response)
|
||||
|
||||
o1_lbl = Gtk.Label(_("Auto-scroll"))
|
||||
o1_lbl.set_halign(Gtk.Align.END)
|
||||
o1_switch = Gtk.Switch()
|
||||
o1_switch.set_property("width-request", round(self._gtk.get_font_size() * 5))
|
||||
o1_switch.set_property("height-request", round(self._gtk.get_font_size() * 2.5))
|
||||
o1_switch.set_active(self.autoscroll)
|
||||
o1_switch.connect("notify::active", self.set_autoscroll)
|
||||
|
||||
o2_lbl = Gtk.Label(_("Hide temp."))
|
||||
o2_lbl.set_halign(Gtk.Align.END)
|
||||
o2_switch = Gtk.Switch()
|
||||
o2_switch.set_property("width-request", round(self._gtk.get_font_size() * 5))
|
||||
o2_switch.set_property("height-request", round(self._gtk.get_font_size() * 2.5))
|
||||
o2_switch.set_active(self.hidetemps)
|
||||
o2_switch.connect("notify::active", self.hide_temps)
|
||||
|
||||
o3_button = self._gtk.ButtonImage("refresh", _('Clear') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
|
||||
if self._screen.vertical_mode:
|
||||
o1_lbl.set_halign(Gtk.Align.CENTER)
|
||||
o2_lbl.set_halign(Gtk.Align.CENTER)
|
||||
else:
|
||||
o1_lbl.set_halign(Gtk.Align.END)
|
||||
o2_lbl.set_halign(Gtk.Align.END)
|
||||
o3_button = self._gtk.Button("refresh", _('Clear') + " ", None, self.bts, Gtk.PositionType.RIGHT, 1)
|
||||
o3_button.connect("clicked", self.clear)
|
||||
|
||||
options = Gtk.Box()
|
||||
options.set_hexpand(True)
|
||||
options = Gtk.Grid()
|
||||
options.set_vexpand(False)
|
||||
options.add(o1_lbl)
|
||||
options.pack_start(o1_switch, False, False, 5)
|
||||
options.add(o2_lbl)
|
||||
options.pack_start(o2_switch, False, False, 5)
|
||||
options.add(o3_button)
|
||||
if self._screen.vertical_mode:
|
||||
options.attach(o1_lbl, 0, 0, 1, 1)
|
||||
options.attach(o1_switch, 0, 1, 1, 1)
|
||||
options.attach(o2_lbl, 1, 0, 1, 1)
|
||||
options.attach(o2_switch, 1, 1, 1, 1)
|
||||
options.attach(o3_button, 3, 0, 1, 2)
|
||||
else:
|
||||
options.attach(o1_lbl, 0, 0, 1, 1)
|
||||
options.attach(o1_switch, 1, 0, 1, 1)
|
||||
options.attach(o2_lbl, 2, 0, 1, 1)
|
||||
options.attach(o2_switch, 3, 0, 1, 1)
|
||||
options.attach(o3_button, 4, 0, 1, 1)
|
||||
|
||||
sw = Gtk.ScrolledWindow()
|
||||
sw.set_hexpand(True)
|
||||
@@ -80,12 +84,12 @@ class ConsolePanel(ScreenPanel):
|
||||
entry = Gtk.Entry()
|
||||
entry.set_hexpand(True)
|
||||
entry.set_vexpand(False)
|
||||
entry.connect("button-press-event", self._show_keyboard)
|
||||
entry.connect("button-press-event", self._screen.show_keyboard)
|
||||
entry.connect("focus-in-event", self._screen.show_keyboard)
|
||||
entry.connect("activate", self._send_command)
|
||||
entry.grab_focus_without_selecting()
|
||||
|
||||
enter = self._gtk.ButtonImage("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
|
||||
enter = self._gtk.Button("resume", " " + _('Send') + " ", None, .66, Gtk.PositionType.RIGHT, 1)
|
||||
enter.set_hexpand(False)
|
||||
enter.connect("clicked", self._send_command)
|
||||
|
||||
@@ -105,10 +109,7 @@ class ConsolePanel(ScreenPanel):
|
||||
content_box.pack_end(ebox, False, False, 0)
|
||||
self.content.add(content_box)
|
||||
|
||||
def _show_keyboard(self, widget=None, event=None):
|
||||
self._screen.show_keyboard(entry=self.labels['entry'])
|
||||
|
||||
def clear(self, widget):
|
||||
def clear(self, widget=None):
|
||||
self.labels['tb'].set_text("")
|
||||
|
||||
def add_gcode(self, msgtype, msgtime, message):
|
||||
@@ -167,3 +168,7 @@ class ConsolePanel(ScreenPanel):
|
||||
|
||||
self.add_gcode("command", time.time(), cmd)
|
||||
self._screen._ws.klippy.gcode_script(cmd)
|
||||
|
||||
def activate(self):
|
||||
self.clear()
|
||||
self._screen._ws.send_method("server.gcode_store", {"count": 100}, self.gcode_response)
|
||||
+2
-1
@@ -11,7 +11,8 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class ExamplePanel(ScreenPanel):
|
||||
def initialize(self, panel_name):
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
|
||||
# Create gtk items here
|
||||
|
||||
|
||||
+21
-15
@@ -15,22 +15,20 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class ExcludeObjectPanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self._screen = screen
|
||||
self.object_list = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
|
||||
self.object_list.set_valign(Gtk.Align.CENTER)
|
||||
self.object_list.set_halign(Gtk.Align.START)
|
||||
self.buttons = {}
|
||||
self.current_object = self._gtk.ButtonImage("extrude", "", scale=.66, position=Gtk.PositionType.LEFT, lines=1)
|
||||
self.current_object = self._gtk.Button("extrude", "", scale=self.bts, position=Gtk.PositionType.LEFT, lines=1)
|
||||
self.current_object.connect("clicked", self.exclude_current)
|
||||
self.current_object.set_vexpand(False)
|
||||
self.excluded_objects = self._printer.get_stat("exclude_object", "excluded_objects")
|
||||
logging.info(f'Excluded: {self.excluded_objects}')
|
||||
self.objects = self._printer.get_stat("exclude_object", "objects")
|
||||
self.labels['map'] = None
|
||||
|
||||
def initialize(self, panel_name):
|
||||
for obj in self.objects:
|
||||
logging.info(f"Adding {obj['name']}")
|
||||
self.add_object(obj["name"])
|
||||
@@ -38,35 +36,40 @@ class ExcludeObjectPanel(ScreenPanel):
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
scroll.add(self.object_list)
|
||||
scroll.set_halign(Gtk.Align.CENTER)
|
||||
scroll.set_size_request(self._gtk.get_content_width() // 2, 0)
|
||||
|
||||
grid = Gtk.Grid()
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
grid.set_row_homogeneous(False)
|
||||
grid.attach(self.current_object, 0, 0, 2, 1)
|
||||
grid.attach(Gtk.Separator(), 0, 1, 2, 1)
|
||||
|
||||
if self.objects and "polygon" in self.objects[0]:
|
||||
self.labels['map'] = ObjectMap(self._screen, self._printer, self._gtk.get_font_size())
|
||||
self.labels['map'].set_size_request(self._gtk.get_content_width() // 2, 0)
|
||||
grid.attach(self.labels['map'], 0, 2, 1, 1)
|
||||
grid.attach(scroll, 1, 2, 1, 1)
|
||||
self.labels['map'] = ObjectMap(self._screen, self._printer, self._gtk.font_size)
|
||||
if self._screen.vertical_mode:
|
||||
grid.attach(self.labels['map'], 0, 2, 2, 1)
|
||||
grid.attach(scroll, 0, 3, 2, 1)
|
||||
scroll.set_size_request(self._gtk.content_width, -1)
|
||||
else:
|
||||
grid.attach(self.labels['map'], 0, 2, 1, 1)
|
||||
grid.attach(scroll, 1, 2, 1, 1)
|
||||
scroll.set_size_request((self._screen.width * .9) // 2, -1)
|
||||
else:
|
||||
grid.attach(scroll, 0, 2, 2, 1)
|
||||
scroll.set_size_request(self._gtk.content_width, -1)
|
||||
|
||||
self.content.add(grid)
|
||||
self.content.show_all()
|
||||
|
||||
def add_object(self, name):
|
||||
if name not in self.buttons and name not in self.excluded_objects:
|
||||
self.buttons[name] = self._gtk.Button(name.replace("_", " "))
|
||||
self.buttons[name].get_children()[0].set_line_wrap_mode(Pango.WrapMode.CHAR)
|
||||
self.buttons[name] = self._gtk.Button(label=name.replace("_", " "))
|
||||
self.buttons[name].get_children()[0].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
self.buttons[name].get_children()[0].set_line_wrap(True)
|
||||
self.buttons[name].connect("clicked", self.exclude_object, name)
|
||||
self.buttons[name].set_hexpand(True)
|
||||
self.buttons[name].get_style_context().add_class("frame-item")
|
||||
self.object_list.add(self.buttons[name])
|
||||
|
||||
def exclude_object(self, widget, name):
|
||||
if len(self.buttons) == 1:
|
||||
if len(self.excluded_objects) == len(self.objects) - 1:
|
||||
# Do not exclude the last object, this is a workaround for a bug of klipper that starts
|
||||
# to move the toolhead really fast skipping gcode until the file ends
|
||||
# Remove this if they fix it.
|
||||
@@ -99,6 +102,7 @@ class ExcludeObjectPanel(ScreenPanel):
|
||||
for obj in self.objects:
|
||||
logging.info(f"Adding {obj['name']}")
|
||||
self.add_object(obj["name"])
|
||||
self.content.show_all()
|
||||
with contextlib.suppress(KeyError):
|
||||
# Update current objects
|
||||
if data["exclude_object"]["current_object"]:
|
||||
@@ -112,6 +116,8 @@ class ExcludeObjectPanel(ScreenPanel):
|
||||
if name in self.buttons:
|
||||
self.object_list.remove(self.buttons[name])
|
||||
self.update_graph()
|
||||
if len(self.excluded_objects) == len(self.objects):
|
||||
self._screen._menu_go_back()
|
||||
elif action == "notify_gcode_response" and "Excluding object" in data:
|
||||
self._screen.show_popup_message(data, level=1)
|
||||
self.update_graph()
|
||||
|
||||
+74
-74
@@ -1,5 +1,7 @@
|
||||
import gi
|
||||
import logging
|
||||
import re
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
@@ -14,30 +16,41 @@ def create_panel(*args):
|
||||
|
||||
class ExtrudePanel(ScreenPanel):
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
|
||||
self.speeds = ['1', '2', '5', '25']
|
||||
self.speed = 1
|
||||
self.distances = ['5', '10', '15', '25']
|
||||
self.distance = 5
|
||||
macros = self._screen.printer.get_gcode_macros()
|
||||
macros = self._printer.get_gcode_macros()
|
||||
self.load_filament = any("LOAD_FILAMENT" in macro.upper() for macro in macros)
|
||||
self.unload_filament = any("UNLOAD_FILAMENT" in macro.upper() for macro in macros)
|
||||
|
||||
def initialize(self, panel_name):
|
||||
self.labels['extrude'] = self._gtk.ButtonImage("extrude", _("Extrude"), "color4")
|
||||
self.labels['extrude'].connect("clicked", self.extrude, "+")
|
||||
self.labels['load'] = self._gtk.ButtonImage("arrow-down", _("Load"), "color3")
|
||||
self.speeds = ['1', '2', '5', '25']
|
||||
self.distances = ['5', '10', '15', '25']
|
||||
if self.ks_printer_cfg is not None:
|
||||
dis = self.ks_printer_cfg.get("extrude_distances", '5, 10, 15, 25')
|
||||
if re.match(r'^[0-9,\s]+$', dis):
|
||||
dis = [str(i.strip()) for i in dis.split(',')]
|
||||
if 1 < len(dis) < 5:
|
||||
self.distances = dis
|
||||
vel = self.ks_printer_cfg.get("extrude_speeds", '1, 2, 5, 25')
|
||||
if re.match(r'^[0-9,\s]+$', vel):
|
||||
vel = [str(i.strip()) for i in vel.split(',')]
|
||||
if 1 < len(vel) < 5:
|
||||
self.speeds = vel
|
||||
|
||||
self.labels['load'].connect("clicked", self.load_unload, "+")
|
||||
self.labels['unload'] = self._gtk.ButtonImage("arrow-up", _("Unload"), "color2")
|
||||
|
||||
self.labels['unload'].connect("clicked", self.load_unload, "-")
|
||||
self.labels['retract'] = self._gtk.ButtonImage("retract", _("Retract"), "color1")
|
||||
self.labels['retract'].connect("clicked", self.extrude, "-")
|
||||
self.labels['temperature'] = self._gtk.ButtonImage("heat-up", _("Temperature"), "color4")
|
||||
self.labels['temperature'].connect("clicked", self.menu_item_clicked, "temperature", {
|
||||
self.distance = int(self.distances[1])
|
||||
self.speed = int(self.speeds[1])
|
||||
self.buttons = {
|
||||
'extrude': self._gtk.Button("extrude", _("Extrude"), "color4"),
|
||||
'load': self._gtk.Button("arrow-down", _("Load"), "color3"),
|
||||
'unload': self._gtk.Button("arrow-up", _("Unload"), "color2"),
|
||||
'retract': self._gtk.Button("retract", _("Retract"), "color1"),
|
||||
'temperature': self._gtk.Button("heat-up", _("Temperature"), "color4"),
|
||||
}
|
||||
self.buttons['extrude'].connect("clicked", self.extrude, "+")
|
||||
self.buttons['load'].connect("clicked", self.load_unload, "+")
|
||||
self.buttons['unload'].connect("clicked", self.load_unload, "-")
|
||||
self.buttons['retract'].connect("clicked", self.extrude, "-")
|
||||
self.buttons['temperature'].connect("clicked", self.menu_item_clicked, "temperature", {
|
||||
"name": "Temperature",
|
||||
"panel": "temperature"
|
||||
})
|
||||
@@ -47,10 +60,9 @@ class ExtrudePanel(ScreenPanel):
|
||||
i = 0
|
||||
for extruder in self._printer.get_tools():
|
||||
if self._printer.extrudercount > 1:
|
||||
self.labels[extruder] = self._gtk.ButtonImage(f"extruder-{i}",
|
||||
f"T{self._printer.get_tool_number(extruder)}")
|
||||
self.labels[extruder] = self._gtk.Button(f"extruder-{i}", f"T{self._printer.get_tool_number(extruder)}")
|
||||
else:
|
||||
self.labels[extruder] = self._gtk.ButtonImage("extruder", "")
|
||||
self.labels[extruder] = self._gtk.Button("extruder", "")
|
||||
self.labels[extruder].connect("clicked", self.change_extruder, extruder)
|
||||
if extruder == self.current_extruder:
|
||||
self.labels[extruder].get_style_context().add_class("button_active")
|
||||
@@ -58,11 +70,11 @@ class ExtrudePanel(ScreenPanel):
|
||||
extgrid.attach(self.labels[extruder], i, 0, 1, 1)
|
||||
i += 1
|
||||
if i < (limit - 1):
|
||||
extgrid.attach(self.labels['temperature'], i + 1, 0, 1, 1)
|
||||
extgrid.attach(self.buttons['temperature'], i + 1, 0, 1, 1)
|
||||
|
||||
distgrid = Gtk.Grid()
|
||||
for j, i in enumerate(self.distances):
|
||||
self.labels[f"dist{i}"] = self._gtk.ToggleButton(i)
|
||||
self.labels[f"dist{i}"] = self._gtk.Button(label=i)
|
||||
self.labels[f"dist{i}"].connect("clicked", self.change_distance, int(i))
|
||||
ctx = self.labels[f"dist{i}"].get_style_context()
|
||||
if ((self._screen.lang_ltr is True and j == 0) or
|
||||
@@ -73,14 +85,13 @@ class ExtrudePanel(ScreenPanel):
|
||||
ctx.add_class("distbutton_bottom")
|
||||
else:
|
||||
ctx.add_class("distbutton")
|
||||
if i == "5":
|
||||
if int(i) == self.distance:
|
||||
ctx.add_class("distbutton_active")
|
||||
distgrid.attach(self.labels[f"dist{i}"], j, 0, 1, 1)
|
||||
self.labels["dist5"].set_active(True)
|
||||
|
||||
speedgrid = Gtk.Grid()
|
||||
for j, i in enumerate(self.speeds):
|
||||
self.labels[f"speed{i}"] = self._gtk.ToggleButton(_(i))
|
||||
self.labels[f"speed{i}"] = self._gtk.Button(label=i)
|
||||
self.labels[f"speed{i}"].connect("clicked", self.change_speed, int(i))
|
||||
ctx = self.labels[f"speed{i}"].get_style_context()
|
||||
if ((self._screen.lang_ltr is True and j == 0) or
|
||||
@@ -91,10 +102,9 @@ class ExtrudePanel(ScreenPanel):
|
||||
ctx.add_class("distbutton_bottom")
|
||||
else:
|
||||
ctx.add_class("distbutton")
|
||||
if i == "2":
|
||||
if int(i) == self.speed:
|
||||
ctx.add_class("distbutton_active")
|
||||
speedgrid.attach(self.labels[f"speed{i}"], j, 0, 1, 1)
|
||||
self.labels["speed2"].set_active(True)
|
||||
|
||||
distbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.labels['extrude_dist'] = Gtk.Label(_("Distance (mm)"))
|
||||
@@ -124,17 +134,13 @@ class ExtrudePanel(ScreenPanel):
|
||||
self.labels[x]['label'].set_halign(Gtk.Align.CENTER)
|
||||
self.labels[x]['label'].set_hexpand(True)
|
||||
self.labels[x]['label'].set_ellipsize(Pango.EllipsizeMode.END)
|
||||
self.labels[x]['switch'].set_property("width-request", round(self._gtk.get_font_size() * 2))
|
||||
self.labels[x]['switch'].set_property("height-request", round(self._gtk.get_font_size()))
|
||||
self.labels[x]['switch'].set_property("width-request", round(self._gtk.font_size * 2))
|
||||
self.labels[x]['switch'].set_property("height-request", round(self._gtk.font_size))
|
||||
self.labels[x]['switch'].connect("notify::active", self.enable_disable_fs, name, x)
|
||||
self.labels[x]['box'].pack_start(self.labels[x]['label'], True, True, 5)
|
||||
self.labels[x]['box'].pack_start(self.labels[x]['switch'], False, False, 5)
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor")
|
||||
self.labels[x]['box'].set_hexpand(True)
|
||||
if self._printer.get_dev_stat(x, "filament_detected"):
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
|
||||
else:
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
|
||||
sensors.attach(self.labels[x]['box'], s, 0, 1, 1)
|
||||
|
||||
grid = Gtk.Grid()
|
||||
@@ -142,28 +148,36 @@ class ExtrudePanel(ScreenPanel):
|
||||
grid.attach(extgrid, 0, 0, 4, 1)
|
||||
|
||||
if self._screen.vertical_mode:
|
||||
grid.attach(self.labels['extrude'], 0, 1, 2, 1)
|
||||
grid.attach(self.labels['retract'], 2, 1, 2, 1)
|
||||
grid.attach(self.labels['load'], 0, 2, 2, 1)
|
||||
grid.attach(self.labels['unload'], 2, 2, 2, 1)
|
||||
grid.attach(self.buttons['extrude'], 0, 1, 2, 1)
|
||||
grid.attach(self.buttons['retract'], 2, 1, 2, 1)
|
||||
grid.attach(self.buttons['load'], 0, 2, 2, 1)
|
||||
grid.attach(self.buttons['unload'], 2, 2, 2, 1)
|
||||
grid.attach(distbox, 0, 3, 4, 1)
|
||||
grid.attach(speedbox, 0, 4, 4, 1)
|
||||
grid.attach(sensors, 0, 5, 4, 1)
|
||||
else:
|
||||
grid.attach(self.labels['extrude'], 0, 2, 1, 1)
|
||||
grid.attach(self.labels['load'], 1, 2, 1, 1)
|
||||
grid.attach(self.labels['unload'], 2, 2, 1, 1)
|
||||
grid.attach(self.labels['retract'], 3, 2, 1, 1)
|
||||
grid.attach(self.buttons['extrude'], 0, 2, 1, 1)
|
||||
grid.attach(self.buttons['load'], 1, 2, 1, 1)
|
||||
grid.attach(self.buttons['unload'], 2, 2, 1, 1)
|
||||
grid.attach(self.buttons['retract'], 3, 2, 1, 1)
|
||||
grid.attach(distbox, 0, 3, 2, 1)
|
||||
grid.attach(speedbox, 2, 3, 2, 1)
|
||||
grid.attach(sensors, 0, 4, 4, 1)
|
||||
|
||||
self.content.add(grid)
|
||||
|
||||
def process_busy(self, busy):
|
||||
for button in self.buttons:
|
||||
if button == "temperature":
|
||||
continue
|
||||
self.buttons[button].set_sensitive((not busy))
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_busy":
|
||||
self.process_busy(data)
|
||||
return
|
||||
if action != "notify_status_update":
|
||||
return
|
||||
|
||||
for x in self._printer.get_tools():
|
||||
self.update_temp(
|
||||
x,
|
||||
@@ -185,32 +199,22 @@ class ExtrudePanel(ScreenPanel):
|
||||
if 'enabled' in data[x]:
|
||||
self._printer.set_dev_stat(x, "enabled", data[x]['enabled'])
|
||||
self.labels[x]['switch'].set_active(data[x]['enabled'])
|
||||
logging.info(f"{x} Enabled: {data[x]['enabled']}")
|
||||
if 'filament_detected' in data[x]:
|
||||
self._printer.set_dev_stat(x, "filament_detected", data[x]['filament_detected'])
|
||||
if data[x]['filament_detected']:
|
||||
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_empty")
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
|
||||
else:
|
||||
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_detected")
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
|
||||
logging.info(f"{x}: Filament detected: {data[x]['filament_detected']}")
|
||||
if self._printer.get_stat(x, "enabled"):
|
||||
if data[x]['filament_detected']:
|
||||
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_empty")
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
|
||||
else:
|
||||
self.labels[x]['box'].get_style_context().remove_class("filament_sensor_detected")
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
|
||||
logging.info(f"{x}: {self._printer.get_stat(x)}")
|
||||
|
||||
def change_distance(self, widget, distance):
|
||||
if self.distance == distance:
|
||||
return
|
||||
logging.info(f"### Distance {distance}")
|
||||
|
||||
ctx = self.labels[f"dist{self.distance}"].get_style_context()
|
||||
ctx.remove_class("distbutton_active")
|
||||
|
||||
self.labels[f"dist{self.distance}"].get_style_context().remove_class("distbutton_active")
|
||||
self.labels[f"dist{distance}"].get_style_context().add_class("distbutton_active")
|
||||
self.distance = distance
|
||||
ctx = self.labels[f"dist{self.distance}"].get_style_context()
|
||||
ctx.add_class("distbutton_active")
|
||||
for i in self.distances:
|
||||
if i == self.distance:
|
||||
continue
|
||||
self.labels[f"dist{i}"].set_active(False)
|
||||
|
||||
def change_extruder(self, widget, extruder):
|
||||
logging.info(f"Changing extruder to {extruder}")
|
||||
@@ -221,18 +225,10 @@ class ExtrudePanel(ScreenPanel):
|
||||
self._screen._ws.klippy.gcode_script(f"T{self._printer.get_tool_number(extruder)}")
|
||||
|
||||
def change_speed(self, widget, speed):
|
||||
if self.speed == speed:
|
||||
return
|
||||
logging.info(f"### Speed {speed}")
|
||||
|
||||
self.labels[f"speed{self.speed}"].get_style_context().remove_class("distbutton_active")
|
||||
|
||||
self.labels[f"speed{speed}"].get_style_context().add_class("distbutton_active")
|
||||
self.speed = speed
|
||||
self.labels[f"speed{self.speed}"].get_style_context().add_class("distbutton_active")
|
||||
for i in self.speeds:
|
||||
if i == self.speed:
|
||||
continue
|
||||
self.labels[f"speed{i}"].set_active(False)
|
||||
|
||||
def extrude(self, widget, direction):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.EXTRUDE_REL)
|
||||
@@ -254,6 +250,10 @@ class ExtrudePanel(ScreenPanel):
|
||||
if switch.get_active():
|
||||
self._printer.set_dev_stat(x, "enabled", True)
|
||||
self._screen._ws.klippy.gcode_script(f"SET_FILAMENT_SENSOR SENSOR={name} ENABLE=1")
|
||||
if self._printer.get_stat(x, "filament_detected"):
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_detected")
|
||||
else:
|
||||
self.labels[x]['box'].get_style_context().add_class("filament_sensor_empty")
|
||||
else:
|
||||
self._printer.set_dev_stat(x, "enabled", False)
|
||||
self._screen._ws.klippy.gcode_script(f"SET_FILAMENT_SENSOR SENSOR={name} ENABLE=0")
|
||||
|
||||
+8
-15
@@ -1,6 +1,7 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Pango
|
||||
|
||||
@@ -16,10 +17,9 @@ CHANGEABLE_FANS = ["fan", "fan_generic"]
|
||||
|
||||
|
||||
class FanPanel(ScreenPanel):
|
||||
|
||||
def initialize(self, panel_name):
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.fan_speed = {}
|
||||
self.user_selecting = False
|
||||
self.devices = {}
|
||||
# Create a grid for all devices
|
||||
self.labels['devices'] = Gtk.Grid()
|
||||
@@ -38,7 +38,7 @@ class FanPanel(ScreenPanel):
|
||||
|
||||
for fan in self.devices:
|
||||
if fan in data and "speed" in data[fan]:
|
||||
self.update_fan_speed(None, fan, self._printer.get_fan_speed(fan, data[fan]["speed"]))
|
||||
self.update_fan_speed(None, fan, self._printer.get_fan_speed(fan))
|
||||
|
||||
def update_fan_speed(self, widget, fan, speed):
|
||||
if fan not in self.devices:
|
||||
@@ -72,10 +72,10 @@ class FanPanel(ScreenPanel):
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
|
||||
fan_col = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
stop_btn = self._gtk.ButtonImage("cancel", None, "color1", 1)
|
||||
stop_btn = self._gtk.Button("cancel", None, "color1")
|
||||
stop_btn.set_hexpand(False)
|
||||
stop_btn.connect("clicked", self.update_fan_speed, fan, 0)
|
||||
max_btn = self._gtk.ButtonImage("fan-on", _("Max"), "color2", 1)
|
||||
max_btn = self._gtk.Button("fan-on", _("Max"), "color2")
|
||||
max_btn.set_hexpand(False)
|
||||
max_btn.connect("clicked", self.update_fan_speed, fan, 100)
|
||||
|
||||
@@ -103,10 +103,6 @@ class FanPanel(ScreenPanel):
|
||||
fan_row.add(name)
|
||||
fan_row.add(fan_col)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(fan_row)
|
||||
|
||||
self.devices[fan] = {
|
||||
"changeable": changeable,
|
||||
"scale": scale,
|
||||
@@ -123,7 +119,7 @@ class FanPanel(ScreenPanel):
|
||||
pos = devices.index(fan)
|
||||
|
||||
self.labels['devices'].insert_row(pos)
|
||||
self.labels['devices'].attach(frame, 0, pos, 1, 1)
|
||||
self.labels['devices'].attach(fan_row, 0, pos, 1, 1)
|
||||
self.labels['devices'].show_all()
|
||||
|
||||
def load_fans(self):
|
||||
@@ -134,9 +130,6 @@ class FanPanel(ScreenPanel):
|
||||
if name.startswith("_"):
|
||||
continue
|
||||
self.add_fan(fan)
|
||||
frame = Gtk.Frame()
|
||||
frame.set_vexpand(False)
|
||||
self.labels['devices'].attach(frame, 0, -1, 1, 1)
|
||||
|
||||
def set_fan_speed(self, widget, event, fan):
|
||||
value = self.devices[fan]['scale'].get_value()
|
||||
|
||||
+41
-84
@@ -1,8 +1,9 @@
|
||||
import gi
|
||||
import logging
|
||||
import re
|
||||
import contextlib
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
@@ -15,34 +16,28 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class FineTunePanel(ScreenPanel):
|
||||
user_selecting = False
|
||||
|
||||
bs = 0
|
||||
bs_delta = "0.05"
|
||||
bs_deltas = ["0.01", "0.05"]
|
||||
percent_delta = 1
|
||||
bs_delta = bs_deltas[-1]
|
||||
percent_deltas = ['1', '5', '10', '25']
|
||||
extrusion = 100
|
||||
speed = 100
|
||||
percent_delta = percent_deltas[-2]
|
||||
speed = extrusion = 100
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
logging.debug("FineTunePanel")
|
||||
|
||||
print_cfg = self._config.get_printer_config(self._screen.connected_printer)
|
||||
if print_cfg is not None:
|
||||
bs = print_cfg.get("z_babystep_values", "0.01, 0.05")
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
if self.ks_printer_cfg is not None:
|
||||
bs = self.ks_printer_cfg.get("z_babystep_values", "0.01, 0.05")
|
||||
if re.match(r'^[0-9,\.\s]+$', bs):
|
||||
bs = [str(i.strip()) for i in bs.split(',')]
|
||||
self.bs_deltas = bs if len(bs) <= 2 else [bs[0], bs[-1]]
|
||||
self.bs_delta = self.bs_deltas[0]
|
||||
if 1 < len(bs) < 3:
|
||||
self.bs_deltas = bs
|
||||
self.bs_delta = self.bs_deltas[-1]
|
||||
|
||||
# babystepping grid
|
||||
bsgrid = Gtk.Grid()
|
||||
for j, i in enumerate(self.bs_deltas):
|
||||
self.labels[i] = self._gtk.ToggleButton(i)
|
||||
self.labels[i].connect("clicked", self.change_bs_delta, i)
|
||||
ctx = self.labels[i].get_style_context()
|
||||
self.labels[f"bdelta{i}"] = self._gtk.Button(label=i)
|
||||
self.labels[f"bdelta{i}"].connect("clicked", self.change_bs_delta, float(i))
|
||||
ctx = self.labels[f"bdelta{i}"].get_style_context()
|
||||
if j == 0:
|
||||
ctx.add_class("distbutton_top")
|
||||
elif j == len(self.bs_deltas) - 1:
|
||||
@@ -51,70 +46,52 @@ class FineTunePanel(ScreenPanel):
|
||||
ctx.add_class("distbutton")
|
||||
if i == self.bs_delta:
|
||||
ctx.add_class("distbutton_active")
|
||||
bsgrid.attach(self.labels[i], j, 0, 1, 1)
|
||||
bsgrid.attach(self.labels[f"bdelta{i}"], j, 0, 1, 1)
|
||||
# Grid for percentage
|
||||
deltgrid = Gtk.Grid()
|
||||
for j, i in enumerate(self.percent_deltas):
|
||||
self.labels[i] = self._gtk.ToggleButton(f"{i}%")
|
||||
self.labels[i].connect("clicked", self.change_percent_delta, i)
|
||||
ctx = self.labels[i].get_style_context()
|
||||
self.labels[f"pdelta{i}"] = self._gtk.Button(label=f"{i}%")
|
||||
self.labels[f"pdelta{i}"].connect("clicked", self.change_percent_delta, int(i))
|
||||
ctx = self.labels[f"pdelta{i}"].get_style_context()
|
||||
if j == 0:
|
||||
ctx.add_class("distbutton_top")
|
||||
elif j == len(self.percent_deltas) - 1:
|
||||
ctx.add_class("distbutton_bottom")
|
||||
else:
|
||||
ctx.add_class("distbutton")
|
||||
if i == "1":
|
||||
if i == self.percent_delta:
|
||||
ctx.add_class("distbutton_active")
|
||||
deltgrid.attach(self.labels[i], j, 0, 1, 1)
|
||||
self.labels["1"].set_active(True)
|
||||
deltgrid.attach(self.labels[f"pdelta{i}"], j, 0, 1, 1)
|
||||
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
grid.set_row_homogeneous(False)
|
||||
|
||||
self.labels['z+'] = self._gtk.Button("z-farther", "Z+", "color1")
|
||||
self.labels['z-'] = self._gtk.Button("z-closer", "Z-", "color1")
|
||||
self.labels['zoffset'] = self._gtk.Button("refresh", ' 0.00' + _("mm"),
|
||||
"color1", self.bts, Gtk.PositionType.LEFT, 1)
|
||||
self.labels['speed+'] = self._gtk.Button("speed+", _("Speed +"), "color3")
|
||||
self.labels['speed-'] = self._gtk.Button("speed-", _("Speed -"), "color3")
|
||||
self.labels['speedfactor'] = self._gtk.Button("refresh", " 100%",
|
||||
"color3", self.bts, Gtk.PositionType.LEFT, 1)
|
||||
|
||||
self.labels['extrude+'] = self._gtk.Button("flow+", _("Extrusion +"), "color4")
|
||||
self.labels['extrude-'] = self._gtk.Button("flow-", _("Extrusion -"), "color4")
|
||||
self.labels['extrudefactor'] = self._gtk.Button("refresh", " 100%",
|
||||
"color4", self.bts, Gtk.PositionType.LEFT, 1)
|
||||
if self._screen.vertical_mode:
|
||||
self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1")
|
||||
self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1")
|
||||
self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"),
|
||||
"color1", .6, Gtk.PositionType.LEFT, 1)
|
||||
|
||||
self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3")
|
||||
self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3")
|
||||
self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%",
|
||||
"color3", .6, Gtk.PositionType.LEFT, 1)
|
||||
|
||||
self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4")
|
||||
self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4")
|
||||
self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%",
|
||||
"color4", .6, Gtk.PositionType.LEFT, 1)
|
||||
|
||||
grid.attach(self.labels['z+'], 0, 0, 1, 1)
|
||||
grid.attach(self.labels['z-'], 1, 0, 1, 1)
|
||||
grid.attach(self.labels['zoffset'], 2, 0, 1, 1)
|
||||
grid.attach(bsgrid, 0, 1, 3, 1)
|
||||
|
||||
grid.attach(self.labels['speed-'], 0, 2, 1, 1)
|
||||
grid.attach(self.labels['speed+'], 1, 2, 1, 1)
|
||||
grid.attach(self.labels['speedfactor'], 2, 2, 1, 1)
|
||||
|
||||
grid.attach(self.labels['extrude-'], 0, 3, 1, 1)
|
||||
grid.attach(self.labels['extrude+'], 1, 3, 1, 1)
|
||||
grid.attach(self.labels['extrudefactor'], 2, 3, 1, 1)
|
||||
grid.attach(deltgrid, 0, 4, 3, 1)
|
||||
else:
|
||||
self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color1")
|
||||
self.labels['zoffset'] = self._gtk.ButtonImage("refresh", " 0.00" + _("mm"),
|
||||
"color1", .6, Gtk.PositionType.LEFT, 1)
|
||||
self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color1")
|
||||
|
||||
self.labels['speed+'] = self._gtk.ButtonImage("speed+", _("Speed +"), "color3")
|
||||
self.labels['speedfactor'] = self._gtk.ButtonImage("refresh", " 100%",
|
||||
"color3", .6, Gtk.PositionType.LEFT, 1)
|
||||
self.labels['speed-'] = self._gtk.ButtonImage("speed-", _("Speed -"), "color3")
|
||||
|
||||
self.labels['extrude+'] = self._gtk.ButtonImage("flow+", _("Extrusion +"), "color4")
|
||||
self.labels['extrudefactor'] = self._gtk.ButtonImage("refresh", " 100%",
|
||||
"color4", .6, Gtk.PositionType.LEFT, 1)
|
||||
self.labels['extrude-'] = self._gtk.ButtonImage("flow-", _("Extrusion -"), "color4")
|
||||
grid.attach(self.labels['zoffset'], 0, 0, 1, 1)
|
||||
grid.attach(self.labels['z+'], 0, 1, 1, 1)
|
||||
grid.attach(self.labels['z-'], 0, 2, 1, 1)
|
||||
@@ -148,10 +125,10 @@ class FineTunePanel(ScreenPanel):
|
||||
if "homing_origin" in data["gcode_move"]:
|
||||
self.labels['zoffset'].set_label(f' {data["gcode_move"]["homing_origin"][2]:.2f}mm')
|
||||
if "extrude_factor" in data["gcode_move"]:
|
||||
self.extrusion = int(round(data["gcode_move"]["extrude_factor"] * 100))
|
||||
self.extrusion = round(float(data["gcode_move"]["extrude_factor"]) * 100)
|
||||
self.labels['extrudefactor'].set_label(f" {self.extrusion:3}%")
|
||||
if "speed_factor" in data["gcode_move"]:
|
||||
self.speed = int(round(data["gcode_move"]["speed_factor"] * 100))
|
||||
self.speed = round(float(data["gcode_move"]["speed_factor"]) * 100)
|
||||
self.labels['speedfactor'].set_label(f" {self.speed:3}%")
|
||||
|
||||
def change_babystepping(self, widget, direction):
|
||||
@@ -169,20 +146,10 @@ class FineTunePanel(ScreenPanel):
|
||||
self._screen._ws.klippy.gcode_script(f"SET_GCODE_OFFSET Z_ADJUST={direction}{self.bs_delta} MOVE=1")
|
||||
|
||||
def change_bs_delta(self, widget, bs):
|
||||
if self.bs_delta == bs:
|
||||
return
|
||||
logging.info(f"### BabyStepping {bs}")
|
||||
|
||||
ctx = self.labels[f"{self.bs_delta}"].get_style_context()
|
||||
ctx.remove_class("distbutton_active")
|
||||
|
||||
self.labels[f"bdelta{self.bs_delta}"].get_style_context().remove_class("distbutton_active")
|
||||
self.labels[f"bdelta{bs}"].get_style_context().add_class("distbutton_active")
|
||||
self.bs_delta = bs
|
||||
ctx = self.labels[self.bs_delta].get_style_context()
|
||||
ctx.add_class("distbutton_active")
|
||||
for i in self.bs_deltas:
|
||||
if i == self.bs_delta:
|
||||
continue
|
||||
self.labels[i].set_active(False)
|
||||
|
||||
def change_extrusion(self, widget, direction):
|
||||
if direction == "+":
|
||||
@@ -209,17 +176,7 @@ class FineTunePanel(ScreenPanel):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.set_speed_rate(self.speed))
|
||||
|
||||
def change_percent_delta(self, widget, delta):
|
||||
if self.percent_delta == delta:
|
||||
return
|
||||
logging.info(f"### Delta {delta}")
|
||||
|
||||
ctx = self.labels[f"{self.percent_delta}"].get_style_context()
|
||||
ctx.remove_class("distbutton_active")
|
||||
|
||||
self.labels[f"pdelta{self.percent_delta}"].get_style_context().remove_class("distbutton_active")
|
||||
self.labels[f"pdelta{delta}"].get_style_context().add_class("distbutton_active")
|
||||
self.percent_delta = delta
|
||||
ctx = self.labels[self.percent_delta].get_style_context()
|
||||
ctx.add_class("distbutton_active")
|
||||
for i in self.percent_deltas:
|
||||
if i == self.percent_delta:
|
||||
continue
|
||||
self.labels[f"{i}"].set_active(False)
|
||||
+67
-66
@@ -1,5 +1,6 @@
|
||||
import gi
|
||||
import logging
|
||||
import re
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Pango
|
||||
@@ -12,29 +13,22 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class MacroPanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.sort_reverse = False
|
||||
self.sort_lbl = _("Name")
|
||||
self.sort_btn = self._gtk.ButtonImage("arrow-up", self.sort_lbl, "color1", .5, Gtk.PositionType.RIGHT, 1)
|
||||
self.sort_btn = self._gtk.Button("arrow-up", _("Name"), "color1", self.bts, Gtk.PositionType.RIGHT, 1)
|
||||
self.sort_btn.connect("clicked", self.change_sort)
|
||||
self.sort_btn.set_hexpand(True)
|
||||
self.allmacros = {}
|
||||
self.loaded_macros = []
|
||||
self.options = {}
|
||||
self.macros = {}
|
||||
self.menu = ['macros_menu']
|
||||
|
||||
def initialize(self, panel_name):
|
||||
sort = Gtk.Label(_("Sort:"))
|
||||
sort.set_hexpand(False)
|
||||
|
||||
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, 1)
|
||||
adjust.connect("clicked", self.load_menu, 'options')
|
||||
adjust = self._gtk.Button("settings", " " + _("Settings"), "color2", self.bts, Gtk.PositionType.LEFT, 1)
|
||||
adjust.connect("clicked", self.load_menu, 'options', _("Settings"))
|
||||
adjust.set_hexpand(False)
|
||||
|
||||
sbox = Gtk.Box()
|
||||
sbox.set_vexpand(False)
|
||||
sbox.pack_start(sort, False, False, 5)
|
||||
sbox.pack_start(self.sort_btn, True, True, 5)
|
||||
sbox.pack_start(adjust, True, True, 5)
|
||||
|
||||
@@ -69,9 +63,9 @@ class MacroPanel(ScreenPanel):
|
||||
name.set_halign(Gtk.Align.START)
|
||||
name.set_valign(Gtk.Align.CENTER)
|
||||
name.set_line_wrap(True)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.CHAR)
|
||||
|
||||
btn = self._gtk.ButtonImage("resume", style="color3")
|
||||
btn = self._gtk.Button("resume", style="color3")
|
||||
btn.connect("clicked", self.run_gcode_macro, macro)
|
||||
btn.set_hexpand(False)
|
||||
btn.set_halign(Gtk.Align.END)
|
||||
@@ -79,34 +73,53 @@ class MacroPanel(ScreenPanel):
|
||||
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
labels.add(name)
|
||||
|
||||
dev = Gtk.Box(spacing=5)
|
||||
dev.add(labels)
|
||||
dev.add(btn)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(dev)
|
||||
row = Gtk.Box(spacing=5)
|
||||
row.get_style_context().add_class("frame-item")
|
||||
row.add(labels)
|
||||
row.add(btn)
|
||||
|
||||
self.macros[macro] = {
|
||||
"row": frame
|
||||
"row": row,
|
||||
"params": {},
|
||||
}
|
||||
pattern = r'params\.(?P<param>..*)\|default\((?P<default>..*)\).*'
|
||||
gcode = self._printer.get_macro(macro)
|
||||
if gcode and "gcode" in gcode:
|
||||
gcode = gcode["gcode"].split("\n")
|
||||
else:
|
||||
logging.debug(f"Couldn't load {macro}\n{gcode}")
|
||||
return
|
||||
i = 0
|
||||
for line in gcode:
|
||||
if line.startswith("{") and "params." in line:
|
||||
result = re.search(pattern, line)
|
||||
if result:
|
||||
result = result.groupdict()
|
||||
default = result["default"] if "default" in result else ""
|
||||
entry = Gtk.Entry()
|
||||
entry.set_text(default)
|
||||
self.macros[macro]["params"].update({result["param"]: entry})
|
||||
|
||||
macros = sorted(self.macros, reverse=self.sort_reverse, key=str.casefold)
|
||||
pos = macros.index(macro)
|
||||
|
||||
self.loaded_macros.append(macro)
|
||||
self.labels['macros'].insert_row(pos)
|
||||
self.labels['macros'].attach(self.macros[macro]['row'], 0, pos, 1, 1)
|
||||
for param in self.macros[macro]["params"]:
|
||||
labels.add(Gtk.Label(param))
|
||||
self.macros[macro]["params"][param].connect("focus-in-event", self._screen.show_keyboard)
|
||||
self.macros[macro]["params"][param].connect("focus-out-event", self._screen.remove_keyboard)
|
||||
labels.add(self.macros[macro]["params"][param])
|
||||
|
||||
def run_gcode_macro(self, widget, macro):
|
||||
self._screen._ws.klippy.gcode_script(macro)
|
||||
params = ""
|
||||
for param in self.macros[macro]["params"]:
|
||||
value = self.macros[macro]["params"][param].get_text()
|
||||
if value:
|
||||
params += f'{param}={value} '
|
||||
self._screen._ws.klippy.gcode_script(f"{macro} {params}")
|
||||
|
||||
def change_sort(self, widget):
|
||||
self.sort_reverse ^= True
|
||||
if self.sort_reverse:
|
||||
self.sort_btn.set_image(self._gtk.Image("arrow-down", .5))
|
||||
self.sort_btn.set_image(self._gtk.Image("arrow-down", self.bts))
|
||||
else:
|
||||
self.sort_btn.set_image(self._gtk.Image("arrow-up", .5))
|
||||
self.sort_btn.set_image(self._gtk.Image("arrow-up", self.bts))
|
||||
self.sort_btn.show()
|
||||
|
||||
GLib.idle_add(self.reload_macros)
|
||||
@@ -114,40 +127,31 @@ class MacroPanel(ScreenPanel):
|
||||
def reload_macros(self):
|
||||
self.labels['macros'].remove_column(0)
|
||||
self.macros = {}
|
||||
self.loaded_macros = []
|
||||
self.allmacros = {}
|
||||
self.options = {}
|
||||
self.labels['options'].remove_column(0)
|
||||
self.load_gcode_macros()
|
||||
|
||||
def load_gcode_macros(self):
|
||||
macros = self._screen.printer.get_gcode_macros()
|
||||
section_name = f"displayed_macros {self._screen.connected_printer}"
|
||||
logging.info(f"Macro section name [{section_name}]")
|
||||
|
||||
for x in macros:
|
||||
macro = x[12:].strip()
|
||||
|
||||
if macro in self.loaded_macros:
|
||||
for macro in self._printer.get_gcode_macros():
|
||||
macro = macro[12:].strip()
|
||||
if macro.startswith("_"): # Support for hiding macros by name
|
||||
continue
|
||||
|
||||
if (section_name not in self._config.get_config().sections() or
|
||||
self._config.get_config().getboolean(section_name, macro.lower(), fallback=True)):
|
||||
self.add_gcode_macro(macro)
|
||||
|
||||
for macro in self._printer.get_config_section_list("gcode_macro "):
|
||||
macro = macro[12:]
|
||||
# Support for hiding macros by name
|
||||
if macro.startswith("_"):
|
||||
continue
|
||||
|
||||
self.allmacros[macro] = {
|
||||
self.options[macro] = {
|
||||
"name": macro,
|
||||
"section": f"displayed_macros {self._screen.connected_printer}",
|
||||
}
|
||||
for macro in list(self.allmacros):
|
||||
self.add_option('options', self.allmacros, macro, self.allmacros[macro])
|
||||
show = self._config.get_config().getboolean(self.options[macro]["section"], macro.lower(), fallback=True)
|
||||
if macro not in self.macros and show:
|
||||
self.add_gcode_macro(macro)
|
||||
|
||||
self.labels['macros'].show_all()
|
||||
for macro in list(self.options):
|
||||
self.add_option('options', self.options, macro, self.options[macro])
|
||||
macros = sorted(self.macros, reverse=self.sort_reverse, key=str.casefold)
|
||||
for macro in macros:
|
||||
pos = macros.index(macro)
|
||||
self.labels['macros'].insert_row(pos)
|
||||
self.labels['macros'].attach(self.macros[macro]['row'], 0, pos, 1, 1)
|
||||
self.labels['macros'].show_all()
|
||||
|
||||
def add_option(self, boxname, opt_array, opt_name, option):
|
||||
name = Gtk.Label()
|
||||
@@ -166,27 +170,24 @@ class MacroPanel(ScreenPanel):
|
||||
switch.set_vexpand(False)
|
||||
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name, fallback=True))
|
||||
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name)
|
||||
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
|
||||
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
|
||||
switch.set_property("width-request", round(self._gtk.font_size * 7))
|
||||
switch.set_property("height-request", round(self._gtk.font_size * 3.5))
|
||||
box.add(switch)
|
||||
|
||||
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
dev.get_style_context().add_class("frame-item")
|
||||
dev.set_hexpand(True)
|
||||
dev.set_vexpand(False)
|
||||
dev.set_valign(Gtk.Align.CENTER)
|
||||
dev.add(name)
|
||||
dev.add(box)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(dev)
|
||||
frame.show_all()
|
||||
opt_array[opt_name] = {
|
||||
"name": option['name'],
|
||||
"row": frame
|
||||
"row": dev
|
||||
}
|
||||
|
||||
opts = sorted(self.allmacros, key=str.casefold)
|
||||
opts = sorted(self.options, key=str.casefold)
|
||||
pos = opts.index(opt_name)
|
||||
|
||||
self.labels[boxname].insert_row(pos)
|
||||
|
||||
+41
-53
@@ -1,6 +1,7 @@
|
||||
import gi
|
||||
import re
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
@@ -21,11 +22,11 @@ SHAPERS = ['zv', 'mzv', 'zvd', 'ei', '2hump_ei', '3hump_ei']
|
||||
|
||||
|
||||
class InputShaperPanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.freq_xy_adj = {}
|
||||
self.freq_xy_combo = {}
|
||||
self.calibrate_btn = self._gtk.ButtonImage("move", _('Finding ADXL'), "color1", lines=1)
|
||||
self.calibrate_btn = self._gtk.Button("move", _('Finding ADXL'), "color1", lines=1)
|
||||
self.calibrate_btn.connect("clicked", self.on_popover_clicked)
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
self.status = Gtk.Label("")
|
||||
@@ -34,11 +35,6 @@ class InputShaperPanel(ScreenPanel):
|
||||
self.status.set_halign(Gtk.Align.START)
|
||||
self.status.set_ellipsize(Pango.EllipsizeMode.END)
|
||||
self.calibrating_axis = None
|
||||
self.has_sensor = False
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
self.has_sensor = False
|
||||
self.calibrating_axis = None
|
||||
|
||||
auto_calibration_label = Gtk.Label()
|
||||
@@ -98,13 +94,13 @@ class InputShaperPanel(ScreenPanel):
|
||||
self.content.add(box)
|
||||
|
||||
pobox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
test_x = self._gtk.Button(_("Measure X"))
|
||||
test_x = self._gtk.Button(label=_("Measure X"))
|
||||
test_x.connect("clicked", self.start_calibration, "x")
|
||||
pobox.pack_start(test_x, True, True, 5)
|
||||
test_y = self._gtk.Button(_("Measure Y"))
|
||||
test_y = self._gtk.Button(label=_("Measure Y"))
|
||||
test_y.connect("clicked", self.start_calibration, "y")
|
||||
pobox.pack_start(test_y, True, True, 5)
|
||||
test_both = self._gtk.Button(_("Measure Both"))
|
||||
test_both = self._gtk.Button(label=_("Measure Both"))
|
||||
test_both.connect("clicked", self.start_calibration, "both")
|
||||
pobox.pack_start(test_both, True, True, 5)
|
||||
self.labels['popover'] = Gtk.Popover()
|
||||
@@ -117,7 +113,7 @@ class InputShaperPanel(ScreenPanel):
|
||||
|
||||
def start_calibration(self, widget, method):
|
||||
self.labels['popover'].popdown()
|
||||
if self._screen.printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
if self._printer.get_stat("toolhead", "homed_axes") != "xyz":
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
self.calibrating_axis = method
|
||||
if method == "x":
|
||||
@@ -127,7 +123,7 @@ class InputShaperPanel(ScreenPanel):
|
||||
if method == "both":
|
||||
self._screen._ws.klippy.gcode_script('SHAPER_CALIBRATE')
|
||||
|
||||
self.calibrate_btn.set_label(self.lang.gettext('Calibrating...'))
|
||||
self.calibrate_btn.set_label(_('Calibrating') + '...')
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
|
||||
def set_opt_value(self, widget, opt, *args):
|
||||
@@ -156,47 +152,39 @@ class InputShaperPanel(ScreenPanel):
|
||||
|
||||
def activate(self):
|
||||
# This will return the current values
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
'SET_INPUT_SHAPER'
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script('SET_INPUT_SHAPER')
|
||||
# Check for the accelerometer
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
'ACCELEROMETER_QUERY'
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script('ACCELEROMETER_QUERY')
|
||||
# Send at least two commands, with my accelerometer the first command after a reboot will fail
|
||||
self._screen._ws.klippy.gcode_script(
|
||||
'MEASURE_AXES_NOISE'
|
||||
)
|
||||
self._screen._ws.klippy.gcode_script('MEASURE_AXES_NOISE')
|
||||
|
||||
def process_update(self, action, data):
|
||||
|
||||
if action == "notify_gcode_response":
|
||||
self.status.set_text(f"{data.replace('shaper_', '').replace('damping_', '')}")
|
||||
data = data.lower()
|
||||
if 'got 0' in data:
|
||||
self.calibrate_btn.set_label(_('Check ADXL Wiring'))
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
if 'unknown command:"accelerometer_query"' in data:
|
||||
self.calibrate_btn.set_label(_('ADXL Not Configured'))
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
if 'adxl345 values' in data or 'axes noise' in data:
|
||||
self.has_sensor = True
|
||||
if action != "notify_gcode_response":
|
||||
return
|
||||
self.status.set_text(f"{data.replace('shaper_', '').replace('damping_', '')}")
|
||||
data = data.lower()
|
||||
if 'got 0' in data:
|
||||
self.calibrate_btn.set_label(_('Check ADXL Wiring'))
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
if 'unknown command:"accelerometer_query"' in data:
|
||||
self.calibrate_btn.set_label(_('ADXL Not Configured'))
|
||||
self.calibrate_btn.set_sensitive(False)
|
||||
if 'adxl345 values' in data or 'axes noise' in data:
|
||||
self.calibrate_btn.set_sensitive(True)
|
||||
self.calibrate_btn.set_label(_('Auto-calibrate'))
|
||||
# Recommended shaper_type_y = ei, shaper_freq_y = 48.4 Hz
|
||||
if 'recommended shaper_type_' in data:
|
||||
results = re.search(r'shaper_type_(?P<axis>[xy])\s*=\s*(?P<shaper_type>.*?), shaper_freq_.\s*=\s*('
|
||||
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
|
||||
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
|
||||
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
|
||||
if self.calibrating_axis == results['axis'] or (self.calibrating_axis == "both" and results['axis'] == 'y'):
|
||||
self.calibrate_btn.set_sensitive(True)
|
||||
self.calibrate_btn.set_label(_('Auto-calibrate'))
|
||||
# Recommended shaper_type_y = ei, shaper_freq_y = 48.4 Hz
|
||||
if 'recommended shaper_type_' in data:
|
||||
results = re.search(r'shaper_type_(?P<axis>[xy])\s*=\s*(?P<shaper_type>.*?), shaper_freq_.\s*=\s*('
|
||||
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
|
||||
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
|
||||
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
|
||||
if self.calibrating_axis == results['axis'] \
|
||||
or (self.calibrating_axis == "both" and results['axis'] == 'y'):
|
||||
self.calibrate_btn.set_sensitive(True)
|
||||
self.calibrate_btn.set_label(_('Calibrated'))
|
||||
self.save_config()
|
||||
# shaper_type_y:ei shaper_freq_y:48.400 damping_ratio_y:0.100000
|
||||
if 'shaper_type_' in data:
|
||||
results = re.search(r'shaper_type_(?P<axis>[xy]):(?P<shaper_type>.*?) shaper_freq_.:('
|
||||
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
|
||||
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
|
||||
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
|
||||
self.calibrate_btn.set_label(_('Calibrated'))
|
||||
self.save_config()
|
||||
# shaper_type_y:ei shaper_freq_y:48.400 damping_ratio_y:0.100000
|
||||
if 'shaper_type_' in data:
|
||||
results = re.search(r'shaper_type_(?P<axis>[xy]):(?P<shaper_type>.*?) shaper_freq_.:('
|
||||
r'?P<shaper_freq>[0-9.]+)', data).groupdict()
|
||||
self.freq_xy_adj['shaper_freq_' + results['axis']].set_value(float(results['shaper_freq']))
|
||||
self.freq_xy_combo['shaper_type_' + results['axis']].set_active(SHAPERS.index(results['shaper_type']))
|
||||
+301
-358
File diff suppressed because it is too large.
Load diff
+16
-17
@@ -1,6 +1,7 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
@@ -13,17 +14,12 @@ def create_panel(*args):
|
||||
|
||||
class LimitsPanel(ScreenPanel):
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.limits = {}
|
||||
self.grid = Gtk.Grid()
|
||||
self.options = None
|
||||
self.values = {}
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
scroll.add(self.grid)
|
||||
self.grid = Gtk.Grid()
|
||||
|
||||
conf = self._printer.get_config_section("printer")
|
||||
self.options = [
|
||||
@@ -42,6 +38,8 @@ class LimitsPanel(ScreenPanel):
|
||||
for opt in self.options:
|
||||
self.add_option(opt['option'], opt['name'], opt['units'], opt['max'])
|
||||
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
scroll.add(self.grid)
|
||||
self.content.add(scroll)
|
||||
self.content.show_all()
|
||||
|
||||
@@ -67,8 +65,11 @@ class LimitsPanel(ScreenPanel):
|
||||
if opt["option"] == option:
|
||||
if self.values[option] > opt["max"]:
|
||||
self.limits[option]['scale'].get_style_context().add_class("option_slider_max")
|
||||
# Infinite scale
|
||||
self.limits[option]['adjustment'].set_upper(self.values[option] * 1.5)
|
||||
else:
|
||||
self.limits[option]['scale'].get_style_context().remove_class("option_slider_max")
|
||||
self.limits[option]['adjustment'].set_upper(opt["max"] * 1.5)
|
||||
self.limits[option]['scale'].connect("button-release-event", self.set_opt_value, option)
|
||||
|
||||
def add_option(self, option, optname, units, value):
|
||||
@@ -83,8 +84,9 @@ class LimitsPanel(ScreenPanel):
|
||||
name.set_line_wrap(True)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
|
||||
scale = Gtk.Scale.new_with_range(orientation=Gtk.Orientation.HORIZONTAL, min=0, max=value * 1.5, step=1)
|
||||
scale.set_value(value)
|
||||
# adj (value, lower, upper, step_increment, page_increment, page_size)
|
||||
adj = Gtk.Adjustment(value, 1, (value * 1.5), 1, 5, 0)
|
||||
scale = Gtk.Scale.new(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
|
||||
scale.set_digits(0)
|
||||
scale.set_hexpand(True)
|
||||
scale.set_has_origin(True)
|
||||
@@ -92,7 +94,7 @@ class LimitsPanel(ScreenPanel):
|
||||
scale.connect("button-release-event", self.set_opt_value, option)
|
||||
self.values[option] = value
|
||||
|
||||
reset = self._gtk.ButtonImage("refresh", style="color1")
|
||||
reset = self._gtk.Button("refresh", style="color1")
|
||||
reset.connect("clicked", self.reset_value, option)
|
||||
reset.set_hexpand(False)
|
||||
|
||||
@@ -101,13 +103,10 @@ class LimitsPanel(ScreenPanel):
|
||||
item.attach(scale, 0, 1, 1, 1)
|
||||
item.attach(reset, 1, 1, 1, 1)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(item)
|
||||
|
||||
self.limits[option] = {
|
||||
"row": frame,
|
||||
"row": item,
|
||||
"scale": scale,
|
||||
"adjustment": adj,
|
||||
}
|
||||
|
||||
limits = sorted(self.limits)
|
||||
|
||||
+24
-28
@@ -1,11 +1,12 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Pango
|
||||
from gi.repository import Gtk, GLib
|
||||
from panels.menu import MenuPanel
|
||||
|
||||
from ks_includes.widgets.graph import HeaterGraph
|
||||
from ks_includes.widgets.heatergraph import HeaterGraph
|
||||
from ks_includes.widgets.keypad import Keypad
|
||||
|
||||
|
||||
@@ -14,18 +15,19 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class MainPanel(MenuPanel):
|
||||
def __init__(self, screen, title, back=False):
|
||||
super().__init__(screen, title, False)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.left_panel = None
|
||||
self.items = None
|
||||
self.grid = self._gtk.HomogeneousGrid()
|
||||
self.grid.set_hexpand(True)
|
||||
self.grid.set_vexpand(True)
|
||||
self.devices = {}
|
||||
self.graph_update = None
|
||||
self.active_heater = None
|
||||
self.h = 1
|
||||
self.grid = self._gtk.HomogeneousGrid()
|
||||
self.grid.set_hexpand(True)
|
||||
self.grid.set_vexpand(True)
|
||||
|
||||
def initialize(self, panel_name, items, extrudercount):
|
||||
def initialize(self, items):
|
||||
logging.info("### Making MainMenu")
|
||||
|
||||
self.items = items
|
||||
@@ -45,9 +47,10 @@ class MainPanel(MenuPanel):
|
||||
grid.attach(self.labels['menu'], 1, 0, 1, 1)
|
||||
self.grid = grid
|
||||
self.content.add(self.grid)
|
||||
self.layout.show_all()
|
||||
|
||||
def update_graph_visibility(self):
|
||||
if self.left_panel is None or not self._printer.get_temp_store_devices():
|
||||
return
|
||||
count = 0
|
||||
for device in self.devices:
|
||||
visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}",
|
||||
@@ -62,10 +65,11 @@ class MainPanel(MenuPanel):
|
||||
self.devices[device]['name'].get_style_context().add_class("graph_label_hidden")
|
||||
self.devices[device]['name'].get_style_context().remove_class(self.devices[device]['class'])
|
||||
if count > 0:
|
||||
self.left_panel.add(self.labels['da'])
|
||||
if self.labels['da'] not in self.left_panel:
|
||||
self.left_panel.add(self.labels['da'])
|
||||
self.labels['da'].queue_draw()
|
||||
self.labels['da'].show()
|
||||
else:
|
||||
elif self.labels['da'] in self.left_panel:
|
||||
self.left_panel.remove(self.labels['da'])
|
||||
|
||||
def activate(self):
|
||||
@@ -74,6 +78,7 @@ class MainPanel(MenuPanel):
|
||||
# This has a high impact on load
|
||||
self.graph_update = GLib.timeout_add_seconds(5, self.update_graph)
|
||||
self.update_graph_visibility()
|
||||
self._screen.base_panel_show_all()
|
||||
|
||||
def deactivate(self):
|
||||
if self.graph_update:
|
||||
@@ -125,12 +130,12 @@ class MainPanel(MenuPanel):
|
||||
|
||||
rgb = self._gtk.get_temp_color(dev_type)
|
||||
|
||||
can_target = self._printer.get_temp_store_device_has_target(device)
|
||||
can_target = self._printer.device_has_target(device)
|
||||
self.labels['da'].add_object(device, "temperatures", rgb, False, True)
|
||||
if can_target:
|
||||
self.labels['da'].add_object(device, "targets", rgb, True, False)
|
||||
|
||||
name = self._gtk.ButtonImage(image, devname.capitalize().replace("_", " "), None, .5, Gtk.PositionType.LEFT, 1)
|
||||
name = self._gtk.Button(image, devname.capitalize().replace("_", " "), None, self.bts, Gtk.PositionType.LEFT, 1)
|
||||
name.connect("clicked", self.toggle_visibility, device)
|
||||
name.set_alignment(0, .5)
|
||||
visible = self._config.get_config().getboolean(f"graph {self._screen.connected_printer}", device, fallback=True)
|
||||
@@ -140,7 +145,7 @@ class MainPanel(MenuPanel):
|
||||
name.get_style_context().add_class("graph_label_hidden")
|
||||
self.labels['da'].set_showing(device, visible)
|
||||
|
||||
temp = self._gtk.Button("")
|
||||
temp = self._gtk.Button(label="", lines=1)
|
||||
if can_target:
|
||||
temp.connect("clicked", self.show_numpad, device)
|
||||
|
||||
@@ -203,12 +208,12 @@ class MainPanel(MenuPanel):
|
||||
|
||||
name = Gtk.Label("")
|
||||
temp = Gtk.Label(_("Temp (°C)"))
|
||||
temp.set_size_request(round(self._gtk.get_font_size() * 7.7), -1)
|
||||
temp.get_style_context().add_class("heater-grid-temp")
|
||||
|
||||
self.labels['devices'].attach(name, 0, 0, 1, 1)
|
||||
self.labels['devices'].attach(temp, 1, 0, 1, 1)
|
||||
|
||||
self.labels['da'] = HeaterGraph(self._printer, self._gtk.get_font_size())
|
||||
self.labels['da'] = HeaterGraph(self._printer, self._gtk.font_size)
|
||||
self.labels['da'].set_vexpand(True)
|
||||
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
@@ -218,7 +223,7 @@ class MainPanel(MenuPanel):
|
||||
self.left_panel = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
|
||||
self.left_panel.add(scroll)
|
||||
|
||||
for d in self._printer.get_temp_store_devices():
|
||||
for d in (self._printer.get_tools() + self._printer.get_heaters()):
|
||||
self.add_device(d)
|
||||
|
||||
return self.left_panel
|
||||
@@ -238,22 +243,13 @@ class MainPanel(MenuPanel):
|
||||
def process_update(self, action, data):
|
||||
if action != "notify_status_update":
|
||||
return
|
||||
|
||||
for x in self._printer.get_tools():
|
||||
for x in (self._printer.get_tools() + self._printer.get_heaters()):
|
||||
self.update_temp(
|
||||
x,
|
||||
self._printer.get_dev_stat(x, "temperature"),
|
||||
self._printer.get_dev_stat(x, "target"),
|
||||
self._printer.get_dev_stat(x, "power"),
|
||||
)
|
||||
for h in self._printer.get_heaters():
|
||||
self.update_temp(
|
||||
h,
|
||||
self._printer.get_dev_stat(h, "temperature"),
|
||||
self._printer.get_dev_stat(h, "target"),
|
||||
self._printer.get_dev_stat(x, "power"),
|
||||
)
|
||||
return
|
||||
|
||||
def show_numpad(self, widget, device):
|
||||
|
||||
|
||||
+41
-34
@@ -1,6 +1,9 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
import json
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
from jinja2 import Environment, Template
|
||||
@@ -16,24 +19,20 @@ class MenuPanel(ScreenPanel):
|
||||
i = 0
|
||||
j2_data = None
|
||||
|
||||
def initialize(self, panel_name, display_name, items):
|
||||
|
||||
self.items = items
|
||||
self.create_menu_items()
|
||||
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.items = None
|
||||
self.grid = self._gtk.HomogeneousGrid()
|
||||
|
||||
def initialize(self, items):
|
||||
self.items = items
|
||||
self.create_menu_items()
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
|
||||
scroll.add(self.grid)
|
||||
|
||||
self.content.add(scroll)
|
||||
|
||||
def activate(self):
|
||||
self.j2_data = self._printer.get_printer_status_data()
|
||||
self.j2_data.update({
|
||||
'moonraker_connected': self._screen._ws.is_connected()
|
||||
})
|
||||
if self._screen.vertical_mode:
|
||||
self.arrangeMenuItems(self.items, 3)
|
||||
else:
|
||||
@@ -47,8 +46,8 @@ class MenuPanel(ScreenPanel):
|
||||
i = 0
|
||||
for item in items:
|
||||
key = list(item)[0]
|
||||
logging.debug(f"Evaluating item: {key}")
|
||||
if not self.evaluate_enable(item[key]['enable']):
|
||||
logging.debug(f"X > {key}")
|
||||
continue
|
||||
|
||||
if columns == 4:
|
||||
@@ -68,7 +67,7 @@ class MenuPanel(ScreenPanel):
|
||||
|
||||
self.grid.attach(self.labels[key], col, row, width, height)
|
||||
i += 1
|
||||
|
||||
self.j2_data = None
|
||||
return self.grid
|
||||
|
||||
def create_menu_items(self):
|
||||
@@ -77,16 +76,31 @@ class MenuPanel(ScreenPanel):
|
||||
item = self.items[i][key]
|
||||
|
||||
env = Environment(extensions=["jinja2.ext.i18n"], autoescape=True)
|
||||
env.install_gettext_translations(self.lang)
|
||||
j2_temp = env.from_string(item['name'])
|
||||
parsed_name = j2_temp.render()
|
||||
env.install_gettext_translations(self._config.get_lang())
|
||||
|
||||
b = self._gtk.ButtonImage(item['icon'], parsed_name, f"color{(i % 4) + 1}")
|
||||
if item['panel'] is not False:
|
||||
b.connect("clicked", self.menu_item_clicked, item['panel'], item)
|
||||
elif item['method'] is not False:
|
||||
params = item['params'] if item['params'] is not False else {}
|
||||
if item['confirm'] is not False:
|
||||
printer = self._printer.get_printer_status_data()
|
||||
|
||||
name = env.from_string(item['name']).render(printer)
|
||||
icon = env.from_string(item['icon']).render(printer) if item['icon'] else None
|
||||
style = env.from_string(item['style']).render(printer) if item['style'] else None
|
||||
|
||||
b = self._gtk.Button(icon, name, (style if style else f"color{(i % 4) + 1}"))
|
||||
|
||||
if item['panel'] is not None:
|
||||
panel = env.from_string(item['panel']).render(printer)
|
||||
b.connect("clicked", self.menu_item_clicked, panel, item)
|
||||
elif item['method'] is not None:
|
||||
params = {}
|
||||
|
||||
if item['params'] is not False:
|
||||
try:
|
||||
p = env.from_string(item['params']).render(printer)
|
||||
params = json.loads(p)
|
||||
except Exception as e:
|
||||
logging.exception(f"Unable to parse parameters for [{name}]:\n{e}")
|
||||
params = {}
|
||||
|
||||
if item['confirm'] is not None:
|
||||
b.connect("clicked", self._screen._confirm_send_action, item['confirm'], item['method'], params)
|
||||
else:
|
||||
b.connect("clicked", self._screen._send_action, item['method'], params)
|
||||
@@ -95,23 +109,16 @@ class MenuPanel(ScreenPanel):
|
||||
self.labels[key] = b
|
||||
|
||||
def evaluate_enable(self, enable):
|
||||
if enable is True:
|
||||
return True
|
||||
if enable is False:
|
||||
return False
|
||||
|
||||
if enable == "{{ moonraker_connected }}":
|
||||
logging.info("moonraker is_connected %s", self._screen._ws.is_connected())
|
||||
return self._screen._ws.is_connected()
|
||||
|
||||
logging.info(f"moonraker connected {self._screen._ws.connected}")
|
||||
return self._screen._ws.connected
|
||||
elif enable == "{{ camera_configured }}":
|
||||
return self.ks_printer_cfg and self.ks_printer_cfg.get("camera_url", None) is not None
|
||||
self.j2_data = self._printer.get_printer_status_data()
|
||||
try:
|
||||
logging.debug(f"Template: '{enable}'")
|
||||
j2_temp = Template(enable, autoescape=True)
|
||||
result = j2_temp.render(self.j2_data)
|
||||
if result == 'True':
|
||||
return True
|
||||
return False
|
||||
return result == 'True'
|
||||
except Exception as e:
|
||||
logging.debug(f"Error evaluating enable statement: {enable}\n{e}")
|
||||
return False
|
||||
+96
-108
@@ -1,106 +1,95 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
from ks_includes.KlippyGcodes import KlippyGcodes
|
||||
from ks_includes.screen_panel import ScreenPanel
|
||||
|
||||
AXIS_X = "X"
|
||||
AXIS_Y = "Y"
|
||||
AXIS_Z = "Z"
|
||||
|
||||
|
||||
def create_panel(*args):
|
||||
return MovePanel(*args)
|
||||
|
||||
|
||||
class MovePanel(ScreenPanel):
|
||||
distance = 1
|
||||
distances = ['.1', '.5', '1', '5', '10', '25', '50']
|
||||
distance = distances[-2]
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.settings = {}
|
||||
self.menu = ['move_menu']
|
||||
|
||||
def initialize(self, panel_name):
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
|
||||
self.labels['x+'] = self._gtk.ButtonImage("arrow-right", _("X+"), "color1")
|
||||
self.labels['x+'].connect("clicked", self.move, AXIS_X, "+")
|
||||
self.labels['x-'] = self._gtk.ButtonImage("arrow-left", _("X-"), "color1")
|
||||
self.labels['x-'].connect("clicked", self.move, AXIS_X, "-")
|
||||
|
||||
self.labels['y+'] = self._gtk.ButtonImage("arrow-up", _("Y+"), "color2")
|
||||
self.labels['y+'].connect("clicked", self.move, AXIS_Y, "+")
|
||||
self.labels['y-'] = self._gtk.ButtonImage("arrow-down", _("Y-"), "color2")
|
||||
self.labels['y-'].connect("clicked", self.move, AXIS_Y, "-")
|
||||
|
||||
self.labels['z+'] = self._gtk.ButtonImage("z-farther", _("Z+"), "color3")
|
||||
self.labels['z+'].connect("clicked", self.move, AXIS_Z, "+")
|
||||
self.labels['z-'] = self._gtk.ButtonImage("z-closer", _("Z-"), "color3")
|
||||
self.labels['z-'].connect("clicked", self.move, AXIS_Z, "-")
|
||||
|
||||
self.labels['home'] = self._gtk.ButtonImage("home", _("Home All"), "color4")
|
||||
self.labels['home'].connect("clicked", self.home)
|
||||
|
||||
self.labels['home-xy'] = self._gtk.ButtonImage("home", _("Home XY"), "color4")
|
||||
self.labels['home-xy'].connect("clicked", self.homexy)
|
||||
|
||||
self.labels['z_tilt'] = self._gtk.ButtonImage("z-tilt", _("Z Tilt"), "color4")
|
||||
self.labels['z_tilt'].connect("clicked", self.z_tilt)
|
||||
|
||||
self.labels['quad_gantry_level'] = self._gtk.ButtonImage("z-tilt", _("Quad Gantry Level"), "color4")
|
||||
self.labels['quad_gantry_level'].connect("clicked", self.quad_gantry_level)
|
||||
|
||||
self.labels['motors-off'] = self._gtk.ButtonImage("motor-off", _("Disable Motors"), "color4")
|
||||
self.buttons = {
|
||||
'x+': self._gtk.Button("arrow-right", "X+", "color1"),
|
||||
'x-': self._gtk.Button("arrow-left", "X-", "color1"),
|
||||
'y+': self._gtk.Button("arrow-up", "Y+", "color2"),
|
||||
'y-': self._gtk.Button("arrow-down", "Y-", "color2"),
|
||||
'z+': self._gtk.Button("z-farther", "Z+", "color3"),
|
||||
'z-': self._gtk.Button("z-closer", "Z-", "color3"),
|
||||
'home': self._gtk.Button("home", _("Home All"), "color4"),
|
||||
'home_xy': self._gtk.Button("home", _("Home XY"), "color4"),
|
||||
'z_tilt': self._gtk.Button("z-tilt", _("Z Tilt"), "color4"),
|
||||
'quad_gantry_level': self._gtk.Button("z-tilt", _("Quad Gantry Level"), "color4"),
|
||||
'motors_off': self._gtk.Button("motor-off", _("Disable Motors"), "color4"),
|
||||
}
|
||||
self.buttons['x+'].connect("clicked", self.move, "X", "+")
|
||||
self.buttons['x-'].connect("clicked", self.move, "X", "-")
|
||||
self.buttons['y+'].connect("clicked", self.move, "Y", "+")
|
||||
self.buttons['y-'].connect("clicked", self.move, "Y", "-")
|
||||
self.buttons['z+'].connect("clicked", self.move, "Z", "+")
|
||||
self.buttons['z-'].connect("clicked", self.move, "Z", "-")
|
||||
self.buttons['home'].connect("clicked", self.home)
|
||||
self.buttons['home_xy'].connect("clicked", self.homexy)
|
||||
self.buttons['z_tilt'].connect("clicked", self.z_tilt)
|
||||
self.buttons['quad_gantry_level'].connect("clicked", self.quad_gantry_level)
|
||||
script = {"script": "M18"}
|
||||
self.labels['motors-off'].connect("clicked", self._screen._confirm_send_action,
|
||||
_("Are you sure you wish to disable motors?"),
|
||||
"printer.gcode.script", script)
|
||||
self.buttons['motors_off'].connect("clicked", self._screen._confirm_send_action,
|
||||
_("Are you sure you wish to disable motors?"),
|
||||
"printer.gcode.script", script)
|
||||
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
if self._screen.vertical_mode:
|
||||
if self._screen.lang_ltr:
|
||||
grid.attach(self.labels['x+'], 2, 1, 1, 1)
|
||||
grid.attach(self.labels['x-'], 0, 1, 1, 1)
|
||||
grid.attach(self.labels['z+'], 2, 2, 1, 1)
|
||||
grid.attach(self.labels['z-'], 0, 2, 1, 1)
|
||||
grid.attach(self.buttons['x+'], 2, 1, 1, 1)
|
||||
grid.attach(self.buttons['x-'], 0, 1, 1, 1)
|
||||
grid.attach(self.buttons['z+'], 2, 2, 1, 1)
|
||||
grid.attach(self.buttons['z-'], 0, 2, 1, 1)
|
||||
else:
|
||||
grid.attach(self.labels['x+'], 0, 1, 1, 1)
|
||||
grid.attach(self.labels['x-'], 2, 1, 1, 1)
|
||||
grid.attach(self.labels['z+'], 0, 2, 1, 1)
|
||||
grid.attach(self.labels['z-'], 2, 2, 1, 1)
|
||||
grid.attach(self.labels['y+'], 1, 0, 1, 1)
|
||||
grid.attach(self.labels['y-'], 1, 1, 1, 1)
|
||||
grid.attach(self.buttons['x+'], 0, 1, 1, 1)
|
||||
grid.attach(self.buttons['x-'], 2, 1, 1, 1)
|
||||
grid.attach(self.buttons['z+'], 0, 2, 1, 1)
|
||||
grid.attach(self.buttons['z-'], 2, 2, 1, 1)
|
||||
grid.attach(self.buttons['y+'], 1, 0, 1, 1)
|
||||
grid.attach(self.buttons['y-'], 1, 1, 1, 1)
|
||||
|
||||
else:
|
||||
if self._screen.lang_ltr:
|
||||
grid.attach(self.labels['x+'], 2, 1, 1, 1)
|
||||
grid.attach(self.labels['x-'], 0, 1, 1, 1)
|
||||
grid.attach(self.buttons['x+'], 2, 1, 1, 1)
|
||||
grid.attach(self.buttons['x-'], 0, 1, 1, 1)
|
||||
else:
|
||||
grid.attach(self.labels['x+'], 0, 1, 1, 1)
|
||||
grid.attach(self.labels['x-'], 2, 1, 1, 1)
|
||||
grid.attach(self.labels['y+'], 1, 0, 1, 1)
|
||||
grid.attach(self.labels['y-'], 1, 1, 1, 1)
|
||||
grid.attach(self.labels['z+'], 3, 0, 1, 1)
|
||||
grid.attach(self.labels['z-'], 3, 1, 1, 1)
|
||||
grid.attach(self.buttons['x+'], 0, 1, 1, 1)
|
||||
grid.attach(self.buttons['x-'], 2, 1, 1, 1)
|
||||
grid.attach(self.buttons['y+'], 1, 0, 1, 1)
|
||||
grid.attach(self.buttons['y-'], 1, 1, 1, 1)
|
||||
grid.attach(self.buttons['z+'], 3, 0, 1, 1)
|
||||
grid.attach(self.buttons['z-'], 3, 1, 1, 1)
|
||||
|
||||
grid.attach(self.labels['home'], 0, 0, 1, 1)
|
||||
grid.attach(self.buttons['home'], 0, 0, 1, 1)
|
||||
|
||||
if self._printer.config_section_exists("z_tilt"):
|
||||
grid.attach(self.labels['z_tilt'], 2, 0, 1, 1)
|
||||
grid.attach(self.buttons['z_tilt'], 2, 0, 1, 1)
|
||||
elif self._printer.config_section_exists("quad_gantry_level"):
|
||||
grid.attach(self.labels['quad_gantry_level'], 2, 0, 1, 1)
|
||||
elif "delta" in self._screen.printer.get_config_section("printer")['kinematics']:
|
||||
grid.attach(self.labels['motors-off'], 2, 0, 1, 1)
|
||||
grid.attach(self.buttons['quad_gantry_level'], 2, 0, 1, 1)
|
||||
elif "delta" in self._printer.get_config_section("printer")['kinematics']:
|
||||
grid.attach(self.buttons['motors_off'], 2, 0, 1, 1)
|
||||
else:
|
||||
grid.attach(self.labels['home-xy'], 2, 0, 1, 1)
|
||||
grid.attach(self.buttons['home_xy'], 2, 0, 1, 1)
|
||||
|
||||
distgrid = Gtk.Grid()
|
||||
for j, i in enumerate(self.distances):
|
||||
self.labels[i] = self._gtk.ToggleButton(i)
|
||||
self.labels[i] = self._gtk.Button(label=i)
|
||||
self.labels[i].set_direction(Gtk.TextDirection.LTR)
|
||||
self.labels[i].connect("clicked", self.change_distance, i)
|
||||
ctx = self.labels[i].get_style_context()
|
||||
@@ -110,16 +99,14 @@ class MovePanel(ScreenPanel):
|
||||
ctx.add_class("distbutton_bottom")
|
||||
else:
|
||||
ctx.add_class("distbutton")
|
||||
if i == "1":
|
||||
if i == self.distance:
|
||||
ctx.add_class("distbutton_active")
|
||||
distgrid.attach(self.labels[i], j, 0, 1, 1)
|
||||
self.labels["1"].set_active(True)
|
||||
|
||||
self.labels['pos_x'] = Gtk.Label("X: 0")
|
||||
self.labels['pos_y'] = Gtk.Label("Y: 0")
|
||||
self.labels['pos_z'] = Gtk.Label("Z: 0")
|
||||
adjust = self._gtk.ButtonImage("settings", None, "color2", 1, Gtk.PositionType.LEFT, 1)
|
||||
adjust.connect("clicked", self.load_menu, 'options')
|
||||
for p in ('pos_x', 'pos_y', 'pos_z'):
|
||||
self.labels[p] = Gtk.Label()
|
||||
adjust = self._gtk.Button("settings", None, "color2", 1, Gtk.PositionType.LEFT, 1)
|
||||
adjust.connect("clicked", self.load_menu, 'options', _('Settings'))
|
||||
adjust.set_hexpand(False)
|
||||
self.labels['move_dist'] = Gtk.Label(_("Move Distance (mm)"))
|
||||
|
||||
@@ -131,11 +118,10 @@ class MovePanel(ScreenPanel):
|
||||
bottomgrid.attach(self.labels['move_dist'], 0, 1, 3, 1)
|
||||
bottomgrid.attach(adjust, 3, 0, 1, 2)
|
||||
|
||||
self.labels['move_menu'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
self.labels['move_menu'].set_vexpand(True)
|
||||
self.labels['move_menu'].pack_start(grid, True, True, 0)
|
||||
self.labels['move_menu'].pack_start(bottomgrid, True, True, 0)
|
||||
self.labels['move_menu'].pack_start(distgrid, True, True, 0)
|
||||
self.labels['move_menu'] = self._gtk.HomogeneousGrid()
|
||||
self.labels['move_menu'].attach(grid, 0, 0, 1, 3)
|
||||
self.labels['move_menu'].attach(bottomgrid, 0, 3, 1, 1)
|
||||
self.labels['move_menu'].attach(distgrid, 0, 4, 1, 1)
|
||||
|
||||
self.content.add(self.labels['move_menu'])
|
||||
|
||||
@@ -166,11 +152,19 @@ class MovePanel(ScreenPanel):
|
||||
name = list(option)[0]
|
||||
self.add_option('options', self.settings, name, option[name])
|
||||
|
||||
def process_busy(self, busy):
|
||||
buttons = ("home", "home_xy", "z_tilt", "quad_gantry_level")
|
||||
for button in buttons:
|
||||
if button in self.buttons:
|
||||
self.buttons[button].set_sensitive(not busy)
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_busy":
|
||||
self.process_busy(data)
|
||||
return
|
||||
if action != "notify_status_update":
|
||||
return
|
||||
|
||||
homed_axes = self._screen.printer.get_stat("toolhead", "homed_axes")
|
||||
homed_axes = self._printer.get_stat("toolhead", "homed_axes")
|
||||
if homed_axes == "xyz":
|
||||
if "gcode_move" in data and "gcode_position" in data["gcode_move"]:
|
||||
self.labels['pos_x'].set_text(f"X: {data['gcode_move']['gcode_position'][0]:.2f}")
|
||||
@@ -194,34 +188,20 @@ class MovePanel(ScreenPanel):
|
||||
self.labels['pos_z'].set_text("Z: ?")
|
||||
|
||||
def change_distance(self, widget, distance):
|
||||
if self.distance == distance:
|
||||
return
|
||||
logging.info(f"### Distance {distance}")
|
||||
|
||||
ctx = self.labels[f"{self.distance}"].get_style_context()
|
||||
ctx.remove_class("distbutton_active")
|
||||
|
||||
self.labels[f"{self.distance}"].get_style_context().remove_class("distbutton_active")
|
||||
self.labels[f"{distance}"].get_style_context().add_class("distbutton_active")
|
||||
self.distance = distance
|
||||
ctx = self.labels[self.distance].get_style_context()
|
||||
ctx.add_class("distbutton_active")
|
||||
for i in self.distances:
|
||||
if i == self.distance:
|
||||
continue
|
||||
self.labels[f"{i}"].set_active(False)
|
||||
|
||||
def move(self, widget, axis, direction):
|
||||
speed = None
|
||||
if self._config.get_config()['main'].getboolean(f"invert_{axis.lower()}", False):
|
||||
direction = "-" if direction == "+" else "+"
|
||||
|
||||
dist = f"{direction}{self.distance}"
|
||||
config_key = "move_speed_z" if axis == AXIS_Z else "move_speed_xy"
|
||||
printer_cfg = self._config.get_printer_config(self._screen.connected_printer)
|
||||
if printer_cfg is not None:
|
||||
speed = printer_cfg.getint(config_key, None)
|
||||
config_key = "move_speed_z" if axis == "Z" else "move_speed_xy"
|
||||
speed = None if self.ks_printer_cfg is None else self.ks_printer_cfg.getint(config_key, None)
|
||||
if speed is None:
|
||||
speed = self._config.get_config()['main'].getint(config_key, 20)
|
||||
|
||||
speed = 60 * max(1, speed)
|
||||
|
||||
self._screen._ws.klippy.gcode_script(f"{KlippyGcodes.MOVE_RELATIVE}\n{KlippyGcodes.MOVE} {axis}{dist} F{speed}")
|
||||
@@ -239,6 +219,7 @@ class MovePanel(ScreenPanel):
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
|
||||
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
dev.get_style_context().add_class("frame-item")
|
||||
dev.set_hexpand(True)
|
||||
dev.set_vexpand(False)
|
||||
dev.set_valign(Gtk.Align.CENTER)
|
||||
@@ -252,8 +233,8 @@ class MovePanel(ScreenPanel):
|
||||
switch.set_vexpand(False)
|
||||
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name))
|
||||
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name)
|
||||
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
|
||||
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
|
||||
switch.set_property("width-request", round(self._gtk.font_size * 7))
|
||||
switch.set_property("height-request", round(self._gtk.font_size * 3.5))
|
||||
box.add(switch)
|
||||
dev.add(box)
|
||||
elif option['type'] == "scale":
|
||||
@@ -266,14 +247,9 @@ class MovePanel(ScreenPanel):
|
||||
scale.connect("button-release-event", self.scale_moved, option['section'], opt_name)
|
||||
dev.add(scale)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(dev)
|
||||
frame.show_all()
|
||||
|
||||
opt_array[opt_name] = {
|
||||
"name": option['name'],
|
||||
"row": frame
|
||||
"row": dev
|
||||
}
|
||||
|
||||
opts = sorted(list(opt_array), key=lambda x: opt_array[x]['name'])
|
||||
@@ -288,3 +264,15 @@ class MovePanel(ScreenPanel):
|
||||
self.unload_menu()
|
||||
return True
|
||||
return False
|
||||
|
||||
def home(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME)
|
||||
|
||||
def homexy(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.HOME_XY)
|
||||
|
||||
def z_tilt(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.Z_TILT)
|
||||
|
||||
def quad_gantry_level(self, widget):
|
||||
self._screen._ws.klippy.gcode_script(KlippyGcodes.QUAD_GANTRY_LEVEL)
|
||||
+35
-49
@@ -1,8 +1,8 @@
|
||||
import gi
|
||||
import logging
|
||||
import netifaces
|
||||
import os
|
||||
from ks_includes.wifi import WifiManager
|
||||
|
||||
import gi
|
||||
import netifaces
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Gdk, GLib, Pango
|
||||
@@ -16,8 +16,8 @@ def create_panel(*args):
|
||||
class NetworkPanel(ScreenPanel):
|
||||
initialized = False
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.show_add = False
|
||||
self.networks = {}
|
||||
self.interface = None
|
||||
@@ -26,14 +26,17 @@ class NetworkPanel(ScreenPanel):
|
||||
self.network_interfaces = netifaces.interfaces()
|
||||
self.wireless_interfaces = [iface for iface in self.network_interfaces if iface.startswith('w')]
|
||||
self.wifi = None
|
||||
self.use_network_manager = os.system('systemctl is-active --quiet NetworkManager.service') == 0
|
||||
if len(self.wireless_interfaces) > 0:
|
||||
logging.info(f"Found wireless interfaces: {self.wireless_interfaces}")
|
||||
if self.use_network_manager:
|
||||
logging.info("Using NetworkManager")
|
||||
from ks_includes.wifi_nm import WifiManager
|
||||
else:
|
||||
logging.info("Using wpa_cli")
|
||||
from ks_includes.wifi import WifiManager
|
||||
self.wifi = WifiManager(self.wireless_interfaces[0])
|
||||
|
||||
def initialize(self, menu):
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
grid.set_hexpand(True)
|
||||
|
||||
# Get IP Address
|
||||
gws = netifaces.gateways()
|
||||
if "default" in gws and netifaces.AF_INET in gws["default"]:
|
||||
@@ -60,7 +63,7 @@ class NetworkPanel(ScreenPanel):
|
||||
self.labels['interface'].set_hexpand(True)
|
||||
self.labels['ip'] = Gtk.Label()
|
||||
self.labels['ip'].set_hexpand(True)
|
||||
reload_networks = self._gtk.ButtonImage("refresh", None, "color1", .66)
|
||||
reload_networks = self._gtk.Button("refresh", None, "color1", .66)
|
||||
reload_networks.connect("clicked", self.reload_networks)
|
||||
reload_networks.set_hexpand(False)
|
||||
|
||||
@@ -80,7 +83,7 @@ class NetworkPanel(ScreenPanel):
|
||||
|
||||
self.labels['networklist'] = Gtk.Grid()
|
||||
|
||||
if self.wifi is not None and self.wifi.is_initialized():
|
||||
if self.wifi is not None and self.wifi.initialized:
|
||||
box.pack_start(sbox, False, False, 5)
|
||||
box.pack_start(scroll, True, True, 0)
|
||||
|
||||
@@ -89,6 +92,7 @@ class NetworkPanel(ScreenPanel):
|
||||
|
||||
self.wifi.add_callback("connected", self.connected_callback)
|
||||
self.wifi.add_callback("scan_results", self.scan_callback)
|
||||
self.wifi.add_callback("popup", self.popup_callback)
|
||||
if self.update_timeout is None:
|
||||
self.update_timeout = GLib.timeout_add_seconds(5, self.update_all_networks)
|
||||
else:
|
||||
@@ -105,24 +109,19 @@ class NetworkPanel(ScreenPanel):
|
||||
|
||||
def load_networks(self):
|
||||
networks = self.wifi.get_networks()
|
||||
|
||||
if not networks:
|
||||
return
|
||||
|
||||
for net in networks:
|
||||
self.add_network(net, False)
|
||||
|
||||
self.update_all_networks()
|
||||
self.content.show_all()
|
||||
|
||||
def add_network(self, ssid, show=True):
|
||||
|
||||
if ssid is None:
|
||||
logging.info("SSID is None")
|
||||
return
|
||||
ssid = ssid.strip()
|
||||
if ssid in list(self.networks):
|
||||
logging.info("SSID already listed")
|
||||
return
|
||||
|
||||
configured_networks = self.wifi.get_supplicant_networks()
|
||||
@@ -160,18 +159,18 @@ class NetworkPanel(ScreenPanel):
|
||||
labels.set_valign(Gtk.Align.CENTER)
|
||||
labels.set_halign(Gtk.Align.START)
|
||||
|
||||
connect = self._gtk.ButtonImage("load", style="color3")
|
||||
connect = self._gtk.Button("load", None, "color3", .66)
|
||||
connect.connect("clicked", self.connect_network, ssid)
|
||||
connect.set_hexpand(False)
|
||||
connect.set_halign(Gtk.Align.END)
|
||||
|
||||
delete = self._gtk.ButtonImage("delete", style="color3")
|
||||
delete = self._gtk.Button("delete", None, "color3", .66)
|
||||
delete.connect("clicked", self.remove_wifi_network, ssid)
|
||||
delete.set_size_request(60, 0)
|
||||
delete.set_hexpand(False)
|
||||
delete.set_halign(Gtk.Align.END)
|
||||
|
||||
network = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
network.get_style_context().add_class("frame-item")
|
||||
network.set_hexpand(True)
|
||||
network.set_vexpand(False)
|
||||
|
||||
@@ -179,15 +178,12 @@ class NetworkPanel(ScreenPanel):
|
||||
|
||||
buttons = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
if network_id != -1 or netinfo['connected']:
|
||||
buttons.pack_end(connect, False, False, 0)
|
||||
buttons.pack_end(delete, False, False, 0)
|
||||
else:
|
||||
buttons.pack_end(connect, False, False, 0)
|
||||
network.add(buttons)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
self.networks[ssid] = frame
|
||||
frame.add(network)
|
||||
self.networks[ssid] = network
|
||||
|
||||
nets = sorted(list(self.networks), reverse=False)
|
||||
if connected_ssid in nets:
|
||||
@@ -254,9 +250,8 @@ class NetworkPanel(ScreenPanel):
|
||||
del self.labels[i]
|
||||
self.show_add = False
|
||||
|
||||
@staticmethod
|
||||
def close_dialog(widget, response_id):
|
||||
widget.destroy()
|
||||
def popup_callback(self, msg):
|
||||
self._screen.show_popup_message(msg)
|
||||
|
||||
def connected_callback(self, ssid, prev_ssid):
|
||||
logging.info("Now connected to a new network")
|
||||
@@ -286,17 +281,13 @@ class NetworkPanel(ScreenPanel):
|
||||
{"name": _("Close"), "response": Gtk.ResponseType.CANCEL}
|
||||
]
|
||||
|
||||
scroll = Gtk.ScrolledWindow()
|
||||
scroll.set_property("overlay-scrolling", False)
|
||||
scroll.set_hexpand(True)
|
||||
scroll.set_vexpand(True)
|
||||
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
|
||||
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
|
||||
scroll = self._gtk.ScrolledWindow()
|
||||
self.labels['connecting_info'] = Gtk.Label(_("Starting WiFi Association"))
|
||||
self.labels['connecting_info'].set_halign(Gtk.Align.START)
|
||||
self.labels['connecting_info'].set_valign(Gtk.Align.START)
|
||||
scroll.add(self.labels['connecting_info'])
|
||||
self._gtk.Dialog(self._screen, buttons, scroll, self.close_dialog)
|
||||
dialog = self._gtk.Dialog(self._screen, buttons, scroll, self._gtk.remove_dialog)
|
||||
dialog.set_title(_("Starting WiFi Association"))
|
||||
self._screen.show_all()
|
||||
|
||||
if ssid in list(self.networks):
|
||||
@@ -314,7 +305,6 @@ class NetworkPanel(ScreenPanel):
|
||||
def remove_network(self, ssid, show=True):
|
||||
if ssid not in list(self.networks):
|
||||
return
|
||||
logging.info(self.labels['networklist'])
|
||||
for i in range(len(self.labels['networklist'])):
|
||||
if self.networks[ssid] == self.labels['networklist'].get_child_at(0, i):
|
||||
self.labels['networklist'].remove_row(i)
|
||||
@@ -345,16 +335,15 @@ class NetworkPanel(ScreenPanel):
|
||||
if "add_network" in self.labels:
|
||||
del self.labels['add_network']
|
||||
|
||||
label = self._gtk.Label(_("PSK for") + f' ssid')
|
||||
label = self._gtk.Label(_("PSK for") + ' ssid')
|
||||
label.set_hexpand(False)
|
||||
self.labels['network_psk'] = Gtk.Entry()
|
||||
self.labels['network_psk'].set_text('')
|
||||
self.labels['network_psk'].set_hexpand(True)
|
||||
self.labels['network_psk'].connect("activate", self.add_new_network, ssid, True)
|
||||
self.labels['network_psk'].connect("focus-in-event", self._show_keyboard)
|
||||
self.labels['network_psk'].grab_focus_without_selecting()
|
||||
self.labels['network_psk'].connect("focus-in-event", self._screen.show_keyboard)
|
||||
|
||||
save = self._gtk.ButtonImage("sd", _("Save"), "color3")
|
||||
save = self._gtk.Button("sd", _("Save"), "color3")
|
||||
save.set_hexpand(False)
|
||||
save.connect("clicked", self.add_new_network, ssid, True)
|
||||
|
||||
@@ -370,13 +359,10 @@ class NetworkPanel(ScreenPanel):
|
||||
self.labels['add_network'].pack_start(box, True, True, 5)
|
||||
|
||||
self.content.add(self.labels['add_network'])
|
||||
self._screen.show_keyboard()
|
||||
self.labels['network_psk'].grab_focus_without_selecting()
|
||||
self.content.show_all()
|
||||
self.show_add = True
|
||||
|
||||
def _show_keyboard(self, widget=None, event=None):
|
||||
self._screen.show_keyboard(entry=self.labels['network_psk'])
|
||||
|
||||
def update_all_networks(self):
|
||||
for network in list(self.networks):
|
||||
self.update_network_info(network)
|
||||
@@ -390,8 +376,6 @@ class NetworkPanel(ScreenPanel):
|
||||
logging.info(f"Unknown SSID {ssid}")
|
||||
return
|
||||
netinfo = self.wifi.get_network_info(ssid)
|
||||
if netinfo is None:
|
||||
netinfo = {}
|
||||
if "connected" in netinfo:
|
||||
connected = netinfo['connected']
|
||||
else:
|
||||
@@ -403,9 +387,10 @@ class NetworkPanel(ScreenPanel):
|
||||
ifadd = netifaces.ifaddresses(self.interface)
|
||||
if netifaces.AF_INET in ifadd and len(ifadd[netifaces.AF_INET]) > 0:
|
||||
ipv4 = f"<b>IPv4:</b> {ifadd[netifaces.AF_INET][0]['addr']} "
|
||||
self.labels['ip'].set_text(f"IP: {ifadd[netifaces.AF_INET][0]['addr']} ")
|
||||
if netifaces.AF_INET6 in ifadd and len(ifadd[netifaces.AF_INET6]) > 0:
|
||||
ipv6 = f"<b>IPv6:</b> {ifadd[netifaces.AF_INET6][0]['addr'].split('%')[0]} "
|
||||
info = f'<b>' + _("Hostname") + f':</b> {hostname}\n{ipv4}\n{ipv6}\n'
|
||||
info = '<b>' + _("Hostname") + f':</b> {hostname}\n{ipv4}\n{ipv6}\n'
|
||||
elif "psk" in netinfo:
|
||||
info = _("Password saved")
|
||||
if "encryption" in netinfo:
|
||||
@@ -430,12 +415,13 @@ class NetworkPanel(ScreenPanel):
|
||||
ipv6 = ""
|
||||
if netifaces.AF_INET in ifadd and len(ifadd[netifaces.AF_INET]) > 0:
|
||||
ipv4 = f"<b>IPv4:</b> {ifadd[netifaces.AF_INET][0]['addr']} "
|
||||
self.labels['ip'].set_text(f"IP: {ifadd[netifaces.AF_INET][0]['addr']} ")
|
||||
if netifaces.AF_INET6 in ifadd and len(ifadd[netifaces.AF_INET6]) > 0:
|
||||
ipv6 = f"<b>IPv6:</b> {ifadd[netifaces.AF_INET6][0]['addr'].split('%')[0]} "
|
||||
connected = (
|
||||
f'<b>{self.interface}</b>\n\n'
|
||||
f'<small><b>' + _("Connected") + f'</b></small>\n'
|
||||
f'<b>' + _("Hostname") + f':</b> {hostname}\n'
|
||||
+ '<b>' + _("Hostname") + f':</b> {hostname}\n'
|
||||
f'{ipv4}\n'
|
||||
f'{ipv6}\n'
|
||||
)
|
||||
@@ -446,7 +432,7 @@ class NetworkPanel(ScreenPanel):
|
||||
def reload_networks(self, widget=None):
|
||||
self.networks = {}
|
||||
self.labels['networklist'].remove_column(0)
|
||||
if self.wifi is not None and self.wifi.is_initialized():
|
||||
if self.wifi is not None and self.wifi.initialized:
|
||||
self.wifi.rescan()
|
||||
GLib.idle_add(self.load_networks)
|
||||
|
||||
@@ -454,7 +440,7 @@ class NetworkPanel(ScreenPanel):
|
||||
if self.initialized:
|
||||
self.reload_networks()
|
||||
if self.update_timeout is None:
|
||||
if self.wifi is not None and self.wifi.is_initialized():
|
||||
if self.wifi is not None and self.wifi.initialized:
|
||||
self.update_timeout = GLib.timeout_add_seconds(5, self.update_all_networks)
|
||||
else:
|
||||
self.update_timeout = GLib.timeout_add_seconds(5, self.update_single_network_info)
|
||||
|
||||
+6
-13
@@ -1,6 +1,7 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Pango
|
||||
|
||||
@@ -13,8 +14,8 @@ def create_panel(*args):
|
||||
|
||||
class OutputPinPanel(ScreenPanel):
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.devices = {}
|
||||
# Create a grid for all devices
|
||||
self.labels['devices'] = Gtk.Grid()
|
||||
@@ -36,10 +37,6 @@ class OutputPinPanel(ScreenPanel):
|
||||
continue
|
||||
self.add_pin(pin)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.set_vexpand(False)
|
||||
self.labels['devices'].attach(frame, 0, -1, 1, 1)
|
||||
|
||||
def add_pin(self, pin):
|
||||
|
||||
logging.info(f"Adding pin: {pin}")
|
||||
@@ -60,7 +57,7 @@ class OutputPinPanel(ScreenPanel):
|
||||
scale.get_style_context().add_class("fan_slider")
|
||||
scale.connect("button-release-event", self.set_output_pin, pin)
|
||||
|
||||
min_btn = self._gtk.ButtonImage("cancel", None, "color1", 1)
|
||||
min_btn = self._gtk.Button("cancel", None, "color1", 1)
|
||||
min_btn.set_hexpand(False)
|
||||
min_btn.connect("clicked", self.update_pin_value, pin, 0)
|
||||
|
||||
@@ -72,12 +69,8 @@ class OutputPinPanel(ScreenPanel):
|
||||
pin_row.add(name)
|
||||
pin_row.add(pin_col)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(pin_row)
|
||||
|
||||
self.devices[pin] = {
|
||||
"row": frame,
|
||||
"row": pin_row,
|
||||
"scale": scale,
|
||||
}
|
||||
|
||||
|
||||
+11
-18
@@ -1,6 +1,7 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
@@ -12,8 +13,8 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class PowerPanel(ScreenPanel):
|
||||
def initialize(self, panel_name):
|
||||
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.devices = {}
|
||||
|
||||
# Create a grid for all devices
|
||||
@@ -29,17 +30,14 @@ class PowerPanel(ScreenPanel):
|
||||
self.content.add(scroll)
|
||||
|
||||
def activate(self):
|
||||
devices = self._screen.printer.get_power_devices()
|
||||
devices = self._printer.get_power_devices()
|
||||
for x in devices:
|
||||
self.devices[x]['switch'].disconnect_by_func(self.on_switch)
|
||||
self.devices[x]['switch'].set_active(self._screen.printer.get_power_device_status(x) == "on")
|
||||
self.devices[x]['switch'].set_active(self._printer.get_power_device_status(x) == "on")
|
||||
|
||||
self.devices[x]['switch'].connect("notify::active", self.on_switch, x)
|
||||
|
||||
def add_device(self, device):
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
|
||||
name = Gtk.Label()
|
||||
name.set_markup(f"<big><b>{device}</b></big>")
|
||||
name.set_hexpand(True)
|
||||
@@ -51,10 +49,10 @@ class PowerPanel(ScreenPanel):
|
||||
|
||||
switch = Gtk.Switch()
|
||||
switch.set_hexpand(False)
|
||||
switch.set_active(self._screen.printer.get_power_device_status(device) == "on")
|
||||
switch.set_active(self._printer.get_power_device_status(device) == "on")
|
||||
switch.connect("notify::active", self.on_switch, device)
|
||||
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
|
||||
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
|
||||
switch.set_property("width-request", round(self._gtk.font_size * 7))
|
||||
switch.set_property("height-request", round(self._gtk.font_size * 3.5))
|
||||
|
||||
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
labels.add(name)
|
||||
@@ -65,10 +63,9 @@ class PowerPanel(ScreenPanel):
|
||||
dev.set_valign(Gtk.Align.CENTER)
|
||||
dev.add(labels)
|
||||
dev.add(switch)
|
||||
frame.add(dev)
|
||||
|
||||
self.devices[device] = {
|
||||
"row": frame,
|
||||
"row": dev,
|
||||
"switch": switch
|
||||
}
|
||||
|
||||
@@ -80,13 +77,9 @@ class PowerPanel(ScreenPanel):
|
||||
self.labels['devices'].show_all()
|
||||
|
||||
def load_power_devices(self):
|
||||
devices = self._screen.printer.get_power_devices()
|
||||
devices = self._printer.get_power_devices()
|
||||
for x in devices:
|
||||
self.add_device(x)
|
||||
# Add the line at the top
|
||||
frame = Gtk.Frame()
|
||||
frame.set_vexpand(False)
|
||||
self.labels['devices'].attach(frame, 0, -1, 1, 1)
|
||||
|
||||
def on_switch(self, switch, gparam, device):
|
||||
logging.debug(f"Power toggled {device}")
|
||||
|
||||
+216
-156
@@ -1,8 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import gi
|
||||
import logging
|
||||
import os
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Pango
|
||||
from datetime import datetime
|
||||
@@ -19,8 +20,8 @@ class PrintPanel(ScreenPanel):
|
||||
dir_panels = {}
|
||||
filelist = {'gcodes': {'directories': [], 'files': []}}
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
sortdir = self._config.get_main_config().get("print_sort_dir", "name_asc")
|
||||
sortdir = sortdir.split('_')
|
||||
if sortdir[0] not in ["name", "date"] or sortdir[1] not in ["asc", "desc"]:
|
||||
@@ -36,20 +37,20 @@ class PrintPanel(ScreenPanel):
|
||||
self.directories = {}
|
||||
self.labels['directories'] = {}
|
||||
self.labels['files'] = {}
|
||||
self.source = ""
|
||||
self.time_24 = self._config.get_main_config().getboolean("24htime", True)
|
||||
logging.info(f"24h time is {self.time_24}")
|
||||
|
||||
def initialize(self, panel_name):
|
||||
sort = Gtk.Label(_("Sort:"))
|
||||
sbox = Gtk.Box(spacing=0)
|
||||
sbox.set_vexpand(False)
|
||||
sbox.pack_start(sort, False, False, 5)
|
||||
for i, (name, val) in enumerate(self.sort_items.items(), start=1):
|
||||
s = self._gtk.ButtonImage(None, val, f"color{i % 4}", .5, Gtk.PositionType.RIGHT, 1)
|
||||
s = self._gtk.Button(None, val, f"color{i % 4}", .5, Gtk.PositionType.RIGHT, 1)
|
||||
if name == self.sort_current[0]:
|
||||
s.set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .5))
|
||||
s.set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], self._gtk.img_scale * self.bts))
|
||||
s.connect("clicked", self.change_sort, name)
|
||||
self.labels[f'sort_{name}'] = s
|
||||
sbox.add(s)
|
||||
refresh = self._gtk.ButtonImage("refresh", scale=.66)
|
||||
refresh = self._gtk.Button("refresh", style="color4", scale=self.bts)
|
||||
refresh.connect('clicked', self._refresh_files)
|
||||
sbox.add(refresh)
|
||||
sbox.set_hexpand(True)
|
||||
@@ -58,36 +59,39 @@ class PrintPanel(ScreenPanel):
|
||||
pbox = Gtk.Box(spacing=0)
|
||||
pbox.set_hexpand(True)
|
||||
pbox.set_vexpand(False)
|
||||
self.labels['path'] = Gtk.Label(" /")
|
||||
self.labels['path'] = Gtk.Label()
|
||||
pbox.add(self.labels['path'])
|
||||
self.labels['path_box'] = pbox
|
||||
|
||||
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
|
||||
box.set_vexpand(True)
|
||||
box.pack_start(sbox, False, False, 0)
|
||||
box.pack_start(pbox, False, False, 0)
|
||||
box.pack_start(self.scroll, True, True, 0)
|
||||
self.main = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
|
||||
self.main.set_vexpand(True)
|
||||
self.main.pack_start(sbox, False, False, 0)
|
||||
self.main.pack_start(pbox, False, False, 0)
|
||||
self.main.pack_start(self.scroll, True, True, 0)
|
||||
|
||||
self.dir_panels['gcodes'] = Gtk.Grid()
|
||||
|
||||
GLib.idle_add(self.reload_files)
|
||||
|
||||
self.scroll.add(self.dir_panels['gcodes'])
|
||||
self.content.add(box)
|
||||
self.content.add(self.main)
|
||||
self._screen.files.add_file_callback(self._callback)
|
||||
self.showing_rename = False
|
||||
|
||||
def activate(self):
|
||||
if self.cur_directory != "gcodes":
|
||||
self.change_dir(None, "gcodes")
|
||||
self._refresh_files()
|
||||
logging.debug("Print panel")
|
||||
|
||||
def add_directory(self, directory, show=True):
|
||||
parent_dir = '/'.join(directory.split('/')[:-1])
|
||||
parent_dir = os.path.dirname(directory)
|
||||
if directory not in self.filelist:
|
||||
self.filelist[directory] = {'directories': [], 'files': [], 'modified': 0}
|
||||
self.filelist[parent_dir]['directories'].append(directory)
|
||||
|
||||
if directory not in self.labels['directories']:
|
||||
self._create_frame(directory)
|
||||
self._create_row(directory)
|
||||
reverse = self.sort_current[1] != 0
|
||||
dirs = sorted(
|
||||
self.filelist[parent_dir]['directories'],
|
||||
@@ -102,34 +106,38 @@ class PrintPanel(ScreenPanel):
|
||||
self.dir_panels[parent_dir].show_all()
|
||||
|
||||
def add_file(self, filepath, show=True):
|
||||
|
||||
fileinfo = self._screen.files.get_file_info(filepath)
|
||||
if fileinfo is None:
|
||||
return
|
||||
|
||||
d = f"gcodes/{filepath}".split('/')[:-1]
|
||||
directory = '/'.join(d)
|
||||
filename = filepath.split('/')[-1]
|
||||
filename = os.path.basename(filepath)
|
||||
if filename.startswith("."):
|
||||
return
|
||||
directory = os.path.dirname(os.path.join("gcodes", filepath))
|
||||
d = directory.split(os.sep)
|
||||
for i in range(1, len(d)):
|
||||
curdir = "/".join(d[:i])
|
||||
newdir = "/".join(d[:i + 1])
|
||||
curdir = os.path.join(*d[:i])
|
||||
newdir = os.path.join(*d[:i + 1])
|
||||
if newdir not in self.filelist[curdir]['directories']:
|
||||
if d[i].startswith("."):
|
||||
return
|
||||
self.add_directory(newdir)
|
||||
|
||||
if filename not in self.filelist[directory]['files']:
|
||||
for i in range(1, len(d)):
|
||||
curdir = "/".join(d[:i + 1])
|
||||
curdir = os.path.join(*d[:i + 1])
|
||||
if curdir != "gcodes" and fileinfo['modified'] > self.filelist[curdir]['modified']:
|
||||
self.filelist[curdir]['modified'] = fileinfo['modified']
|
||||
self.labels['directories'][curdir]['info'].set_markup(
|
||||
f'<small>' + _("Modified")
|
||||
+ f' <b>{datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b></small>'
|
||||
)
|
||||
|
||||
if self.time_24:
|
||||
time = f':<b> {datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b>'
|
||||
else:
|
||||
time = f':<b> {datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %I:%M %p}</b>'
|
||||
info = _("Modified") + time
|
||||
info += "\n" + _("Size") + f':<b> {self.format_size(fileinfo["size"])}</b>'
|
||||
self.labels['directories'][curdir]['info'].set_markup(info)
|
||||
self.filelist[directory]['files'].append(filename)
|
||||
|
||||
if filepath not in self.files:
|
||||
self._create_frame_file(filename, filepath)
|
||||
self._create_row(filepath, filename)
|
||||
reverse = self.sort_current[1] != 0
|
||||
files = sorted(
|
||||
self.filelist[directory]['files'],
|
||||
@@ -145,106 +153,84 @@ class PrintPanel(ScreenPanel):
|
||||
if show is True:
|
||||
self.dir_panels[directory].show_all()
|
||||
|
||||
def _create_frame(self, directory):
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
|
||||
def _create_row(self, fullpath, filename=None):
|
||||
name = Gtk.Label()
|
||||
name.set_markup(f"<big><b>{directory.split('/')[-1]}</b></big>")
|
||||
name.set_hexpand(True)
|
||||
name.set_halign(Gtk.Align.START)
|
||||
name.set_line_wrap(True)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
|
||||
info = Gtk.Label()
|
||||
info.set_halign(Gtk.Align.START)
|
||||
|
||||
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
labels.add(name)
|
||||
labels.add(info)
|
||||
labels.set_vexpand(True)
|
||||
labels.set_valign(Gtk.Align.CENTER)
|
||||
labels.set_halign(Gtk.Align.START)
|
||||
|
||||
actions = self._gtk.ButtonImage("load", style="color3")
|
||||
actions.connect("clicked", self.change_dir, directory)
|
||||
actions.set_hexpand(False)
|
||||
actions.set_halign(Gtk.Align.END)
|
||||
|
||||
file = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
file.set_hexpand(True)
|
||||
file.set_vexpand(False)
|
||||
|
||||
icon = self._gtk.Image("folder", 1)
|
||||
|
||||
file.add(icon)
|
||||
file.add(labels)
|
||||
file.add(actions)
|
||||
frame.add(file)
|
||||
|
||||
self.directories[directory] = frame
|
||||
|
||||
self.labels['directories'][directory] = {
|
||||
"icon": icon,
|
||||
"info": info,
|
||||
"name": name
|
||||
}
|
||||
|
||||
self.dir_panels[directory] = Gtk.Grid()
|
||||
|
||||
def _create_frame_file(self, filename, filepath):
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
|
||||
name = Gtk.Label()
|
||||
name.set_markup(f'<big><b>{os.path.splitext(filename)[0].replace("_", " ")}</b></big>')
|
||||
name.get_style_context().add_class("print-filename")
|
||||
if filename:
|
||||
name.set_markup(f'<big><b>{os.path.splitext(filename)[0].replace("_", " ")}</b></big>')
|
||||
else:
|
||||
name.set_markup(f"<big><b>{os.path.split(fullpath)[-1]}</b></big>")
|
||||
name.set_hexpand(True)
|
||||
name.set_halign(Gtk.Align.START)
|
||||
name.set_line_wrap(True)
|
||||
name.set_line_wrap_mode(Pango.WrapMode.CHAR)
|
||||
|
||||
info = Gtk.Label()
|
||||
info.set_hexpand(True)
|
||||
info.set_halign(Gtk.Align.START)
|
||||
info.set_markup(self.get_file_info_str(filepath))
|
||||
labels = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||
labels.add(name)
|
||||
labels.add(info)
|
||||
labels.set_vexpand(True)
|
||||
labels.set_valign(Gtk.Align.CENTER)
|
||||
labels.set_halign(Gtk.Align.START)
|
||||
info.get_style_context().add_class("print-info")
|
||||
|
||||
actions = self._gtk.ButtonImage("print", style="color3")
|
||||
actions.connect("clicked", self.confirm_print, filepath)
|
||||
actions.set_hexpand(False)
|
||||
actions.set_halign(Gtk.Align.END)
|
||||
delete = self._gtk.Button("delete", style="color1", scale=self.bts)
|
||||
delete.set_hexpand(False)
|
||||
rename = self._gtk.Button("files", style="color2", scale=self.bts)
|
||||
rename.set_hexpand(False)
|
||||
|
||||
file = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
file.set_hexpand(True)
|
||||
file.set_vexpand(False)
|
||||
if filename:
|
||||
action = self._gtk.Button("print", style="color3")
|
||||
action.connect("clicked", self.confirm_print, fullpath)
|
||||
info.set_markup(self.get_file_info_str(fullpath))
|
||||
icon = Gtk.Button()
|
||||
icon.connect("clicked", self.confirm_print, fullpath)
|
||||
delete.connect("clicked", self.confirm_delete_file, f"gcodes/{fullpath}")
|
||||
rename.connect("clicked", self.show_rename, f"gcodes/{fullpath}")
|
||||
GLib.idle_add(self.image_load, fullpath)
|
||||
else:
|
||||
action = self._gtk.Button("load", style="color3")
|
||||
action.connect("clicked", self.change_dir, fullpath)
|
||||
icon = self._gtk.Button("folder")
|
||||
icon.connect("clicked", self.change_dir, fullpath)
|
||||
delete.connect("clicked", self.confirm_delete_directory, fullpath)
|
||||
rename.connect("clicked", self.show_rename, fullpath)
|
||||
icon.set_hexpand(False)
|
||||
action.set_hexpand(False)
|
||||
action.set_halign(Gtk.Align.END)
|
||||
|
||||
icon = Gtk.Image()
|
||||
delete.connect("clicked", self.confirm_delete_file, f"gcodes/{fullpath}")
|
||||
|
||||
row = Gtk.Grid()
|
||||
row.get_style_context().add_class("frame-item")
|
||||
row.set_hexpand(True)
|
||||
row.set_vexpand(False)
|
||||
row.attach(icon, 0, 0, 1, 2)
|
||||
row.attach(name, 1, 0, 3, 1)
|
||||
row.attach(info, 1, 1, 1, 1)
|
||||
row.attach(rename, 2, 1, 1, 1)
|
||||
row.attach(delete, 3, 1, 1, 1)
|
||||
|
||||
if not filename or (filename and os.path.splitext(filename)[1] in [".gcode", ".g", ".gco"]):
|
||||
row.attach(action, 4, 0, 1, 2)
|
||||
|
||||
if filename is not None:
|
||||
self.files[fullpath] = row
|
||||
self.labels['files'][fullpath] = {
|
||||
"icon": icon,
|
||||
"info": info,
|
||||
"name": name
|
||||
}
|
||||
else:
|
||||
self.directories[fullpath] = row
|
||||
self.labels['directories'][fullpath] = {
|
||||
"info": info,
|
||||
"name": name
|
||||
}
|
||||
self.dir_panels[fullpath] = Gtk.Grid()
|
||||
|
||||
def image_load(self, filepath):
|
||||
pixbuf = self.get_file_image(filepath, small=True)
|
||||
if pixbuf is not None:
|
||||
icon.set_from_pixbuf(pixbuf)
|
||||
self.labels['files'][filepath]['icon'].set_image(Gtk.Image.new_from_pixbuf(pixbuf))
|
||||
else:
|
||||
icon = self._gtk.Image("file", 1.6)
|
||||
|
||||
img = Gtk.Button()
|
||||
img.set_image(icon)
|
||||
img.connect("clicked", self.confirm_delete_file, f"gcodes/{filepath}")
|
||||
|
||||
file.add(img)
|
||||
file.add(labels)
|
||||
if os.path.splitext(filename)[1] in [".gcode", ".g", ".gco"]:
|
||||
file.add(actions)
|
||||
frame.add(file)
|
||||
|
||||
self.files[filepath] = frame
|
||||
self.labels['files'][filepath] = {
|
||||
"icon": icon,
|
||||
"info": info,
|
||||
"name": name
|
||||
}
|
||||
self.labels['files'][filepath]['icon'].set_image(self._gtk.Image("file"))
|
||||
|
||||
def confirm_delete_file(self, widget, filepath):
|
||||
logging.debug(f"Sending delete_file {filepath}")
|
||||
@@ -256,9 +242,22 @@ class PrintPanel(ScreenPanel):
|
||||
params
|
||||
)
|
||||
|
||||
def confirm_delete_directory(self, widget, dirpath):
|
||||
logging.debug(f"Sending delete_directory {dirpath}")
|
||||
params = {"path": f"{dirpath}", "force": True}
|
||||
self._screen._confirm_send_action(
|
||||
None,
|
||||
_("Delete Directory?") + "\n\n" + dirpath,
|
||||
"server.files.delete_directory",
|
||||
params
|
||||
)
|
||||
|
||||
def back(self):
|
||||
if len(self.cur_directory.split('/')) > 1:
|
||||
self.change_dir(None, '/'.join(self.cur_directory.split('/')[:-1]))
|
||||
if self.showing_rename:
|
||||
self.hide_rename()
|
||||
return True
|
||||
if os.path.dirname(self.cur_directory):
|
||||
self.change_dir(None, os.path.dirname(self.cur_directory))
|
||||
return True
|
||||
return False
|
||||
|
||||
@@ -270,7 +269,7 @@ class PrintPanel(ScreenPanel):
|
||||
for child in self.scroll.get_children():
|
||||
self.scroll.remove(child)
|
||||
self.cur_directory = directory
|
||||
self.labels['path'].set_text(f" /{self.cur_directory[7:]}")
|
||||
self.labels['path'].set_text(f" {self.cur_directory[7:]}")
|
||||
|
||||
self.scroll.add(self.dir_panels[directory])
|
||||
self.content.show_all()
|
||||
@@ -284,7 +283,8 @@ class PrintPanel(ScreenPanel):
|
||||
self.labels[f'sort_{oldkey}'].set_image(None)
|
||||
self.labels[f'sort_{oldkey}'].show_all()
|
||||
self.sort_current = [key, 0]
|
||||
self.labels[f'sort_{key}'].set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]], .5))
|
||||
self.labels[f'sort_{key}'].set_image(self._gtk.Image(self.sort_icon[self.sort_current[1]],
|
||||
self._gtk.img_scale * self.bts))
|
||||
self.labels[f'sort_{key}'].show()
|
||||
GLib.idle_add(self.reload_files)
|
||||
|
||||
@@ -308,51 +308,58 @@ class PrintPanel(ScreenPanel):
|
||||
label.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
|
||||
grid = Gtk.Grid()
|
||||
grid.add(label)
|
||||
|
||||
pixbuf = self.get_file_image(filename, 8, 3.2)
|
||||
if pixbuf is not None:
|
||||
image = Gtk.Image.new_from_pixbuf(pixbuf)
|
||||
grid.attach_next_to(image, label, Gtk.PositionType.BOTTOM, 1, 3)
|
||||
|
||||
grid.set_vexpand(True)
|
||||
grid.set_halign(Gtk.Align.CENTER)
|
||||
grid.set_valign(Gtk.Align.CENTER)
|
||||
grid.add(label)
|
||||
|
||||
self._gtk.Dialog(self._screen, buttons, grid, self.confirm_print_response, filename)
|
||||
pixbuf = self.get_file_image(filename, self._screen.width * .9, self._screen.height * .6)
|
||||
if pixbuf is not None:
|
||||
image = Gtk.Image.new_from_pixbuf(pixbuf)
|
||||
image.set_vexpand(False)
|
||||
grid.attach_next_to(image, label, Gtk.PositionType.BOTTOM, 1, 1)
|
||||
|
||||
def confirm_print_response(self, widget, response_id, filename):
|
||||
widget.destroy()
|
||||
dialog = self._gtk.Dialog(self._screen, buttons, grid, self.confirm_print_response, filename)
|
||||
dialog.set_title(_("Print"))
|
||||
|
||||
def confirm_print_response(self, dialog, response_id, filename):
|
||||
self._gtk.remove_dialog(dialog)
|
||||
if response_id == Gtk.ResponseType.CANCEL:
|
||||
return
|
||||
|
||||
logging.info(f"Starting print: {filename}")
|
||||
self._screen._ws.klippy.print_start(filename)
|
||||
|
||||
def delete_file(self, filename):
|
||||
dir_parts = f"gcodes/{filename}".split('/')[:-1]
|
||||
directory = '/'.join(dir_parts)
|
||||
self.filelist[directory]["files"].pop(self.filelist[directory]["files"].index(filename.split('/')[-1]))
|
||||
directory = os.path.join("gcodes", os.path.dirname(filename)) if os.path.dirname(filename) else "gcodes"
|
||||
if directory not in self.filelist or os.path.basename(filename).startswith("."):
|
||||
return
|
||||
try:
|
||||
self.filelist[directory]["files"].pop(self.filelist[directory]["files"].index(os.path.basename(filename)))
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
dir_parts = directory.split(os.sep)
|
||||
i = len(dir_parts)
|
||||
while i > 1:
|
||||
cur_dir = '/'.join(dir_parts[:i])
|
||||
cur_dir = os.path.join(*dir_parts[:i])
|
||||
if len(self.filelist[cur_dir]['directories']) > 0 or len(self.filelist[cur_dir]['files']) > 0:
|
||||
break
|
||||
par_dir = '/'.join(cur_dir.split('/')[:-1])
|
||||
parent_dir = os.path.dirname(cur_dir)
|
||||
|
||||
if self.cur_directory == cur_dir:
|
||||
self.change_dir(None, par_dir)
|
||||
self.change_dir(None, parent_dir)
|
||||
|
||||
del self.filelist[cur_dir]
|
||||
self.filelist[par_dir]['directories'].pop(self.filelist[par_dir]['directories'].index(cur_dir))
|
||||
self.dir_panels[par_dir].remove(self.directories[cur_dir])
|
||||
self.filelist[parent_dir]['directories'].pop(self.filelist[parent_dir]['directories'].index(cur_dir))
|
||||
self.dir_panels[parent_dir].remove(self.directories[cur_dir])
|
||||
del self.directories[cur_dir]
|
||||
del self.labels['directories'][cur_dir]
|
||||
self.dir_panels[par_dir].show_all()
|
||||
self.dir_panels[parent_dir].show_all()
|
||||
i -= 1
|
||||
|
||||
self.dir_panels[directory].remove(self.files[filename])
|
||||
try:
|
||||
self.dir_panels[directory].remove(self.files[filename])
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
self.dir_panels[directory].show_all()
|
||||
self.files.pop(filename)
|
||||
|
||||
@@ -361,14 +368,16 @@ class PrintPanel(ScreenPanel):
|
||||
fileinfo = self._screen.files.get_file_info(filename)
|
||||
if fileinfo is None:
|
||||
return
|
||||
info = '<small>' + _("Uploaded") + f': <b>{datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b>\n'
|
||||
info = _("Uploaded")
|
||||
if self.time_24:
|
||||
info += f':<b> {datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %H:%M}</b>\n'
|
||||
else:
|
||||
info += f':<b> {datetime.fromtimestamp(fileinfo["modified"]):%Y-%m-%d %I:%M %p}</b>\n'
|
||||
|
||||
if "size" in fileinfo:
|
||||
info += _("Size") + f': <b>{self.format_size(fileinfo["size"])}</b>\n'
|
||||
info += _("Size") + f': <b>{self.format_size(fileinfo["size"])}</b>\n'
|
||||
if "estimated_time" in fileinfo:
|
||||
info += _("Print Time") + f': <b>{self.format_time(fileinfo["estimated_time"])}</b>'
|
||||
info += "</small>"
|
||||
|
||||
info += _("Print Time") + f': <b>{self.format_time(fileinfo["estimated_time"])}</b>'
|
||||
return info
|
||||
|
||||
def reload_files(self, widget=None):
|
||||
@@ -390,9 +399,7 @@ class PrintPanel(ScreenPanel):
|
||||
self.labels['files'][filename]['info'].set_markup(self.get_file_info_str(filename))
|
||||
|
||||
# Update icon
|
||||
pixbuf = self.get_file_image(filename)
|
||||
if pixbuf is not None:
|
||||
self.labels['files'][filename]['icon'].set_from_pixbuf(pixbuf)
|
||||
GLib.idle_add(self.image_load, filename)
|
||||
|
||||
def _callback(self, newfiles, deletedfiles, updatedfiles=None):
|
||||
logging.debug(f"newfiles: {newfiles}")
|
||||
@@ -406,10 +413,63 @@ class PrintPanel(ScreenPanel):
|
||||
for file in updatedfiles:
|
||||
self.update_file(file)
|
||||
|
||||
def _refresh_files(self, widget):
|
||||
def _refresh_files(self, widget=None):
|
||||
self._files.refresh_files()
|
||||
self._screen.memory_trace()
|
||||
|
||||
def process_update(self, action, data):
|
||||
if action == "notify_gcode_response" and "unknown" in data.lower():
|
||||
self._screen.show_popup_message(data)
|
||||
return
|
||||
def show_rename(self, widget, fullpath):
|
||||
self.source = fullpath
|
||||
logging.info(self.source)
|
||||
|
||||
for child in self.content.get_children():
|
||||
self.content.remove(child)
|
||||
|
||||
if "rename_file" not in self.labels:
|
||||
self._create_rename_box(fullpath)
|
||||
self.content.add(self.labels['rename_file'])
|
||||
self.labels['new_name'].set_text(fullpath[7:])
|
||||
self.labels['new_name'].grab_focus_without_selecting()
|
||||
self.showing_rename = True
|
||||
|
||||
def _create_rename_box(self, fullpath):
|
||||
lbl = self._gtk.Label(_("Rename/Move:"))
|
||||
lbl.set_halign(Gtk.Align.START)
|
||||
lbl.set_hexpand(False)
|
||||
self.labels['new_name'] = Gtk.Entry()
|
||||
self.labels['new_name'].set_text(fullpath)
|
||||
self.labels['new_name'].set_hexpand(True)
|
||||
self.labels['new_name'].connect("activate", self.rename)
|
||||
self.labels['new_name'].connect("focus-in-event", self._screen.show_keyboard)
|
||||
|
||||
save = self._gtk.Button("complete", _("Save"), "color3")
|
||||
save.set_hexpand(False)
|
||||
save.connect("clicked", self.rename)
|
||||
|
||||
box = Gtk.Box()
|
||||
box.pack_start(self.labels['new_name'], True, True, 5)
|
||||
box.pack_start(save, False, False, 5)
|
||||
|
||||
self.labels['rename_file'] = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=5)
|
||||
self.labels['rename_file'].set_valign(Gtk.Align.CENTER)
|
||||
self.labels['rename_file'].set_hexpand(True)
|
||||
self.labels['rename_file'].set_vexpand(True)
|
||||
self.labels['rename_file'].pack_start(lbl, True, True, 5)
|
||||
self.labels['rename_file'].pack_start(box, True, True, 5)
|
||||
|
||||
def hide_rename(self):
|
||||
self._screen.remove_keyboard()
|
||||
for child in self.content.get_children():
|
||||
self.content.remove(child)
|
||||
self.content.add(self.main)
|
||||
self.content.show()
|
||||
self.showing_rename = False
|
||||
|
||||
def rename(self, widget):
|
||||
params = {"source": self.source, "dest": f"gcodes/{self.labels['new_name'].get_text()}"}
|
||||
self._screen._send_action(
|
||||
widget,
|
||||
"server.files.move",
|
||||
params
|
||||
)
|
||||
self.back()
|
||||
GLib.timeout_add_seconds(2, self._refresh_files)
|
||||
+14
-11
@@ -1,23 +1,17 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk, GLib
|
||||
from ks_includes.screen_panel import ScreenPanel
|
||||
|
||||
logger = logging.getLogger("KlipperScreen.PrinterSelect")
|
||||
|
||||
|
||||
def create_panel(*args):
|
||||
return PrinterSelect(*args)
|
||||
|
||||
|
||||
class PrinterSelect(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, False)
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
printers = self._config.get_printers()
|
||||
|
||||
grid = self._gtk.HomogeneousGrid()
|
||||
@@ -38,8 +32,8 @@ class PrinterSelect(ScreenPanel):
|
||||
|
||||
for i, printer in enumerate(printers):
|
||||
name = list(printer)[0]
|
||||
self.labels[name] = self._gtk.ButtonImage("extruder", name, f"color{1 + i % 4}")
|
||||
self.labels[name].connect("clicked", self._screen.connect_printer_widget, name)
|
||||
self.labels[name] = self._gtk.Button("extruder", name, f"color{1 + i % 4}")
|
||||
self.labels[name].connect("clicked", self.connect_printer, name)
|
||||
if self._screen.vertical_mode:
|
||||
row = i % columns
|
||||
col = int(i / columns)
|
||||
@@ -47,3 +41,12 @@ class PrinterSelect(ScreenPanel):
|
||||
col = i % columns
|
||||
row = int(i / columns)
|
||||
grid.attach(self.labels[name], col, row, 1, 1)
|
||||
|
||||
def connect_printer(self, widget, name):
|
||||
self._screen.connect_printer(name)
|
||||
|
||||
def activate(self):
|
||||
self._screen.base_panel.action_bar.hide()
|
||||
GLib.timeout_add(100, self._screen.base_panel.action_bar.hide)
|
||||
if self._screen._ws:
|
||||
self._screen._ws.connecting = False
|
||||
+18
-14
@@ -1,7 +1,8 @@
|
||||
import gi
|
||||
import logging
|
||||
import re
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
|
||||
@@ -14,15 +15,12 @@ def create_panel(*args):
|
||||
|
||||
class FWRetractionPanel(ScreenPanel):
|
||||
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.options = None
|
||||
self.grid = Gtk.Grid()
|
||||
self.values = {}
|
||||
self.list = {}
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
conf = self._printer.get_config_section("firmware_retraction")
|
||||
|
||||
retract_length = float(conf['retract_length']) if 'retract_length' in conf else 0
|
||||
@@ -102,6 +100,14 @@ class FWRetractionPanel(ScreenPanel):
|
||||
self.list[option]['scale'].disconnect_by_func(self.set_opt_value)
|
||||
self.list[option]['scale'].set_value(self.values[option])
|
||||
self.list[option]['scale'].connect("button-release-event", self.set_opt_value, option)
|
||||
# Infinite scale
|
||||
for opt in self.options:
|
||||
if opt['option'] == option:
|
||||
if self.values[option] > opt["maxval"] * .75:
|
||||
self.list[option]['adjustment'].set_upper(self.values[option] * 1.5)
|
||||
else:
|
||||
self.list[option]['adjustment'].set_upper(opt["maxval"])
|
||||
break
|
||||
|
||||
def add_option(self, option, optname, units, value, digits, maxval):
|
||||
logging.info(f"Adding option: {option}")
|
||||
@@ -116,15 +122,16 @@ class FWRetractionPanel(ScreenPanel):
|
||||
name.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
|
||||
minimum = 1 if option in ["retract_speed", "unretract_speed"] else 0
|
||||
self.values[option] = value
|
||||
scale = Gtk.Scale.new_with_range(orientation=Gtk.Orientation.HORIZONTAL, min=minimum, max=maxval, step=1)
|
||||
scale.set_value(self.values[option])
|
||||
# adj (value, lower, upper, step_increment, page_increment, page_size)
|
||||
adj = Gtk.Adjustment(value, minimum, maxval, 1, 5, 0)
|
||||
scale = Gtk.Scale.new(orientation=Gtk.Orientation.HORIZONTAL, adjustment=adj)
|
||||
scale.set_digits(digits)
|
||||
scale.set_hexpand(True)
|
||||
scale.set_has_origin(True)
|
||||
scale.get_style_context().add_class("option_slider")
|
||||
scale.connect("button-release-event", self.set_opt_value, option)
|
||||
|
||||
reset = self._gtk.ButtonImage("refresh", style="color1")
|
||||
reset = self._gtk.Button("refresh", style="color1")
|
||||
reset.connect("clicked", self.reset_value, option)
|
||||
reset.set_hexpand(False)
|
||||
|
||||
@@ -133,13 +140,10 @@ class FWRetractionPanel(ScreenPanel):
|
||||
item.attach(scale, 0, 1, 1, 1)
|
||||
item.attach(reset, 1, 1, 1, 1)
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
frame.add(item)
|
||||
|
||||
self.list[option] = {
|
||||
"row": frame,
|
||||
"row": item,
|
||||
"scale": scale,
|
||||
"adjustment": adj,
|
||||
}
|
||||
|
||||
pos = sorted(self.list).index(option)
|
||||
|
||||
+9
-34
@@ -1,5 +1,4 @@
|
||||
import gi
|
||||
import logging
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, Pango
|
||||
@@ -12,15 +11,10 @@ def create_panel(*args):
|
||||
|
||||
|
||||
class SettingsPanel(ScreenPanel):
|
||||
def __init__(self, screen, title, back=True):
|
||||
super().__init__(screen, title, back)
|
||||
def __init__(self, screen, title):
|
||||
super().__init__(screen, title)
|
||||
self.printers = self.settings = {}
|
||||
self.menu = ['settings_menu']
|
||||
|
||||
def initialize(self, panel_name):
|
||||
|
||||
self.labels['add_printer_button'] = self._gtk.Button(_("Add Printer"), "color1")
|
||||
|
||||
options = self._config.get_configurable_options().copy()
|
||||
options.append({"printers": {
|
||||
"name": _("Printer Connections"),
|
||||
@@ -39,7 +33,6 @@ class SettingsPanel(ScreenPanel):
|
||||
self.labels['printers'] = Gtk.Grid()
|
||||
self.labels['printers_menu'].add(self.labels['printers'])
|
||||
for printer in self._config.get_printers():
|
||||
logging.debug(f"Printer: {printer}")
|
||||
pname = list(printer)[0]
|
||||
self.printers[pname] = {
|
||||
"name": pname,
|
||||
@@ -65,10 +58,6 @@ class SettingsPanel(ScreenPanel):
|
||||
def add_option(self, boxname, opt_array, opt_name, option):
|
||||
if option['type'] is None:
|
||||
return
|
||||
|
||||
frame = Gtk.Frame()
|
||||
frame.get_style_context().add_class("frame-item")
|
||||
|
||||
name = Gtk.Label()
|
||||
name.set_markup(f"<big><b>{option['name']}</b></big>")
|
||||
name.set_hexpand(True)
|
||||
@@ -82,32 +71,24 @@ class SettingsPanel(ScreenPanel):
|
||||
labels.add(name)
|
||||
|
||||
dev = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=5)
|
||||
dev.get_style_context().add_class("frame-item")
|
||||
dev.set_hexpand(True)
|
||||
dev.set_vexpand(False)
|
||||
dev.set_valign(Gtk.Align.CENTER)
|
||||
|
||||
dev.add(labels)
|
||||
if option['type'] == "binary":
|
||||
box = Gtk.Box()
|
||||
box.set_vexpand(False)
|
||||
switch = Gtk.Switch()
|
||||
switch.set_hexpand(False)
|
||||
switch.set_vexpand(False)
|
||||
switch.set_active(self._config.get_config().getboolean(option['section'], opt_name))
|
||||
switch.connect("notify::active", self.switch_config_option, option['section'], opt_name,
|
||||
option['callback'] if "callback" in option else None)
|
||||
switch.set_property("width-request", round(self._gtk.get_font_size() * 7))
|
||||
switch.set_property("height-request", round(self._gtk.get_font_size() * 3.5))
|
||||
box.add(switch)
|
||||
dev.add(box)
|
||||
dev.add(switch)
|
||||
elif option['type'] == "dropdown":
|
||||
dropdown = Gtk.ComboBoxText()
|
||||
i = 0
|
||||
for opt in option['options']:
|
||||
for i, opt in enumerate(option['options']):
|
||||
dropdown.append(opt['value'], opt['name'])
|
||||
if opt['value'] == self._config.get_config()[option['section']].get(opt_name, option['value']):
|
||||
dropdown.set_active(i)
|
||||
i += 1
|
||||
dropdown.connect("changed", self.on_dropdown_change, option['section'], opt_name,
|
||||
option['callback'] if "callback" in option else None)
|
||||
dropdown.set_entry_text_column(0)
|
||||
@@ -122,27 +103,21 @@ class SettingsPanel(ScreenPanel):
|
||||
scale.connect("button-release-event", self.scale_moved, option['section'], opt_name)
|
||||
dev.add(scale)
|
||||
elif option['type'] == "printer":
|
||||
logging.debug(f"Option: {option}")
|
||||
box = Gtk.Box()
|
||||
box.set_vexpand(False)
|
||||
label = Gtk.Label()
|
||||
url = f"{option['moonraker_host']}:{option['moonraker_port']}"
|
||||
label.set_markup(f"<big>{option['name']}</big>\n{url}")
|
||||
label = Gtk.Label(f"{option['moonraker_host']}:{option['moonraker_port']}")
|
||||
box.add(label)
|
||||
dev.add(box)
|
||||
elif option['type'] == "menu":
|
||||
open_menu = self._gtk.ButtonImage("settings", style="color3")
|
||||
open_menu.connect("clicked", self.load_menu, option['menu'])
|
||||
open_menu = self._gtk.Button("settings", style="color3")
|
||||
open_menu.connect("clicked", self.load_menu, option['menu'], option['name'])
|
||||
open_menu.set_hexpand(False)
|
||||
open_menu.set_halign(Gtk.Align.END)
|
||||
dev.add(open_menu)
|
||||
|
||||
frame.add(dev)
|
||||
frame.show_all()
|
||||
|
||||
opt_array[opt_name] = {
|
||||
"name": option['name'],
|
||||
"row": frame
|
||||
"row": dev
|
||||
}
|
||||
|
||||
opts = sorted(list(opt_array), key=lambda x: opt_array[x]['name'])
|
||||
|
||||
Loaded 100 of 121 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user