Enable FLAG_HAS_PRECUT for PT-2430PC

The PT-2430PC (0x04f9:0x202d) was flagged FLAG_NONE, so --precut was
silently a no-op on this model: printing a --chain'd batch of labels
produced one continuous strip with no cut between individual labels.

This printer shares the same head width and DPI (128px @ 180dpi) as
the PT-2700 (0x04f9:0x201f), which already has FLAG_HAS_PRECUT set.
That similarity prompted testing precut on real PT-2430PC hardware:
sending --chain on the first label and --precut on the second
produces a real cut between the two labels, with no errors and no
adverse effect on the surrounding print.

Tested on: PT-2430PC, USB ID 04f9:202d, tape: 12mm laminated.

Only the non-PLite entry is changed; the "(PLite Mode)" variant
(0x04f9:0x2031) was not tested and is left as FLAG_PLITE.
This commit is contained in:
Dominic Radermacher
2026-09-12 16:12:38 +02:00
parent 41c4af0d0d
commit 54e046f190
4 changed files with 199 additions and 199 deletions
+66 -66
View File
@@ -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-07-18 08:01+0200\n"
"POT-Creation-Date: 2026-09-08 07:19+0200\n"
"PO-Revision-Date: 2024-05-23 22:27-0400\n"
"Last-Translator: dominic@familie-radermacher.ch\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
@@ -19,325 +19,325 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.4.2\n"
#: src/libptouch.c:123 src/libptouch.c:127 src/libptouch.c:131
#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132
#, c-format
msgid "out of memory\n"
msgstr "Nicht genug Speicher\n"
#: src/libptouch.c:135
#: src/libptouch.c:136
#, c-format
msgid "libusb_init() failed\n"
msgstr "ptouch_init() fehlgeschlagen\n"
#: src/libptouch.c:144
#: src/libptouch.c:145
#, c-format
msgid "failed to get device descriptor"
msgstr ""
#: src/libptouch.c:150
#: 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:165
#: src/libptouch.c:166
#, c-format
msgid "libusb_open error :%s\n"
msgstr ""
#: src/libptouch.c:171
#: src/libptouch.c:172
#, c-format
msgid "error while detaching kernel driver: %s\n"
msgstr ""
#: src/libptouch.c:175
#: src/libptouch.c:176
#, c-format
msgid "interface claim error: %s\n"
msgstr ""
#: src/libptouch.c:187
#: src/libptouch.c:188
#, 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:207
#: src/libptouch.c:208
#, c-format
msgid "debug: called ptouch_send() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:214
#: src/libptouch.c:215
#, c-format
msgid "write error: %s\n"
msgstr ""
#: src/libptouch.c:218
#: src/libptouch.c:219
#, 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:268
#: src/libptouch.c:269
#, c-format
msgid "debug: called ptouch_info_cmd() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:310
#: src/libptouch.c:311
#, fuzzy, c-format
msgid "debug: called ptouch_rasterstart() with NULL ptdev\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/libptouch.c:341
#: src/libptouch.c:351
#, c-format
msgid "debug: called ptouch_finalize() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:356
#: src/libptouch.c:366
#, c-format
msgid "debug: dumping raw status bytes\n"
msgstr ""
#: src/libptouch.c:375
#: src/libptouch.c:385
#, c-format
msgid "debug: called ptouch_getstatus() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:385 src/libptouch.c:416
#: src/libptouch.c:395 src/libptouch.c:426
#, c-format
msgid "read error: %s\n"
msgstr ""
#: src/libptouch.c:390
#: src/libptouch.c:400
#, c-format
msgid "timeout (%i sec) while waiting for status response\n"
msgstr ""
#: src/libptouch.c:399
#: src/libptouch.c:409
#, c-format
msgid "unknown tape width of %imm, please report this.\n"
msgstr "Unbekannte Schriftband breite (%i mm), bitte melden\n"
#: src/libptouch.c:405
#: src/libptouch.c:415
#, 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:409
#: src/libptouch.c:419
#, c-format
msgid "read error: got %i instead of 32 bytes\n"
msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n"
#: src/libptouch.c:412
#: src/libptouch.c:422
#, c-format
msgid "strange status:\n"
msgstr "Seltsamer Status:\n"
#: src/libptouch.c:414
#: src/libptouch.c:424
#, c-format
msgid "trying to flush junk\n"
msgstr ""
#: src/libptouch.c:419
#: src/libptouch.c:429
#, c-format
msgid "got another %i bytes. now try again\n"
msgstr "weitere %i bytes empfangen. probiere es nochmal.\n"
#: src/libptouch.c:426
#: src/libptouch.c:436
#, fuzzy, c-format
msgid "debug: called ptouch_get_dpi() with NULL ptdev\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/libptouch.c:435
#: src/libptouch.c:445
#, fuzzy, c-format
msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/libptouch.c:446
#: src/libptouch.c:456
#, c-format
msgid "printer with %d dpi not supported\n"
msgstr ""
#: src/libptouch.c:466
#: src/libptouch.c:476
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/libptouch.c:470
#: src/libptouch.c:480
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/libptouch.c:473
#: src/libptouch.c:483
#, c-format
msgid "debug: calculated max lines %d \n"
msgstr ""
#: src/libptouch.c:480
#: src/libptouch.c:490
#, c-format
msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:489
#: src/libptouch.c:499
#, c-format
msgid "debug: called ptouch_get_max_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:504
#: src/libptouch.c:514
#, c-format
msgid "debug: called ptouch_sendraster() with NULL ptdev\n"
msgstr ""
#: src/ptouch-print.c:176
#: src/ptouch-print.c:186
#, c-format
msgid "nothing to print\n"
msgstr ""
#: src/ptouch-print.c:184
#: src/ptouch-print.c:194
#, c-format
msgid "image is too large (%ipx x %ipx)\n"
msgstr "Bild ist zu gross (%ipx x %ipx)\n"
#: src/ptouch-print.c:185
#: src/ptouch-print.c:195
#, 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:188
#: src/ptouch-print.c:198
#, fuzzy, c-format
msgid "image size (%ipx x %ipx)\n"
msgstr "Bild ist zu gross (%ipx x %ipx)\n"
#: src/ptouch-print.c:204
#: src/ptouch-print.c:214
#, c-format
msgid "ptouch_rasterstart() failed\n"
msgstr "ptouch_rasterstart() fehlgeschlagen\n"
#: src/ptouch-print.c:210
#: src/ptouch-print.c:220
#, c-format
msgid "send print information command\n"
msgstr ""
#: src/ptouch-print.c:216
#: src/ptouch-print.c:226
#, c-format
msgid "send PT-D460BT magic commands\n"
msgstr ""
#: src/ptouch-print.c:223
#: src/ptouch-print.c:233
#, c-format
msgid "send precut command\n"
msgstr ""
#: src/ptouch-print.c:232
#: src/ptouch-print.c:242
#, c-format
msgid "send PT-D460BT chain commands\n"
msgstr ""
#: src/ptouch-print.c:244
#: src/ptouch-print.c:254
#, fuzzy, c-format
msgid "ptouch_sendraster() failed\n"
msgstr "ptouch_send() fehlgeschlagen\n"
#: src/ptouch-print.c:293
#: src/ptouch-print.c:303
#, c-format
msgid "writing image '%s' failed\n"
msgstr "Schreiben der Bilddatei '%s' fehlgeschlagen\n"
#: src/ptouch-print.c:298
#: src/ptouch-print.c:308
#, c-format
msgid "printing '%s' requires %.1f mm of tape\n"
msgstr ""
#: src/ptouch-print.c:320
#: src/ptouch-print.c:330
#, c-format
msgid "debug: z baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:321
#: src/ptouch-print.c:331
#, c-format
msgid "debug: text baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:394
#: src/ptouch-print.c:404
#, c-format
msgid "render_text(): %i lines, font = '%s', align = '%c'\n"
msgstr ""
#: src/ptouch-print.c:397
#: src/ptouch-print.c:407
#, c-format
msgid "warning: font config not available\n"
msgstr "Warnung: fontconfig ist nicht verfügbar\n"
#: src/ptouch-print.c:401
#: src/ptouch-print.c:411
#, c-format
msgid "setting font size=%i\n"
msgstr "setze Zeichensatzgrösse=%i\n"
#: src/ptouch-print.c:403
#: src/ptouch-print.c:413
#, fuzzy, c-format
msgid "ignoring setting font margin=%i\n"
msgstr "setze Zeichensatzgrösse=%i\n"
#: src/ptouch-print.c:408
#: src/ptouch-print.c:418
#, c-format
msgid "could not estimate needed font size\n"
msgstr "Konnte die notwendige Zeichensatzgrösse nicht bestimmen\n"
#: src/ptouch-print.c:415
#: src/ptouch-print.c:425
#, c-format
msgid "choosing font size=%i\n"
msgstr "Wähle Zeichensatzgrösse %i\n"
#: src/ptouch-print.c:431 src/ptouch-print.c:465
#: src/ptouch-print.c:441 src/ptouch-print.c:475
#, fuzzy, c-format
msgid "error in gdImageStringFT_180dpi: %s\n"
msgstr "Fehler in Funktion gdImageStringFT(): %s\n"
#: src/ptouch-print.c:622
#: src/ptouch-print.c:632
#, c-format
msgid "Only up to %d lines are supported"
msgstr ""
#: src/ptouch-print.c:703
#: src/ptouch-print.c:713
msgid "No arguments supported"
msgstr ""
#: src/ptouch-print.c:708
#: src/ptouch-print.c:718
msgid "Option --writepng missing"
msgstr ""
#: src/ptouch-print.c:711
#: src/ptouch-print.c:721
msgid "Options --force_tape_width and --info can't be used together"
msgstr ""
#: src/ptouch-print.c:742
#: src/ptouch-print.c:752
#, c-format
msgid "ptouch_init() failed\n"
msgstr "ptouch_init() fehlgeschlagen\n"
#: src/ptouch-print.c:745
#: src/ptouch-print.c:761
#, c-format
msgid "ptouch_getstatus() failed\n"
msgstr "ptouch_getstatus() fehlgeschlagen\n"
#: src/ptouch-print.c:759
#: src/ptouch-print.c:775
#, 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:760
#: src/ptouch-print.c:776
#, 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:785
#: src/ptouch-print.c:801
#, c-format
msgid "failed to load image file\n"
msgstr ""
#: src/ptouch-print.c:794
#: src/ptouch-print.c:810
#, c-format
msgid "could not render text\n"
msgstr "Konnte Text nicht rendern\n"
#: src/ptouch-print.c:835
#: src/ptouch-print.c:851
#, c-format
msgid "ptouch_finalize(%d) failed\n"
msgstr "ptouch_finalize(%d) fehlgeschlagen\n"
+66 -66
View File
@@ -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-07-18 08:01+0200\n"
"POT-Creation-Date: 2026-09-08 07:19+0200\n"
"PO-Revision-Date: 2024-05-23 22:26-0400\n"
"Last-Translator: dominic@familie-radermacher.ch\n"
"Language-Team: English <en@translate.freefriends.org>\n"
@@ -18,326 +18,326 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.4.2\n"
#: src/libptouch.c:123 src/libptouch.c:127 src/libptouch.c:131
#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132
#, c-format
msgid "out of memory\n"
msgstr "out of memory\n"
#: src/libptouch.c:135
#: src/libptouch.c:136
#, c-format
msgid "libusb_init() failed\n"
msgstr "libusb_init() failed\n"
#: src/libptouch.c:144
#: src/libptouch.c:145
#, c-format
msgid "failed to get device descriptor"
msgstr "failed to get device descriptor"
#: src/libptouch.c:150
#: 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:165
#: src/libptouch.c:166
#, c-format
msgid "libusb_open error :%s\n"
msgstr "libusb_open error :%s\n"
#: src/libptouch.c:171
#: src/libptouch.c:172
#, c-format
msgid "error while detaching kernel driver: %s\n"
msgstr "error while detaching kernel driver: %s\n"
#: src/libptouch.c:175
#: src/libptouch.c:176
#, c-format
msgid "interface claim error: %s\n"
msgstr "interface claim error: %s\n"
#: src/libptouch.c:187
#: src/libptouch.c:188
#, 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:207
#: src/libptouch.c:208
#, c-format
msgid "debug: called ptouch_send() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:214
#: src/libptouch.c:215
#, c-format
msgid "write error: %s\n"
msgstr "write error: %s\n"
#: src/libptouch.c:218
#: src/libptouch.c:219
#, 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:268
#: src/libptouch.c:269
#, c-format
msgid "debug: called ptouch_info_cmd() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:310
#: src/libptouch.c:311
#, fuzzy, c-format
msgid "debug: called ptouch_rasterstart() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:341
#: src/libptouch.c:351
#, c-format
msgid "debug: called ptouch_finalize() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:356
#: src/libptouch.c:366
#, c-format
msgid "debug: dumping raw status bytes\n"
msgstr "debug: dumping raw status bytes\n"
#: src/libptouch.c:375
#: src/libptouch.c:385
#, c-format
msgid "debug: called ptouch_getstatus() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:385 src/libptouch.c:416
#: src/libptouch.c:395 src/libptouch.c:426
#, c-format
msgid "read error: %s\n"
msgstr "read error: %s\n"
#: src/libptouch.c:390
#: src/libptouch.c:400
#, fuzzy, c-format
msgid "timeout (%i sec) while waiting for status response\n"
msgstr "timeout while waiting for status response\n"
#: src/libptouch.c:399
#: src/libptouch.c:409
#, 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:405
#: src/libptouch.c:415
#, 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:409
#: src/libptouch.c:419
#, 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:412
#: src/libptouch.c:422
#, c-format
msgid "strange status:\n"
msgstr "strange status:\n"
#: src/libptouch.c:414
#: src/libptouch.c:424
#, c-format
msgid "trying to flush junk\n"
msgstr "trying to flush junk\n"
#: src/libptouch.c:419
#: src/libptouch.c:429
#, c-format
msgid "got another %i bytes. now try again\n"
msgstr "got another %i bytes. now try again\n"
#: src/libptouch.c:426
#: src/libptouch.c:436
#, fuzzy, c-format
msgid "debug: called ptouch_get_dpi() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:435
#: src/libptouch.c:445
#, fuzzy, c-format
msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:446
#: src/libptouch.c:456
#, c-format
msgid "printer with %d dpi not supported\n"
msgstr ""
#: src/libptouch.c:466
#: src/libptouch.c:476
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:470
#: src/libptouch.c:480
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:473
#: src/libptouch.c:483
#, c-format
msgid "debug: calculated max lines %d \n"
msgstr ""
#: src/libptouch.c:480
#: src/libptouch.c:490
#, c-format
msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:489
#: src/libptouch.c:499
#, c-format
msgid "debug: called ptouch_get_max_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:504
#: src/libptouch.c:514
#, c-format
msgid "debug: called ptouch_sendraster() with NULL ptdev\n"
msgstr ""
#: src/ptouch-print.c:176
#: src/ptouch-print.c:186
#, c-format
msgid "nothing to print\n"
msgstr ""
#: src/ptouch-print.c:184
#: src/ptouch-print.c:194
#, c-format
msgid "image is too large (%ipx x %ipx)\n"
msgstr "image is too large (%ipx x %ipx)\n"
#: src/ptouch-print.c:185
#: src/ptouch-print.c:195
#, 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:188
#: src/ptouch-print.c:198
#, fuzzy, c-format
msgid "image size (%ipx x %ipx)\n"
msgstr "image is too large (%ipx x %ipx)\n"
#: src/ptouch-print.c:204
#: src/ptouch-print.c:214
#, c-format
msgid "ptouch_rasterstart() failed\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/ptouch-print.c:210
#: src/ptouch-print.c:220
#, c-format
msgid "send print information command\n"
msgstr ""
#: src/ptouch-print.c:216
#: src/ptouch-print.c:226
#, c-format
msgid "send PT-D460BT magic commands\n"
msgstr ""
#: src/ptouch-print.c:223
#: src/ptouch-print.c:233
#, c-format
msgid "send precut command\n"
msgstr ""
#: src/ptouch-print.c:232
#: src/ptouch-print.c:242
#, c-format
msgid "send PT-D460BT chain commands\n"
msgstr ""
#: src/ptouch-print.c:244
#: src/ptouch-print.c:254
#, c-format
msgid "ptouch_sendraster() failed\n"
msgstr "ptouch_sendraster() failed\n"
#: src/ptouch-print.c:293
#: src/ptouch-print.c:303
#, c-format
msgid "writing image '%s' failed\n"
msgstr "writing image '%s' failed\n"
#: src/ptouch-print.c:298
#: src/ptouch-print.c:308
#, c-format
msgid "printing '%s' requires %.1f mm of tape\n"
msgstr ""
#: src/ptouch-print.c:320
#: src/ptouch-print.c:330
#, c-format
msgid "debug: z baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:321
#: src/ptouch-print.c:331
#, c-format
msgid "debug: text baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:394
#: src/ptouch-print.c:404
#, c-format
msgid "render_text(): %i lines, font = '%s', align = '%c'\n"
msgstr ""
#: src/ptouch-print.c:397
#: src/ptouch-print.c:407
#, c-format
msgid "warning: font config not available\n"
msgstr "warning: font config not available\n"
#: src/ptouch-print.c:401
#: src/ptouch-print.c:411
#, c-format
msgid "setting font size=%i\n"
msgstr "setting font size=%i\n"
#: src/ptouch-print.c:403
#: src/ptouch-print.c:413
#, fuzzy, c-format
msgid "ignoring setting font margin=%i\n"
msgstr "setting font size=%i\n"
#: src/ptouch-print.c:408
#: src/ptouch-print.c:418
#, c-format
msgid "could not estimate needed font size\n"
msgstr "could not estimate needed font size\n"
#: src/ptouch-print.c:415
#: src/ptouch-print.c:425
#, c-format
msgid "choosing font size=%i\n"
msgstr "choosing font size=%i\n"
#: src/ptouch-print.c:431 src/ptouch-print.c:465
#: src/ptouch-print.c:441 src/ptouch-print.c:475
#, fuzzy, c-format
msgid "error in gdImageStringFT_180dpi: %s\n"
msgstr "error in gdImageStringFT: %s\n"
#: src/ptouch-print.c:622
#: src/ptouch-print.c:632
#, c-format
msgid "Only up to %d lines are supported"
msgstr ""
#: src/ptouch-print.c:703
#: src/ptouch-print.c:713
msgid "No arguments supported"
msgstr ""
#: src/ptouch-print.c:708
#: src/ptouch-print.c:718
msgid "Option --writepng missing"
msgstr ""
#: src/ptouch-print.c:711
#: src/ptouch-print.c:721
msgid "Options --force_tape_width and --info can't be used together"
msgstr ""
#: src/ptouch-print.c:742
#: src/ptouch-print.c:752
#, c-format
msgid "ptouch_init() failed\n"
msgstr "ptouch_init() failed\n"
#: src/ptouch-print.c:745
#: src/ptouch-print.c:761
#, c-format
msgid "ptouch_getstatus() failed\n"
msgstr "ptouch_getstatus() failed\n"
#: src/ptouch-print.c:759
#: src/ptouch-print.c:775
#, 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:760
#: src/ptouch-print.c:776
#, 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:785
#: src/ptouch-print.c:801
#, c-format
msgid "failed to load image file\n"
msgstr ""
#: src/ptouch-print.c:794
#: src/ptouch-print.c:810
#, c-format
msgid "could not render text\n"
msgstr "could not render text\n"
#: src/ptouch-print.c:835
#: src/ptouch-print.c:851
#, c-format
msgid "ptouch_finalize(%d) failed\n"
msgstr "ptouch_finalize(%d) failed\n"
+66 -66
View File
@@ -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-07-18 08:07+0200\n"
"POT-Creation-Date: 2026-09-08 07:19+0200\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"
@@ -17,325 +17,325 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/libptouch.c:123 src/libptouch.c:127 src/libptouch.c:131
#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132
#, c-format
msgid "out of memory\n"
msgstr ""
#: src/libptouch.c:135
#: src/libptouch.c:136
#, c-format
msgid "libusb_init() failed\n"
msgstr ""
#: src/libptouch.c:144
#: src/libptouch.c:145
#, c-format
msgid "failed to get device descriptor"
msgstr ""
#: src/libptouch.c:150
#: src/libptouch.c:151
#, c-format
msgid "%s found on USB bus %d, device %d\n"
msgstr ""
#: src/libptouch.c:165
#: src/libptouch.c:166
#, c-format
msgid "libusb_open error :%s\n"
msgstr ""
#: src/libptouch.c:171
#: src/libptouch.c:172
#, c-format
msgid "error while detaching kernel driver: %s\n"
msgstr ""
#: src/libptouch.c:175
#: src/libptouch.c:176
#, c-format
msgid "interface claim error: %s\n"
msgstr ""
#: src/libptouch.c:187
#: src/libptouch.c:188
#, c-format
msgid ""
"No P-Touch printer found on USB (remember to put switch to position E)\n"
msgstr ""
#: src/libptouch.c:207
#: src/libptouch.c:208
#, c-format
msgid "debug: called ptouch_send() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:214
#: src/libptouch.c:215
#, c-format
msgid "write error: %s\n"
msgstr ""
#: src/libptouch.c:218
#: src/libptouch.c:219
#, c-format
msgid "write error: could send only %i of %ld bytes\n"
msgstr ""
#: src/libptouch.c:268
#: src/libptouch.c:269
#, c-format
msgid "debug: called ptouch_info_cmd() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:310
#: src/libptouch.c:311
#, c-format
msgid "debug: called ptouch_rasterstart() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:341
#: src/libptouch.c:351
#, c-format
msgid "debug: called ptouch_finalize() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:356
#: src/libptouch.c:366
#, c-format
msgid "debug: dumping raw status bytes\n"
msgstr ""
#: src/libptouch.c:375
#: src/libptouch.c:385
#, c-format
msgid "debug: called ptouch_getstatus() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:385 src/libptouch.c:416
#: src/libptouch.c:395 src/libptouch.c:426
#, c-format
msgid "read error: %s\n"
msgstr ""
#: src/libptouch.c:390
#: src/libptouch.c:400
#, c-format
msgid "timeout (%i sec) while waiting for status response\n"
msgstr ""
#: src/libptouch.c:399
#: src/libptouch.c:409
#, c-format
msgid "unknown tape width of %imm, please report this.\n"
msgstr ""
#: src/libptouch.c:405
#: src/libptouch.c:415
#, c-format
msgid "got only 16 bytes... wondering what they are:\n"
msgstr ""
#: src/libptouch.c:409
#: src/libptouch.c:419
#, c-format
msgid "read error: got %i instead of 32 bytes\n"
msgstr ""
#: src/libptouch.c:412
#: src/libptouch.c:422
#, c-format
msgid "strange status:\n"
msgstr ""
#: src/libptouch.c:414
#: src/libptouch.c:424
#, c-format
msgid "trying to flush junk\n"
msgstr ""
#: src/libptouch.c:419
#: src/libptouch.c:429
#, c-format
msgid "got another %i bytes. now try again\n"
msgstr ""
#: src/libptouch.c:426
#: src/libptouch.c:436
#, c-format
msgid "debug: called ptouch_get_dpi() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:435
#: src/libptouch.c:445
#, c-format
msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:446
#: src/libptouch.c:456
#, c-format
msgid "printer with %d dpi not supported\n"
msgstr ""
#: src/libptouch.c:466
#: src/libptouch.c:476
#, c-format
msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:470
#: src/libptouch.c:480
#, c-format
msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n"
msgstr ""
#: src/libptouch.c:473
#: src/libptouch.c:483
#, c-format
msgid "debug: calculated max lines %d \n"
msgstr ""
#: src/libptouch.c:480
#: src/libptouch.c:490
#, c-format
msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:489
#: src/libptouch.c:499
#, c-format
msgid "debug: called ptouch_get_max_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:504
#: src/libptouch.c:514
#, c-format
msgid "debug: called ptouch_sendraster() with NULL ptdev\n"
msgstr ""
#: src/ptouch-print.c:176
#: src/ptouch-print.c:186
#, c-format
msgid "nothing to print\n"
msgstr ""
#: src/ptouch-print.c:184
#: src/ptouch-print.c:194
#, c-format
msgid "image is too large (%ipx x %ipx)\n"
msgstr ""
#: src/ptouch-print.c:185
#: src/ptouch-print.c:195
#, c-format
msgid "maximum printing width for this tape is %ipx\n"
msgstr ""
#: src/ptouch-print.c:188
#: src/ptouch-print.c:198
#, c-format
msgid "image size (%ipx x %ipx)\n"
msgstr ""
#: src/ptouch-print.c:204
#: src/ptouch-print.c:214
#, c-format
msgid "ptouch_rasterstart() failed\n"
msgstr ""
#: src/ptouch-print.c:210
#: src/ptouch-print.c:220
#, c-format
msgid "send print information command\n"
msgstr ""
#: src/ptouch-print.c:216
#: src/ptouch-print.c:226
#, c-format
msgid "send PT-D460BT magic commands\n"
msgstr ""
#: src/ptouch-print.c:223
#: src/ptouch-print.c:233
#, c-format
msgid "send precut command\n"
msgstr ""
#: src/ptouch-print.c:232
#: src/ptouch-print.c:242
#, c-format
msgid "send PT-D460BT chain commands\n"
msgstr ""
#: src/ptouch-print.c:244
#: src/ptouch-print.c:254
#, c-format
msgid "ptouch_sendraster() failed\n"
msgstr ""
#: src/ptouch-print.c:293
#: src/ptouch-print.c:303
#, c-format
msgid "writing image '%s' failed\n"
msgstr ""
#: src/ptouch-print.c:298
#: src/ptouch-print.c:308
#, c-format
msgid "printing '%s' requires %.1f mm of tape\n"
msgstr ""
#: src/ptouch-print.c:320
#: src/ptouch-print.c:330
#, c-format
msgid "debug: z baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:321
#: src/ptouch-print.c:331
#, c-format
msgid "debug: text baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:394
#: src/ptouch-print.c:404
#, c-format
msgid "render_text(): %i lines, font = '%s', align = '%c'\n"
msgstr ""
#: src/ptouch-print.c:397
#: src/ptouch-print.c:407
#, c-format
msgid "warning: font config not available\n"
msgstr ""
#: src/ptouch-print.c:401
#: src/ptouch-print.c:411
#, c-format
msgid "setting font size=%i\n"
msgstr ""
#: src/ptouch-print.c:403
#: src/ptouch-print.c:413
#, c-format
msgid "ignoring setting font margin=%i\n"
msgstr ""
#: src/ptouch-print.c:408
#: src/ptouch-print.c:418
#, c-format
msgid "could not estimate needed font size\n"
msgstr ""
#: src/ptouch-print.c:415
#: src/ptouch-print.c:425
#, c-format
msgid "choosing font size=%i\n"
msgstr ""
#: src/ptouch-print.c:431 src/ptouch-print.c:465
#: src/ptouch-print.c:441 src/ptouch-print.c:475
#, c-format
msgid "error in gdImageStringFT_180dpi: %s\n"
msgstr ""
#: src/ptouch-print.c:622
#: src/ptouch-print.c:632
#, c-format
msgid "Only up to %d lines are supported"
msgstr ""
#: src/ptouch-print.c:703
#: src/ptouch-print.c:713
msgid "No arguments supported"
msgstr ""
#: src/ptouch-print.c:708
#: src/ptouch-print.c:718
msgid "Option --writepng missing"
msgstr ""
#: src/ptouch-print.c:711
#: src/ptouch-print.c:721
msgid "Options --force_tape_width and --info can't be used together"
msgstr ""
#: src/ptouch-print.c:742
#: src/ptouch-print.c:752
#, c-format
msgid "ptouch_init() failed\n"
msgstr ""
#: src/ptouch-print.c:745
#: src/ptouch-print.c:761
#, c-format
msgid "ptouch_getstatus() failed\n"
msgstr ""
#: src/ptouch-print.c:759
#: src/ptouch-print.c:775
#, c-format
msgid "printer has %d dpi, maximum printing width is %ld px\n"
msgstr ""
#: src/ptouch-print.c:760
#: src/ptouch-print.c:776
#, c-format
msgid "maximum printing width for this tape is %ldpx\n"
msgstr ""
#: src/ptouch-print.c:785
#: src/ptouch-print.c:801
#, c-format
msgid "failed to load image file\n"
msgstr ""
#: src/ptouch-print.c:794
#: src/ptouch-print.c:810
#, c-format
msgid "could not render text\n"
msgstr ""
#: src/ptouch-print.c:835
#: src/ptouch-print.c:851
#, c-format
msgid "ptouch_finalize(%d) failed\n"
msgstr ""
+1 -1
View File
@@ -66,7 +66,7 @@ struct _pt_dev_info ptdevs[] = {
/* Notes about the PT-1230PC: While it is true that this printer supports
max 12mm tapes, it apparently expects > 76px data - the first 32px
must be blank. */
{0x04f9, 0x202d, "PT-2430PC", 128, 180, FLAG_NONE, 0}, /* 180dpi, maximum 128px */
{0x04f9, 0x202d, "PT-2430PC", 128, 180, FLAG_HAS_PRECUT, 0}, /* 180dpi, maximum 128px. Same head width/dpi as PT-2700 (which has FLAG_HAS_PRECUT); confirmed precut works on real hardware. */
{0x04f9, 0x2030, "PT-1230PC (PLite Mode)", 128, 180, FLAG_PLITE, 0},
{0x04f9, 0x2031, "PT-2430PC (PLite Mode)", 128, 180, FLAG_PLITE, 0},
{0x04f9, 0x2041, "PT-2730", 128, 180, FLAG_NONE, 0}, /* 180dpi, maximum 128px, max tape width 24mm - reported to work with some quirks */