diff --git a/po/de.po b/po/de.po index 7010702..9105c92 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ptouch-print 1.7\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2026-09-08 07:19+0200\n" +"POT-Creation-Date: 2026-09-25 09:51+0200\n" "PO-Revision-Date: 2024-05-23 22:27-0400\n" "Last-Translator: dominic@familie-radermacher.ch\n" "Language-Team: German \n" @@ -19,325 +19,343 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.4.2\n" -#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132 +#: src/libptouch.c:131 src/libptouch.c:135 src/libptouch.c:139 #, c-format msgid "out of memory\n" msgstr "Nicht genug Speicher\n" -#: src/libptouch.c:136 +#: src/libptouch.c:143 src/libptouch.c:602 #, c-format msgid "libusb_init() failed\n" msgstr "ptouch_init() fehlgeschlagen\n" -#: src/libptouch.c:145 +#: src/libptouch.c:152 #, c-format msgid "failed to get device descriptor" msgstr "" -#: src/libptouch.c:151 -#, c-format -msgid "%s found on USB bus %d, device %d\n" -msgstr "Drucker %s am USB Bus %d, Gerät %d gefunden\n" - -#: src/libptouch.c:166 +#: src/libptouch.c:160 #, c-format msgid "libusb_open error :%s\n" msgstr "" -#: src/libptouch.c:172 +#: src/libptouch.c:171 +#, fuzzy, c-format +msgid "%s found on USB bus %d, device %d, serial %s\n" +msgstr "Drucker %s am USB Bus %d, Gerät %d gefunden\n" + +#: src/libptouch.c:200 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "" -#: src/libptouch.c:176 +#: src/libptouch.c:204 #, c-format msgid "interface claim error: %s\n" msgstr "" -#: src/libptouch.c:188 +#: src/libptouch.c:218 +#, c-format +msgid "No P-Touch printer with serial %s found\n" +msgstr "" + +#: src/libptouch.c:220 src/ptouch-print.c:722 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "Kein P-Ptouch Drucker am USB gefunden (Schalter muss auf E stehen)\n" -#: src/libptouch.c:208 +#: src/libptouch.c:241 #, c-format msgid "debug: called ptouch_send() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:215 +#: src/libptouch.c:248 #, c-format msgid "write error: %s\n" msgstr "" -#: src/libptouch.c:219 +#: src/libptouch.c:252 #, fuzzy, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n" -#: src/libptouch.c:269 +#: src/libptouch.c:302 #, c-format msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:311 +#: src/libptouch.c:344 #, fuzzy, c-format msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/libptouch.c:351 +#: src/libptouch.c:384 #, c-format msgid "debug: called ptouch_finalize() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:366 +#: src/libptouch.c:399 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "" -#: src/libptouch.c:385 +#: src/libptouch.c:418 #, c-format msgid "debug: called ptouch_getstatus() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:395 src/libptouch.c:426 +#: src/libptouch.c:428 src/libptouch.c:459 #, c-format msgid "read error: %s\n" msgstr "" -#: src/libptouch.c:400 +#: src/libptouch.c:433 #, c-format msgid "timeout (%i sec) while waiting for status response\n" msgstr "" -#: src/libptouch.c:409 +#: src/libptouch.c:442 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "Unbekannte Schriftband breite (%i mm), bitte melden\n" -#: src/libptouch.c:415 +#: src/libptouch.c:448 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "nur 16 bytes empfangen... mal gucken was die sind:\n" -#: src/libptouch.c:419 +#: src/libptouch.c:452 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n" -#: src/libptouch.c:422 +#: src/libptouch.c:455 #, c-format msgid "strange status:\n" msgstr "Seltsamer Status:\n" -#: src/libptouch.c:424 +#: src/libptouch.c:457 #, c-format msgid "trying to flush junk\n" msgstr "" -#: src/libptouch.c:429 +#: src/libptouch.c:462 #, c-format msgid "got another %i bytes. now try again\n" msgstr "weitere %i bytes empfangen. probiere es nochmal.\n" -#: src/libptouch.c:436 +#: src/libptouch.c:469 #, fuzzy, c-format msgid "debug: called ptouch_get_dpi() with NULL ptdev\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/libptouch.c:445 +#: src/libptouch.c:478 #, fuzzy, c-format msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/libptouch.c:456 +#: src/libptouch.c:489 #, c-format msgid "printer with %d dpi not supported\n" msgstr "" -#: src/libptouch.c:476 +#: src/libptouch.c:509 #, fuzzy, c-format msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/libptouch.c:480 +#: src/libptouch.c:513 #, fuzzy, c-format msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/libptouch.c:483 +#: src/libptouch.c:516 #, c-format msgid "debug: calculated max lines %d \n" msgstr "" -#: src/libptouch.c:490 +#: src/libptouch.c:523 #, c-format msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:499 +#: src/libptouch.c:532 #, c-format msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:514 +#: src/libptouch.c:547 #, c-format msgid "debug: called ptouch_sendraster() with NULL ptdev\n" msgstr "" -#: src/ptouch-print.c:186 +#: src/libptouch.c:625 +#, fuzzy, c-format +msgid "%s\tserial %s\t(USB bus %d, device %d)%s\n" +msgstr "Drucker %s am USB Bus %d, Gerät %d gefunden\n" + +#: src/libptouch.c:629 +msgid " - in P-Lite mode, unsupported" +msgstr "" + +#: src/libptouch.c:630 +msgid " - unsupported" +msgstr "" + +#: src/ptouch-print.c:190 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:194 +#: src/ptouch-print.c:198 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "Bild ist zu gross (%ipx x %ipx)\n" -#: src/ptouch-print.c:195 +#: src/ptouch-print.c:199 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" -#: src/ptouch-print.c:198 +#: src/ptouch-print.c:202 #, fuzzy, c-format msgid "image size (%ipx x %ipx)\n" msgstr "Bild ist zu gross (%ipx x %ipx)\n" -#: src/ptouch-print.c:214 +#: src/ptouch-print.c:218 #, c-format msgid "ptouch_rasterstart() failed\n" msgstr "ptouch_rasterstart() fehlgeschlagen\n" -#: src/ptouch-print.c:220 +#: src/ptouch-print.c:224 #, c-format msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:226 +#: src/ptouch-print.c:230 #, c-format msgid "send PT-D460BT magic commands\n" msgstr "" -#: src/ptouch-print.c:233 +#: src/ptouch-print.c:237 #, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:242 +#: src/ptouch-print.c:246 #, c-format msgid "send PT-D460BT chain commands\n" msgstr "" -#: src/ptouch-print.c:254 +#: src/ptouch-print.c:258 #, fuzzy, c-format msgid "ptouch_sendraster() failed\n" msgstr "ptouch_send() fehlgeschlagen\n" -#: src/ptouch-print.c:303 +#: src/ptouch-print.c:307 #, c-format msgid "writing image '%s' failed\n" msgstr "Schreiben der Bilddatei '%s' fehlgeschlagen\n" -#: src/ptouch-print.c:308 +#: src/ptouch-print.c:312 #, c-format msgid "printing '%s' requires %.1f mm of tape\n" msgstr "" -#: src/ptouch-print.c:330 +#: src/ptouch-print.c:334 #, c-format msgid "debug: z baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:331 +#: src/ptouch-print.c:335 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:404 +#: src/ptouch-print.c:408 #, c-format msgid "render_text(): %i lines, font = '%s', align = '%c'\n" msgstr "" -#: src/ptouch-print.c:407 +#: src/ptouch-print.c:411 #, c-format msgid "warning: font config not available\n" msgstr "Warnung: fontconfig ist nicht verfügbar\n" -#: src/ptouch-print.c:411 +#: src/ptouch-print.c:415 #, c-format msgid "setting font size=%i\n" msgstr "setze Zeichensatzgrösse=%i\n" -#: src/ptouch-print.c:413 +#: src/ptouch-print.c:417 #, fuzzy, c-format msgid "ignoring setting font margin=%i\n" msgstr "setze Zeichensatzgrösse=%i\n" -#: src/ptouch-print.c:418 +#: src/ptouch-print.c:422 #, c-format msgid "could not estimate needed font size\n" msgstr "Konnte die notwendige Zeichensatzgrösse nicht bestimmen\n" -#: src/ptouch-print.c:425 +#: src/ptouch-print.c:429 #, c-format msgid "choosing font size=%i\n" msgstr "Wähle Zeichensatzgrösse %i\n" -#: src/ptouch-print.c:441 src/ptouch-print.c:475 +#: src/ptouch-print.c:445 src/ptouch-print.c:479 #, fuzzy, c-format msgid "error in gdImageStringFT_180dpi: %s\n" msgstr "Fehler in Funktion gdImageStringFT(): %s\n" -#: src/ptouch-print.c:632 +#: src/ptouch-print.c:636 #, c-format msgid "Only up to %d lines are supported" msgstr "" -#: src/ptouch-print.c:713 +#: src/ptouch-print.c:727 msgid "No arguments supported" msgstr "" -#: src/ptouch-print.c:718 +#: src/ptouch-print.c:732 msgid "Option --writepng missing" msgstr "" -#: src/ptouch-print.c:721 +#: src/ptouch-print.c:735 msgid "Options --force_tape_width and --info can't be used together" msgstr "" -#: src/ptouch-print.c:752 +#: src/ptouch-print.c:766 #, c-format msgid "ptouch_init() failed\n" msgstr "ptouch_init() fehlgeschlagen\n" -#: src/ptouch-print.c:761 +#: src/ptouch-print.c:775 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "ptouch_getstatus() fehlgeschlagen\n" -#: src/ptouch-print.c:775 +#: src/ptouch-print.c:789 #, fuzzy, c-format msgid "printer has %d dpi, maximum printing width is %ld px\n" msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" -#: src/ptouch-print.c:776 +#: src/ptouch-print.c:790 #, fuzzy, c-format msgid "maximum printing width for this tape is %ldpx\n" msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" -#: src/ptouch-print.c:801 +#: src/ptouch-print.c:815 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:810 +#: src/ptouch-print.c:824 #, c-format msgid "could not render text\n" msgstr "Konnte Text nicht rendern\n" -#: src/ptouch-print.c:851 +#: src/ptouch-print.c:865 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr "ptouch_finalize(%d) fehlgeschlagen\n" diff --git a/po/en.po b/po/en.po index 55accf9..17f2604 100644 --- a/po/en.po +++ b/po/en.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ptouch-print 1.7\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2026-09-08 07:19+0200\n" +"POT-Creation-Date: 2026-09-25 09:51+0200\n" "PO-Revision-Date: 2024-05-23 22:26-0400\n" "Last-Translator: dominic@familie-radermacher.ch\n" "Language-Team: English \n" @@ -18,326 +18,344 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.4.2\n" -#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132 +#: src/libptouch.c:131 src/libptouch.c:135 src/libptouch.c:139 #, c-format msgid "out of memory\n" msgstr "out of memory\n" -#: src/libptouch.c:136 +#: src/libptouch.c:143 src/libptouch.c:602 #, c-format msgid "libusb_init() failed\n" msgstr "libusb_init() failed\n" -#: src/libptouch.c:145 +#: src/libptouch.c:152 #, c-format msgid "failed to get device descriptor" msgstr "failed to get device descriptor" -#: src/libptouch.c:151 -#, c-format -msgid "%s found on USB bus %d, device %d\n" -msgstr "%s found on USB bus %d, device %d\n" - -#: src/libptouch.c:166 +#: src/libptouch.c:160 #, c-format msgid "libusb_open error :%s\n" msgstr "libusb_open error :%s\n" -#: src/libptouch.c:172 +#: src/libptouch.c:171 +#, fuzzy, c-format +msgid "%s found on USB bus %d, device %d, serial %s\n" +msgstr "%s found on USB bus %d, device %d\n" + +#: src/libptouch.c:200 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "error while detaching kernel driver: %s\n" -#: src/libptouch.c:176 +#: src/libptouch.c:204 #, c-format msgid "interface claim error: %s\n" msgstr "interface claim error: %s\n" -#: src/libptouch.c:188 +#: src/libptouch.c:218 +#, c-format +msgid "No P-Touch printer with serial %s found\n" +msgstr "" + +#: src/libptouch.c:220 src/ptouch-print.c:722 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "" "No P-Touch printer found on USB (remember to put switch to position E)\n" -#: src/libptouch.c:208 +#: src/libptouch.c:241 #, c-format msgid "debug: called ptouch_send() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:215 +#: src/libptouch.c:248 #, c-format msgid "write error: %s\n" msgstr "write error: %s\n" -#: src/libptouch.c:219 +#: src/libptouch.c:252 #, fuzzy, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "write error: could send only %i of %i bytes\n" -#: src/libptouch.c:269 +#: src/libptouch.c:302 #, c-format msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:311 +#: src/libptouch.c:344 #, fuzzy, c-format msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" msgstr "ptouch_rasterstart() failed\n" -#: src/libptouch.c:351 +#: src/libptouch.c:384 #, c-format msgid "debug: called ptouch_finalize() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:366 +#: src/libptouch.c:399 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "debug: dumping raw status bytes\n" -#: src/libptouch.c:385 +#: src/libptouch.c:418 #, c-format msgid "debug: called ptouch_getstatus() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:395 src/libptouch.c:426 +#: src/libptouch.c:428 src/libptouch.c:459 #, c-format msgid "read error: %s\n" msgstr "read error: %s\n" -#: src/libptouch.c:400 +#: src/libptouch.c:433 #, fuzzy, c-format msgid "timeout (%i sec) while waiting for status response\n" msgstr "timeout while waiting for status response\n" -#: src/libptouch.c:409 +#: src/libptouch.c:442 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "unknown tape width of %imm, please report this.\n" -#: src/libptouch.c:415 +#: src/libptouch.c:448 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "got only 16 bytes... wondering what they are:\n" -#: src/libptouch.c:419 +#: src/libptouch.c:452 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "read error: got %i instead of 32 bytes\n" -#: src/libptouch.c:422 +#: src/libptouch.c:455 #, c-format msgid "strange status:\n" msgstr "strange status:\n" -#: src/libptouch.c:424 +#: src/libptouch.c:457 #, c-format msgid "trying to flush junk\n" msgstr "trying to flush junk\n" -#: src/libptouch.c:429 +#: src/libptouch.c:462 #, c-format msgid "got another %i bytes. now try again\n" msgstr "got another %i bytes. now try again\n" -#: src/libptouch.c:436 +#: src/libptouch.c:469 #, fuzzy, c-format msgid "debug: called ptouch_get_dpi() with NULL ptdev\n" msgstr "ptouch_rasterstart() failed\n" -#: src/libptouch.c:445 +#: src/libptouch.c:478 #, fuzzy, c-format msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n" msgstr "ptouch_rasterstart() failed\n" -#: src/libptouch.c:456 +#: src/libptouch.c:489 #, c-format msgid "printer with %d dpi not supported\n" msgstr "" -#: src/libptouch.c:476 +#: src/libptouch.c:509 #, fuzzy, c-format msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n" msgstr "ptouch_rasterstart() failed\n" -#: src/libptouch.c:480 +#: src/libptouch.c:513 #, fuzzy, c-format msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n" msgstr "ptouch_rasterstart() failed\n" -#: src/libptouch.c:483 +#: src/libptouch.c:516 #, c-format msgid "debug: calculated max lines %d \n" msgstr "" -#: src/libptouch.c:490 +#: src/libptouch.c:523 #, c-format msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:499 +#: src/libptouch.c:532 #, c-format msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:514 +#: src/libptouch.c:547 #, c-format msgid "debug: called ptouch_sendraster() with NULL ptdev\n" msgstr "" -#: src/ptouch-print.c:186 +#: src/libptouch.c:625 +#, fuzzy, c-format +msgid "%s\tserial %s\t(USB bus %d, device %d)%s\n" +msgstr "%s found on USB bus %d, device %d\n" + +#: src/libptouch.c:629 +msgid " - in P-Lite mode, unsupported" +msgstr "" + +#: src/libptouch.c:630 +msgid " - unsupported" +msgstr "" + +#: src/ptouch-print.c:190 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:194 +#: src/ptouch-print.c:198 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "image is too large (%ipx x %ipx)\n" -#: src/ptouch-print.c:195 +#: src/ptouch-print.c:199 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "maximum printing width for this tape is %ipx\n" -#: src/ptouch-print.c:198 +#: src/ptouch-print.c:202 #, fuzzy, c-format msgid "image size (%ipx x %ipx)\n" msgstr "image is too large (%ipx x %ipx)\n" -#: src/ptouch-print.c:214 +#: src/ptouch-print.c:218 #, c-format msgid "ptouch_rasterstart() failed\n" msgstr "ptouch_rasterstart() failed\n" -#: src/ptouch-print.c:220 +#: src/ptouch-print.c:224 #, c-format msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:226 +#: src/ptouch-print.c:230 #, c-format msgid "send PT-D460BT magic commands\n" msgstr "" -#: src/ptouch-print.c:233 +#: src/ptouch-print.c:237 #, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:242 +#: src/ptouch-print.c:246 #, c-format msgid "send PT-D460BT chain commands\n" msgstr "" -#: src/ptouch-print.c:254 +#: src/ptouch-print.c:258 #, c-format msgid "ptouch_sendraster() failed\n" msgstr "ptouch_sendraster() failed\n" -#: src/ptouch-print.c:303 +#: src/ptouch-print.c:307 #, c-format msgid "writing image '%s' failed\n" msgstr "writing image '%s' failed\n" -#: src/ptouch-print.c:308 +#: src/ptouch-print.c:312 #, c-format msgid "printing '%s' requires %.1f mm of tape\n" msgstr "" -#: src/ptouch-print.c:330 +#: src/ptouch-print.c:334 #, c-format msgid "debug: z baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:331 +#: src/ptouch-print.c:335 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:404 +#: src/ptouch-print.c:408 #, c-format msgid "render_text(): %i lines, font = '%s', align = '%c'\n" msgstr "" -#: src/ptouch-print.c:407 +#: src/ptouch-print.c:411 #, c-format msgid "warning: font config not available\n" msgstr "warning: font config not available\n" -#: src/ptouch-print.c:411 +#: src/ptouch-print.c:415 #, c-format msgid "setting font size=%i\n" msgstr "setting font size=%i\n" -#: src/ptouch-print.c:413 +#: src/ptouch-print.c:417 #, fuzzy, c-format msgid "ignoring setting font margin=%i\n" msgstr "setting font size=%i\n" -#: src/ptouch-print.c:418 +#: src/ptouch-print.c:422 #, c-format msgid "could not estimate needed font size\n" msgstr "could not estimate needed font size\n" -#: src/ptouch-print.c:425 +#: src/ptouch-print.c:429 #, c-format msgid "choosing font size=%i\n" msgstr "choosing font size=%i\n" -#: src/ptouch-print.c:441 src/ptouch-print.c:475 +#: src/ptouch-print.c:445 src/ptouch-print.c:479 #, fuzzy, c-format msgid "error in gdImageStringFT_180dpi: %s\n" msgstr "error in gdImageStringFT: %s\n" -#: src/ptouch-print.c:632 +#: src/ptouch-print.c:636 #, c-format msgid "Only up to %d lines are supported" msgstr "" -#: src/ptouch-print.c:713 +#: src/ptouch-print.c:727 msgid "No arguments supported" msgstr "" -#: src/ptouch-print.c:718 +#: src/ptouch-print.c:732 msgid "Option --writepng missing" msgstr "" -#: src/ptouch-print.c:721 +#: src/ptouch-print.c:735 msgid "Options --force_tape_width and --info can't be used together" msgstr "" -#: src/ptouch-print.c:752 +#: src/ptouch-print.c:766 #, c-format msgid "ptouch_init() failed\n" msgstr "ptouch_init() failed\n" -#: src/ptouch-print.c:761 +#: src/ptouch-print.c:775 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "ptouch_getstatus() failed\n" -#: src/ptouch-print.c:775 +#: src/ptouch-print.c:789 #, fuzzy, c-format msgid "printer has %d dpi, maximum printing width is %ld px\n" msgstr "maximum printing width for this tape is %ipx\n" -#: src/ptouch-print.c:776 +#: src/ptouch-print.c:790 #, fuzzy, c-format msgid "maximum printing width for this tape is %ldpx\n" msgstr "maximum printing width for this tape is %ipx\n" -#: src/ptouch-print.c:801 +#: src/ptouch-print.c:815 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:810 +#: src/ptouch-print.c:824 #, c-format msgid "could not render text\n" msgstr "could not render text\n" -#: src/ptouch-print.c:851 +#: src/ptouch-print.c:865 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr "ptouch_finalize(%d) failed\n" diff --git a/po/ptouch.pot b/po/ptouch.pot index 79af6cb..f4f8260 100644 --- a/po/ptouch.pot +++ b/po/ptouch.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ptouch-print\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2026-09-12 16:18+0200\n" +"POT-Creation-Date: 2026-09-25 09:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,325 +17,343 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132 +#: src/libptouch.c:131 src/libptouch.c:135 src/libptouch.c:139 #, c-format msgid "out of memory\n" msgstr "" -#: src/libptouch.c:136 +#: src/libptouch.c:143 src/libptouch.c:602 #, c-format msgid "libusb_init() failed\n" msgstr "" -#: src/libptouch.c:145 +#: src/libptouch.c:152 #, c-format msgid "failed to get device descriptor" msgstr "" -#: src/libptouch.c:151 -#, c-format -msgid "%s found on USB bus %d, device %d\n" -msgstr "" - -#: src/libptouch.c:166 +#: src/libptouch.c:160 #, c-format msgid "libusb_open error :%s\n" msgstr "" -#: src/libptouch.c:172 +#: src/libptouch.c:171 +#, c-format +msgid "%s found on USB bus %d, device %d, serial %s\n" +msgstr "" + +#: src/libptouch.c:200 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "" -#: src/libptouch.c:176 +#: src/libptouch.c:204 #, c-format msgid "interface claim error: %s\n" msgstr "" -#: src/libptouch.c:188 +#: src/libptouch.c:218 +#, c-format +msgid "No P-Touch printer with serial %s found\n" +msgstr "" + +#: src/libptouch.c:220 src/ptouch-print.c:722 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "" -#: src/libptouch.c:208 +#: src/libptouch.c:241 #, c-format msgid "debug: called ptouch_send() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:215 +#: src/libptouch.c:248 #, c-format msgid "write error: %s\n" msgstr "" -#: src/libptouch.c:219 +#: src/libptouch.c:252 #, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "" -#: src/libptouch.c:269 +#: src/libptouch.c:302 #, c-format msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:311 +#: src/libptouch.c:344 #, c-format msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:351 +#: src/libptouch.c:384 #, c-format msgid "debug: called ptouch_finalize() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:366 +#: src/libptouch.c:399 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "" -#: src/libptouch.c:385 +#: src/libptouch.c:418 #, c-format msgid "debug: called ptouch_getstatus() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:395 src/libptouch.c:426 +#: src/libptouch.c:428 src/libptouch.c:459 #, c-format msgid "read error: %s\n" msgstr "" -#: src/libptouch.c:400 +#: src/libptouch.c:433 #, c-format msgid "timeout (%i sec) while waiting for status response\n" msgstr "" -#: src/libptouch.c:409 +#: src/libptouch.c:442 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "" -#: src/libptouch.c:415 +#: src/libptouch.c:448 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "" -#: src/libptouch.c:419 +#: src/libptouch.c:452 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "" -#: src/libptouch.c:422 +#: src/libptouch.c:455 #, c-format msgid "strange status:\n" msgstr "" -#: src/libptouch.c:424 +#: src/libptouch.c:457 #, c-format msgid "trying to flush junk\n" msgstr "" -#: src/libptouch.c:429 +#: src/libptouch.c:462 #, c-format msgid "got another %i bytes. now try again\n" msgstr "" -#: src/libptouch.c:436 +#: src/libptouch.c:469 #, c-format msgid "debug: called ptouch_get_dpi() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:445 +#: src/libptouch.c:478 #, c-format msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:456 +#: src/libptouch.c:489 #, c-format msgid "printer with %d dpi not supported\n" msgstr "" -#: src/libptouch.c:476 +#: src/libptouch.c:509 #, c-format msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:480 +#: src/libptouch.c:513 #, c-format msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n" msgstr "" -#: src/libptouch.c:483 +#: src/libptouch.c:516 #, c-format msgid "debug: calculated max lines %d \n" msgstr "" -#: src/libptouch.c:490 +#: src/libptouch.c:523 #, c-format msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:499 +#: src/libptouch.c:532 #, c-format msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" msgstr "" -#: src/libptouch.c:514 +#: src/libptouch.c:547 #, c-format msgid "debug: called ptouch_sendraster() with NULL ptdev\n" msgstr "" -#: src/ptouch-print.c:186 +#: src/libptouch.c:625 +#, c-format +msgid "%s\tserial %s\t(USB bus %d, device %d)%s\n" +msgstr "" + +#: src/libptouch.c:629 +msgid " - in P-Lite mode, unsupported" +msgstr "" + +#: src/libptouch.c:630 +msgid " - unsupported" +msgstr "" + +#: src/ptouch-print.c:190 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:194 +#: src/ptouch-print.c:198 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "" -#: src/ptouch-print.c:195 +#: src/ptouch-print.c:199 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "" -#: src/ptouch-print.c:198 +#: src/ptouch-print.c:202 #, c-format msgid "image size (%ipx x %ipx)\n" msgstr "" -#: src/ptouch-print.c:214 +#: src/ptouch-print.c:218 #, c-format msgid "ptouch_rasterstart() failed\n" msgstr "" -#: src/ptouch-print.c:220 +#: src/ptouch-print.c:224 #, c-format msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:226 +#: src/ptouch-print.c:230 #, c-format msgid "send PT-D460BT magic commands\n" msgstr "" -#: src/ptouch-print.c:233 +#: src/ptouch-print.c:237 #, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:242 +#: src/ptouch-print.c:246 #, c-format msgid "send PT-D460BT chain commands\n" msgstr "" -#: src/ptouch-print.c:254 +#: src/ptouch-print.c:258 #, c-format msgid "ptouch_sendraster() failed\n" msgstr "" -#: src/ptouch-print.c:303 +#: src/ptouch-print.c:307 #, c-format msgid "writing image '%s' failed\n" msgstr "" -#: src/ptouch-print.c:308 +#: src/ptouch-print.c:312 #, c-format msgid "printing '%s' requires %.1f mm of tape\n" msgstr "" -#: src/ptouch-print.c:330 +#: src/ptouch-print.c:334 #, c-format msgid "debug: z baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:331 +#: src/ptouch-print.c:335 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:404 +#: src/ptouch-print.c:408 #, c-format msgid "render_text(): %i lines, font = '%s', align = '%c'\n" msgstr "" -#: src/ptouch-print.c:407 +#: src/ptouch-print.c:411 #, c-format msgid "warning: font config not available\n" msgstr "" -#: src/ptouch-print.c:411 +#: src/ptouch-print.c:415 #, c-format msgid "setting font size=%i\n" msgstr "" -#: src/ptouch-print.c:413 +#: src/ptouch-print.c:417 #, c-format msgid "ignoring setting font margin=%i\n" msgstr "" -#: src/ptouch-print.c:418 +#: src/ptouch-print.c:422 #, c-format msgid "could not estimate needed font size\n" msgstr "" -#: src/ptouch-print.c:425 +#: src/ptouch-print.c:429 #, c-format msgid "choosing font size=%i\n" msgstr "" -#: src/ptouch-print.c:441 src/ptouch-print.c:475 +#: src/ptouch-print.c:445 src/ptouch-print.c:479 #, c-format msgid "error in gdImageStringFT_180dpi: %s\n" msgstr "" -#: src/ptouch-print.c:632 +#: src/ptouch-print.c:636 #, c-format msgid "Only up to %d lines are supported" msgstr "" -#: src/ptouch-print.c:713 +#: src/ptouch-print.c:727 msgid "No arguments supported" msgstr "" -#: src/ptouch-print.c:718 +#: src/ptouch-print.c:732 msgid "Option --writepng missing" msgstr "" -#: src/ptouch-print.c:721 +#: src/ptouch-print.c:735 msgid "Options --force_tape_width and --info can't be used together" msgstr "" -#: src/ptouch-print.c:752 +#: src/ptouch-print.c:766 #, c-format msgid "ptouch_init() failed\n" msgstr "" -#: src/ptouch-print.c:761 +#: src/ptouch-print.c:775 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "" -#: src/ptouch-print.c:775 +#: src/ptouch-print.c:789 #, c-format msgid "printer has %d dpi, maximum printing width is %ld px\n" msgstr "" -#: src/ptouch-print.c:776 +#: src/ptouch-print.c:790 #, c-format msgid "maximum printing width for this tape is %ldpx\n" msgstr "" -#: src/ptouch-print.c:801 +#: src/ptouch-print.c:815 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:810 +#: src/ptouch-print.c:824 #, c-format msgid "could not render text\n" msgstr "" -#: src/ptouch-print.c:851 +#: src/ptouch-print.c:865 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr ""